From e6499a8ebaef456fd62986bd3502fab10125f4b9 Mon Sep 17 00:00:00 2001 From: pfaber <pfaber@e214pc99> Date: Thu, 22 Apr 2021 22:30:41 +0200 Subject: [PATCH] Don't always search for GPU|ACCEL --- parallel_worlds_3/src/DeviceInterface.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parallel_worlds_3/src/DeviceInterface.hpp b/parallel_worlds_3/src/DeviceInterface.hpp index 6710bc6..7ffc413 100644 --- a/parallel_worlds_3/src/DeviceInterface.hpp +++ b/parallel_worlds_3/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) -- GitLab