Skip to content

Commit ebecbe2

Browse files
committed
Print debug info 5
1 parent 8a082e4 commit ebecbe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ JS_METHOD(getDeviceIDs) { NAPI_ENV;
1919
CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
2020
printf("getDeviceIDs 0\n"); fflush(nullptr);
2121
cl_device_id device2;
22-
CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_ALL, 1, &device2, nullptr));
22+
CHECK_ERR(clGetDeviceIDs(platform2, CL_DEVICE_TYPE_DEFAULT, 1, &device2, &n));
2323
printf("getDeviceIDs 1: %u\n", n);
2424
CHECK_ERR(clGetDeviceIDs(platform, type, 0, nullptr, &n));
2525
printf("getDeviceIDs 11: %u\n", n);

0 commit comments

Comments
 (0)