Closed karlrupp closed 9 years ago
Platform/device switching implemented. Closing.
Just a question: Is it possible to select the OpenMP backend?
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.
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.
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.