Skip to content

Commit bcae10a

Browse files
authored
Added UnsupportedPtxVersion to the error enum (Rust-GPU#75)
1 parent 9c30bdf commit bcae10a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: crates/cust/src/error.rs

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ pub enum CudaError {
5252
InvalidPtx = 218,
5353
InvalidGraphicsContext = 219,
5454
NvlinkUncorrectable = 220,
55+
UnsupportedPtxVersion = 222,
5556
InvalidSource = 300,
5657
FileNotFound = 301,
5758
SharedObjectSymbolNotFound = 302,
@@ -160,6 +161,9 @@ impl ToResult for cudaError_enum {
160161
cudaError_enum::CUDA_ERROR_PEER_ACCESS_UNSUPPORTED => {
161162
Err(CudaError::PeerAccessUnsupported)
162163
}
164+
cudaError_enum::CUDA_ERROR_UNSUPPORTED_PTX_VERSION => {
165+
Err(CudaError::UnsupportedPtxVersion)
166+
}
163167
cudaError_enum::CUDA_ERROR_INVALID_PTX => Err(CudaError::InvalidPtx),
164168
cudaError_enum::CUDA_ERROR_INVALID_GRAPHICS_CONTEXT => {
165169
Err(CudaError::InvalidGraphicsContext)

0 commit comments

Comments
 (0)