how can i select the Device-type when using OpenCL?
In my case I want to compare the OpenCL-performance of CL_DEVICE_TYPE_CPU and CL_DEVICE_TYPE_GPU.
I'm working on the sparse.cpp from the ViennaCL framework (./examples/benchmark/sparse.cpp) and enabled OpenCL by
#define VIENNACL_WITH_OPENCL 1
(and similarly for CPUs and accelerators) described in Section 8.1 in the manual (http://viennacl.sourceforge.net/viennacl-manual-current.pdf) is what you're looking for. Note that the device type must be set before any ViennaCL object is created.
thanks for your answer, works well.
intel CPUs or AMD CPUs?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.