Skip to content

Commit 7101a84

Browse files
committed
Print debug info 7
1 parent 4043835 commit 7101a84

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/cpp/device.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ JS_METHOD(getDeviceIDs) { NAPI_ENV;
1515
USE_OFFS_ARG(1, type, CL_DEVICE_TYPE_ALL);
1616

1717
cl_uint n = 0;
18-
cl_platform_id platform2;
19-
CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
18+
// cl_platform_id platform2;
19+
// CHECK_ERR(clGetPlatformIDs(1, &platform2, nullptr));
2020
printf("getDeviceIDs 0\n"); fflush(nullptr);
21-
cl_device_id device2;
22-
CHECK_ERR(clGetDeviceIDs(nullptr, CL_DEVICE_TYPE_ALL, 1, &device2, &n));
21+
// cl_device_id device2;
22+
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, 0, NULL, &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)