Skip to content

Commit

Permalink
Fixes #501: Added support for a new kind of NVRTC error introduced in…
Browse files Browse the repository at this point in the history
… CUDA 12.1
  • Loading branch information
eyalroz committed Apr 22, 2023
1 parent c472f61 commit 90699ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cuda/rtc/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ inline ::std::string describe(rtc::status_t<ptx> 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";
}
Expand Down
3 changes: 3 additions & 0 deletions src/cuda/rtc/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ template <> struct types<ptx> {
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
Expand Down

0 comments on commit 90699ec

Please sign in to comment.