SWDEV-475987 - Add mapping for missing CUDA error codes

Change-Id: I4cc5cb786fa4c7cc67cc037b00edad63d811ca73
Этот коммит содержится в:
Vladana Stojiljkovic
2024-07-26 12:33:26 +02:00
родитель 9ea767377e
Коммит 1a12bbf19c
+8
Просмотреть файл
@@ -904,6 +904,10 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorStreamCaptureWrongThread;
case cudaErrorGraphExecUpdateFailure:
return hipErrorGraphExecUpdateFailure;
case cudaErrorInvalidChannelDescriptor:
return hipErrorInvalidChannelDescriptor;
case cudaErrorInvalidTexture:
return hipErrorInvalidTexture;
case cudaErrorUnknown:
default:
return hipErrorUnknown; // Note - translated error.
@@ -1350,6 +1354,10 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorGraphExecUpdateFailure;
case hipErrorNotSupported:
return cudaErrorNotSupported;
case hipErrorInvalidChannelDescriptor:
return cudaErrorInvalidChannelDescriptor;
case hipErrorInvalidTexture:
return cudaErrorInvalidTexture;
// HSA: does not exist in CUDA
case hipErrorRuntimeMemory:
// HSA: does not exist in CUDA