Activity for venkatesh karthick

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi Sir, @ Karl Rupp Thanks a lot I finally got the output correctly after applying all your instructions. Changed my code like this code int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE, BLAS3_MATRIX_SIZE);...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi Sir, @ Karl Rupp Thanks a lot I finally got the output correctly after applying all your instructions. Changed my code like this code int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE, BLAS3_MATRIX_SIZE);...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi Sir, @ Karl Rupp Thanks a lot I finally got the output correctly after applying all your instructions. Changed my code like this code ~~~ int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi Sir, @ Karl Rupp Thanks a lot I finally got the output correctly after applying all your instructions. I changed my code like this : code ~~~ int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick posted a comment on discussion General Discussion

    Hi Sir, @ Karl Rupp Thanks a lot I finally got the output correctly after applying all your instructions. I changed my code like this : **code** ~~~ int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick posted a comment on discussion General Discussion

    Hi sir @ Karl Rupp I created the new buffers in the new context but even after changing the thing still getting the same execution time . Code int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi sir @ Karl Rupp I created the new buffers in the new context but even after changing the thing still getting the same execution time . Code int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    Hi sir @ Karl Rupp I created the new buffers in the new context but even after changing the thing still getting the same execution time . Code int main() { typedef float ScalarType; viennacl::tools::timer timer; double exec_timecpu; double exec_timegpu; viennacl::tools::uniform_random_numbers<ScalarType> randomNumber; viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(1); viennacl::matrix<ScalarType> vcl_A(BLAS3_MATRIX_SIZE,...

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

  • venkatesh karthick venkatesh karthick posted a comment on discussion General Discussion

    So I can't use same buffers for different context ??

  • venkatesh karthick venkatesh karthick modified a comment on discussion General Discussion

    I am getting the same result even if i select GPU like this viennacl::ocl::set_context_device_type(0, viennacl::ocl::gpu_tag()); and in CPU like this viennacl::ocl::set_context_device_type(1, viennacl::ocl::cpu_tag()); my guess this both is running on GPU only i need help in running the code in CPU and need to note the time taken by the both operation. i tried matrix multiplication. any answers will be appreciated Thanks in advance.

  • venkatesh karthick venkatesh karthick posted a comment on discussion General Discussion

    here is my code: viennacl::ocl::set_context_platform_index(1, 1); viennacl::ocl::set_context_platform_index(0, 0); viennacl::ocl::switch_context(0); std::cout << "--- Computing matrix-matrix product using viennacl in GPU ---" << std::endl; timer.start(); vcl_C = viennacl::linalg::prod(vcl_A, vcl_B); exec_time = timer.get(); std::cout << " - Execution time: " << exec_time << std::endl; std::cout << "result on GPU: "<<viennacl::ocl::current_device().name() << std::endl; //same operation on CPU std::cout...

  • venkatesh karthick venkatesh karthick posted a comment on discussion General Discussion

    I am getting the same result even if i select GPU like this viennacl::ocl::set_context_device_type(n, viennacl::ocl::gpu_tag()); and viennacl::ocl::set_context_device_type(n, viennacl::ocl::cpu_tag()); my guess this both is running on GPU only i need help in running the code in CPU and need to note the time taken by the both operation. i tried matrix multiplication. any answers will be appreciated Thanks in advance.

1