From b06ed99d9b2560576a34b77985d1bcf4d53610d1 Mon Sep 17 00:00:00 2001 From: Eyal Rozenberg Date: Thu, 20 Apr 2023 23:53:29 +0300 Subject: [PATCH] Fixes #501: Added support for a new kind of NVRTC error introduced in CUDA 12.1 --- src/cuda/rtc/error.hpp | 3 +++ src/cuda/rtc/types.hpp | 3 +++ 2 files changed, 6 insertions(+) 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