From b3c09a6d0e5d87460b97d518e8d1dee4a9b88754 Mon Sep 17 00:00:00 2001
From: pfaber <pfaber@e214pc99>
Date: Thu, 22 Apr 2021 22:40:21 +0200
Subject: [PATCH] Don't always just assume GPU|ACCEL

---
 parallel_worlds_1/src/DeviceInterface.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parallel_worlds_1/src/DeviceInterface.hpp b/parallel_worlds_1/src/DeviceInterface.hpp
index 6710bc6..7ffc413 100644
--- a/parallel_worlds_1/src/DeviceInterface.hpp
+++ b/parallel_worlds_1/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