Skip to content

Commit 8a082e4

Browse files
committed
Print debug info 4
1 parent d4a6065 commit 8a082e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cpp/device.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ JS_METHOD(getDeviceIDs) { NAPI_ENV;
1818
cl_platform_id platform2;
1919
CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
2020
printf("getDeviceIDs 0\n"); fflush(nullptr);
21-
CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_ALL, 0, nullptr, &n));
21+
cl_device_id device2;
22+
CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_ALL, 1, &device2, nullptr));
2223
printf("getDeviceIDs 1: %u\n", n);
2324
CHECK_ERR(clGetDeviceIDs(platform, type, 0, nullptr, &n));
2425
printf("getDeviceIDs 11: %u\n", n);

0 commit comments

Comments
 (0)