Skip to content
Snippets Groups Projects
Commit 5845c8ab authored by pfaber's avatar pfaber
Browse files

Don't always just assume GPU|ACCEL

parent b3c09a6d
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ private:
}
void init(cl_device_type requestedDevice=CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR) {
devices = findDevices(CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR);
devices = findDevices(requestedDevice);
// In order to execute a kernel (OpenCL program), it is necessary to first define
// some hardware presentations:
// 1. a context that defines the devices (and thus the usable binary code)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment