Menu

how to benchmark viennacl code with cpu and gpu at the same time

2019-02-22
2019-02-24
  • venkatesh karthick

    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.

     

    Last edit: venkatesh karthick 2019-02-22

Log in to post a comment.