We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a082e4 commit ebecbe2Copy full SHA for ebecbe2
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_ALL, 1, &device2, nullptr));
+ CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_DEFAULT, 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