Skip to content

Commit 935a68f

Browse files
[SYCL] Fix an unused variable warning in get_device_count_type (#2978)
1 parent ec1d49e commit 935a68f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/tools/get_device_count_by_type.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ static bool queryCUDA(cl_device_type deviceType, cl_uint &deviceCount,
216216
return true;
217217
}
218218
#else
219+
(void)deviceType;
219220
msg = "ERROR: CUDA not supported";
220221
deviceCount = 0u;
221222

0 commit comments

Comments
 (0)