diff --git a/parallel_worlds_2/src/DeviceInterface.hpp b/parallel_worlds_2/src/DeviceInterface.hpp index 6710bc67520fa43a82cb756385c5c43f1f377214..7ffc4137d76c1168361bf883ee5462969a4c05d2 100644 --- a/parallel_worlds_2/src/DeviceInterface.hpp +++ b/parallel_worlds_2/src/DeviceInterface.hpp @@ -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)