We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a6065 commit 8a082e4Copy full SHA for 8a082e4
1 file changed
src/cpp/device.cpp
@@ -18,7 +18,8 @@ JS_METHOD(getDeviceIDs) { NAPI_ENV;
18
cl_platform_id platform2;
19
CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
20
printf("getDeviceIDs 0\n"); fflush(nullptr);
21
- CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_ALL, 0, nullptr, &n));
+ cl_device_id device2;
22
+ CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_ALL, 1, &device2, nullptr));
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