We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebecbe2 commit 4043835Copy full SHA for 4043835
1 file changed
src/cpp/device.cpp
@@ -19,7 +19,7 @@ JS_METHOD(getDeviceIDs) { NAPI_ENV;
19
CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
20
printf("getDeviceIDs 0\n"); fflush(nullptr);
21
cl_device_id device2;
22
- CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_DEFAULT, 1, &device2, &n));
+ CHECK_ERR(clGetDeviceIDs(nullptr, CL_DEVICE_TYPE_ALL, 1, &device2, &n));
23
printf("getDeviceIDs 1: %u\n", n);
24
CHECK_ERR(clGetDeviceIDs(platform, type, 0, nullptr, &n));
25
printf("getDeviceIDs 11: %u\n", n);
0 commit comments