Skip to content

Commit 70a2c54

Browse files
author
JackAKirk
committed
The cl_khr_fp64 extension is now connected to the cuda plugin.
This change allows a skipped fp64 Reduction test in llvm-test-suite (reduction_nd_ext_double.cpp) to run for the cuda backend. The cl_khr_fp64 extension is used for all cuda devices by default, since sm_XX wherer XX < 13 has been unsupported by the cuda driver since cuda 8.0. Signed-off-by: JackAKirk <[email protected]>
1 parent b1a8a7d commit 70a2c54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sycl/plugins/cuda/pi_cuda.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,11 @@ pi_result cuda_piDeviceGetInfo(pi_device device, pi_device_info param_name,
13711371
return getInfo(param_value_size, param_value, param_value_size_ret, "");
13721372
}
13731373
case PI_DEVICE_INFO_EXTENSIONS: {
1374-
return getInfo(param_value_size, param_value, param_value_size_ret, "");
1374+
1375+
std::string SupportedExtensions = "cl_khr_fp64 ";
1376+
1377+
return getInfo(param_value_size, param_value, param_value_size_ret,
1378+
SupportedExtensions.c_str());
13751379
}
13761380
case PI_DEVICE_INFO_PRINTF_BUFFER_SIZE: {
13771381
// The minimum value for the FULL profile is 1 MB.

0 commit comments

Comments
 (0)