SWDEV-315017 - Add missing graph error strings

Change-Id: I11b5a623756c5bef88cbc93e49c124d0caf62bd1


[ROCm/clr commit: f371300933]
This commit is contained in:
Satyanvesh Dittakavi committed 2022-02-15 01:41:44 -05:00
1 bovenliggende f6ebe30931
commit ff620caa02
2 files changed
+102

No files matched your search

@@ -474,6 +474,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorSharedObjectInitFailed; return hipErrorSharedObjectInitFailed;
case cudaErrorOperatingSystem: case cudaErrorOperatingSystem:
return hipErrorOperatingSystem; return hipErrorOperatingSystem;
case cudaErrorIllegalState:
return hipErrorIllegalState;
case cudaErrorSetOnActiveProcess: case cudaErrorSetOnActiveProcess:
return hipErrorSetOnActiveProcess; return hipErrorSetOnActiveProcess;
case cudaErrorIllegalAddress: case cudaErrorIllegalAddress:
@@ -502,6 +504,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorInvalidDevice; return hipErrorInvalidDevice;
case cudaErrorInvalidValue: case cudaErrorInvalidValue:
return hipErrorInvalidValue; return hipErrorInvalidValue;
case cudaErrorInvalidPitchValue:
return hipErrorInvalidPitchValue;
case cudaErrorInvalidDevicePointer: case cudaErrorInvalidDevicePointer:
return hipErrorInvalidDevicePointer; return hipErrorInvalidDevicePointer;
case cudaErrorInvalidMemcpyDirection: case cudaErrorInvalidMemcpyDirection:
@@ -516,6 +520,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorPeerAccessAlreadyEnabled; return hipErrorPeerAccessAlreadyEnabled;
case cudaErrorPeerAccessNotEnabled: case cudaErrorPeerAccessNotEnabled:
return hipErrorPeerAccessNotEnabled; return hipErrorPeerAccessNotEnabled;
case cudaErrorContextIsDestroyed:
return hipErrorContextIsDestroyed;
case cudaErrorHostMemoryAlreadyRegistered: case cudaErrorHostMemoryAlreadyRegistered:
return hipErrorHostMemoryAlreadyRegistered; return hipErrorHostMemoryAlreadyRegistered;
case cudaErrorHostMemoryNotRegistered: case cudaErrorHostMemoryNotRegistered:
@@ -566,6 +572,26 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
case cudaErrorDeviceUninitialized: case cudaErrorDeviceUninitialized:
return hipErrorInvalidContext; return hipErrorInvalidContext;
#endif #endif
case cudaErrorStreamCaptureUnsupported:
return hipErrorStreamCaptureUnsupported;
case cudaErrorStreamCaptureInvalidated:
return hipErrorStreamCaptureInvalidated;
case cudaErrorStreamCaptureMerge:
return hipErrorStreamCaptureMerge;
case cudaErrorStreamCaptureUnmatched:
return hipErrorStreamCaptureUnmatched;
case cudaErrorStreamCaptureUnjoined:
return hipErrorStreamCaptureUnjoined;
case cudaErrorStreamCaptureIsolation:
return hipErrorStreamCaptureIsolation;
case cudaErrorStreamCaptureImplicit:
return hipErrorStreamCaptureImplicit;
case cudaErrorCapturedEvent:
return hipErrorCapturedEvent;
case cudaErrorStreamCaptureWrongThread:
return hipErrorStreamCaptureWrongThread;
case cudaErrorGraphExecUpdateFailure:
return hipErrorGraphExecUpdateFailure;
case cudaErrorUnknown: case cudaErrorUnknown:
default: default:
return hipErrorUnknown; // Note - translated error. return hipErrorUnknown; // Note - translated error.
@@ -644,6 +670,8 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorSharedObjectInitFailed; return hipErrorSharedObjectInitFailed;
case CUDA_ERROR_OPERATING_SYSTEM: case CUDA_ERROR_OPERATING_SYSTEM:
return hipErrorOperatingSystem; return hipErrorOperatingSystem;
case CUDA_ERROR_ILLEGAL_STATE:
return hipErrorIllegalState;
case CUDA_ERROR_NOT_FOUND: case CUDA_ERROR_NOT_FOUND:
return hipErrorNotFound; return hipErrorNotFound;
case CUDA_ERROR_NOT_READY: case CUDA_ERROR_NOT_READY:
@@ -660,6 +688,8 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorPeerAccessNotEnabled; return hipErrorPeerAccessNotEnabled;
case CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE: case CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE:
return hipErrorSetOnActiveProcess; return hipErrorSetOnActiveProcess;
case CUDA_ERROR_CONTEXT_IS_DESTROYED:
return hipErrorContextIsDestroyed;
case CUDA_ERROR_ASSERT: case CUDA_ERROR_ASSERT:
return hipErrorAssert; return hipErrorAssert;
case CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED: case CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED:
@@ -672,6 +702,26 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorCooperativeLaunchTooLarge; return hipErrorCooperativeLaunchTooLarge;
case CUDA_ERROR_NOT_SUPPORTED: case CUDA_ERROR_NOT_SUPPORTED:
return hipErrorNotSupported; return hipErrorNotSupported;
case CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED:
return hipErrorStreamCaptureUnsupported;
case CUDA_ERROR_STREAM_CAPTURE_INVALIDATED:
return hipErrorStreamCaptureInvalidated;
case CUDA_ERROR_STREAM_CAPTURE_MERGE:
return hipErrorStreamCaptureMerge;
case CUDA_ERROR_STREAM_CAPTURE_UNMATCHED:
return hipErrorStreamCaptureUnmatched;
case CUDA_ERROR_STREAM_CAPTURE_UNJOINED:
return hipErrorStreamCaptureUnjoined;
case CUDA_ERROR_STREAM_CAPTURE_ISOLATION:
return hipErrorStreamCaptureIsolation;
case CUDA_ERROR_STREAM_CAPTURE_IMPLICIT:
return hipErrorStreamCaptureImplicit;
case CUDA_ERROR_CAPTURED_EVENT:
return hipErrorCapturedEvent;
case CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD:
return hipErrorStreamCaptureWrongThread;
case CUDA_ERROR_GRAPH_EXEC_UPDATE_FAILURE:
return hipErrorGraphExecUpdateFailure;
case CUDA_ERROR_UNKNOWN: case CUDA_ERROR_UNKNOWN:
default: default:
return hipErrorUnknown; // Note - translated error. return hipErrorUnknown; // Note - translated error.
@@ -698,6 +748,8 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorLaunchOutOfResources; return cudaErrorLaunchOutOfResources;
case hipErrorInvalidValue: case hipErrorInvalidValue:
return cudaErrorInvalidValue; return cudaErrorInvalidValue;
case hipErrorInvalidPitchValue:
return cudaErrorInvalidPitchValue;
case hipErrorInvalidHandle: case hipErrorInvalidHandle:
return cudaErrorInvalidResourceHandle; return cudaErrorInvalidResourceHandle;
case hipErrorInvalidDevice: case hipErrorInvalidDevice:
@@ -812,6 +864,8 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorSharedObjectInitFailed; return cudaErrorSharedObjectInitFailed;
case hipErrorOperatingSystem: case hipErrorOperatingSystem:
return cudaErrorOperatingSystem; return cudaErrorOperatingSystem;
case hipErrorIllegalState:
return cudaErrorIllegalState;
case hipErrorNotFound: case hipErrorNotFound:
#if CUDA_VERSION >= 10010 #if CUDA_VERSION >= 10010
return cudaErrorSymbolNotFound; return cudaErrorSymbolNotFound;
@@ -824,10 +878,34 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorLaunchTimeout; return cudaErrorLaunchTimeout;
case hipErrorSetOnActiveProcess: case hipErrorSetOnActiveProcess:
return cudaErrorSetOnActiveProcess; return cudaErrorSetOnActiveProcess;
case hipErrorContextIsDestroyed:
return cudaErrorContextIsDestroyed;
case hipErrorAssert:
return cudaErrorAssert;
case hipErrorLaunchFailure: case hipErrorLaunchFailure:
return cudaErrorLaunchFailure; return cudaErrorLaunchFailure;
case hipErrorCooperativeLaunchTooLarge: case hipErrorCooperativeLaunchTooLarge:
return cudaErrorCooperativeLaunchTooLarge; return cudaErrorCooperativeLaunchTooLarge;
case hipErrorStreamCaptureUnsupported:
return cudaErrorStreamCaptureUnsupported;
case hipErrorStreamCaptureInvalidated:
return cudaErrorStreamCaptureInvalidated;
case hipErrorStreamCaptureMerge:
return cudaErrorStreamCaptureMerge;
case hipErrorStreamCaptureUnmatched:
return cudaErrorStreamCaptureUnmatched;
case hipErrorStreamCaptureUnjoined:
return cudaErrorStreamCaptureUnjoined;
case hipErrorStreamCaptureIsolation:
return cudaErrorStreamCaptureIsolation;
case hipErrorStreamCaptureImplicit:
return cudaErrorStreamCaptureImplicit;
case hipErrorCapturedEvent:
return cudaErrorCapturedEvent;
case hipErrorStreamCaptureWrongThread:
return cudaErrorStreamCaptureWrongThread;
case hipErrorGraphExecUpdateFailure:
return cudaErrorGraphExecUpdateFailure;
case hipErrorNotSupported: case hipErrorNotSupported:
return cudaErrorNotSupported; return cudaErrorNotSupported;
// HSA: does not exist in CUDA // HSA: does not exist in CUDA
@@ -128,6 +128,8 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorOperatingSystem"; return "hipErrorOperatingSystem";
case hipErrorInvalidHandle: case hipErrorInvalidHandle:
return "hipErrorInvalidHandle"; return "hipErrorInvalidHandle";
case hipErrorIllegalState:
return "hipErrorIllegalState";
case hipErrorNotFound: case hipErrorNotFound:
return "hipErrorNotFound"; return "hipErrorNotFound";
case hipErrorNotReady: case hipErrorNotReady:
@@ -144,6 +146,8 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorPeerAccessNotEnabled"; return "hipErrorPeerAccessNotEnabled";
case hipErrorSetOnActiveProcess: case hipErrorSetOnActiveProcess:
return "hipErrorSetOnActiveProcess"; return "hipErrorSetOnActiveProcess";
case hipErrorContextIsDestroyed:
return "hipErrorContextIsDestroyed";
case hipErrorAssert: case hipErrorAssert:
return "hipErrorAssert"; return "hipErrorAssert";
case hipErrorHostMemoryAlreadyRegistered: case hipErrorHostMemoryAlreadyRegistered:
@@ -162,6 +166,26 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorRuntimeOther"; return "hipErrorRuntimeOther";
case hipErrorCooperativeLaunchTooLarge: case hipErrorCooperativeLaunchTooLarge:
return "hipErrorCooperativeLaunchTooLarge"; return "hipErrorCooperativeLaunchTooLarge";
case hipErrorStreamCaptureUnsupported:
return "hipErrorStreamCaptureUnsupported";
case hipErrorStreamCaptureInvalidated:
return "hipErrorStreamCaptureInvalidated";
case hipErrorStreamCaptureMerge:
return "hipErrorStreamCaptureMerge";
case hipErrorStreamCaptureUnmatched:
return "hipErrorStreamCaptureUnmatched";
case hipErrorStreamCaptureUnjoined:
return "hipErrorStreamCaptureUnjoined";
case hipErrorStreamCaptureIsolation:
return "hipErrorStreamCaptureIsolation";
case hipErrorStreamCaptureImplicit:
return "hipErrorStreamCaptureImplicit";
case hipErrorCapturedEvent:
return "hipErrorCapturedEvent";
case hipErrorStreamCaptureWrongThread:
return "hipErrorStreamCaptureWrongThread";
case hipErrorGraphExecUpdateFailure:
return "hipErrorGraphExecUpdateFailure";
case hipErrorTbd: case hipErrorTbd:
return "hipErrorTbd"; return "hipErrorTbd";
default: default: