diff --git a/src/cuda/rtc/error.hpp b/src/cuda/rtc/error.hpp index ddc5727c..d2225604 100644 --- a/src/cuda/rtc/error.hpp +++ b/src/cuda/rtc/error.hpp @@ -100,6 +100,9 @@ inline ::std::string describe(rtc::status_t status) case named::compilation_failure: return "PTX compilation failure"; case named::unsupported_ptx_version: return "Unsupported PTX version"; case named::internal_error: return "Unknown PTX compilation error"; +#if CUDA_VERSION >= 12010 + case named::unsupported_device_side_sync: return "Unsupported device-side synchronization"; +#endif } return "unknown error"; } diff --git a/src/cuda/rtc/types.hpp b/src/cuda/rtc/types.hpp index 4ac02fb0..dfa3cbfa 100644 --- a/src/cuda/rtc/types.hpp +++ b/src/cuda/rtc/types.hpp @@ -99,6 +99,9 @@ template <> struct types { compilation_failure = NVPTXCOMPILE_ERROR_COMPILATION_FAILURE, unsupported_ptx_version = NVPTXCOMPILE_ERROR_UNSUPPORTED_PTX_VERSION, internal_error = NVPTXCOMPILE_ERROR_INTERNAL, +#if CUDA_VERSION >= 12010 + unsupported_device_side_sync = NVPTXCOMPILE_ERROR_UNSUPPORTED_DEVSIDE_SYNC, +#endif }; }; #endif // CUDA_VERSION >= 11010