viennacl / viennaclbench-dev

A GUI for displaying benchmark results obtaind for operations in ViennaCL
Other
5 stars 3 forks source link

Device and compute backend selection for benchmarks #8

Closed karlrupp closed 9 years ago

karlrupp commented 10 years ago

Currently there is no way to specify the (OpenCL) device and no way to switch between a standard CPU backend (using either single-threaded execution or OpenMP) and OpenCL.

namikk commented 10 years ago

Platform/device switching implemented. Closing.

karlrupp commented 10 years ago

Just a question: Is it possible to select the OpenMP backend?

namikk commented 10 years ago

I don't recall implementing anything related to OpenMP. So unless ViennaCL handles that in the background and provides access to it through viennacl::ocl::get_platforms(), it's not available for selection.

karlrupp commented 10 years ago

As the name suggests, everything below viennacl::ocl:: is for OpenCL. In order to run things using the host-based backend, one needs to pass the MAIN_MEMORY qualifier to the constructor of the ViennaCL objects, whereas OPENCL_MEMORY is implicitly taken as default if the OpenCL backend is enabled.