SWDEV-315017 - Add missing graph error strings

Change-Id: I11b5a623756c5bef88cbc93e49c124d0caf62bd1


[ROCm/clr commit: f371300933]
此提交包含在:
Satyanvesh Dittakavi
2022-01-05 14:51:42 +00:00
父節點 f6ebe30931
當前提交 ff620caa02
共有 2 個檔案被更改,包括 102 行新增0 行删除
+78
查看文件
@@ -474,6 +474,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorSharedObjectInitFailed;
case cudaErrorOperatingSystem:
return hipErrorOperatingSystem;
case cudaErrorIllegalState:
return hipErrorIllegalState;
case cudaErrorSetOnActiveProcess:
return hipErrorSetOnActiveProcess;
case cudaErrorIllegalAddress:
@@ -502,6 +504,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorInvalidDevice;
case cudaErrorInvalidValue:
return hipErrorInvalidValue;
case cudaErrorInvalidPitchValue:
return hipErrorInvalidPitchValue;
case cudaErrorInvalidDevicePointer:
return hipErrorInvalidDevicePointer;
case cudaErrorInvalidMemcpyDirection:
@@ -516,6 +520,8 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
return hipErrorPeerAccessAlreadyEnabled;
case cudaErrorPeerAccessNotEnabled:
return hipErrorPeerAccessNotEnabled;
case cudaErrorContextIsDestroyed:
return hipErrorContextIsDestroyed;
case cudaErrorHostMemoryAlreadyRegistered:
return hipErrorHostMemoryAlreadyRegistered;
case cudaErrorHostMemoryNotRegistered:
@@ -566,6 +572,26 @@ inline static hipError_t hipCUDAErrorTohipError(cudaError_t cuError) {
case cudaErrorDeviceUninitialized:
return hipErrorInvalidContext;
#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:
default:
return hipErrorUnknown; // Note - translated error.
@@ -644,6 +670,8 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorSharedObjectInitFailed;
case CUDA_ERROR_OPERATING_SYSTEM:
return hipErrorOperatingSystem;
case CUDA_ERROR_ILLEGAL_STATE:
return hipErrorIllegalState;
case CUDA_ERROR_NOT_FOUND:
return hipErrorNotFound;
case CUDA_ERROR_NOT_READY:
@@ -660,6 +688,8 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorPeerAccessNotEnabled;
case CUDA_ERROR_PRIMARY_CONTEXT_ACTIVE:
return hipErrorSetOnActiveProcess;
case CUDA_ERROR_CONTEXT_IS_DESTROYED:
return hipErrorContextIsDestroyed;
case CUDA_ERROR_ASSERT:
return hipErrorAssert;
case CUDA_ERROR_HOST_MEMORY_ALREADY_REGISTERED:
@@ -672,6 +702,26 @@ inline static hipError_t hipCUResultTohipError(CUresult cuError) {
return hipErrorCooperativeLaunchTooLarge;
case CUDA_ERROR_NOT_SUPPORTED:
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:
default:
return hipErrorUnknown; // Note - translated error.
@@ -698,6 +748,8 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorLaunchOutOfResources;
case hipErrorInvalidValue:
return cudaErrorInvalidValue;
case hipErrorInvalidPitchValue:
return cudaErrorInvalidPitchValue;
case hipErrorInvalidHandle:
return cudaErrorInvalidResourceHandle;
case hipErrorInvalidDevice:
@@ -812,6 +864,8 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorSharedObjectInitFailed;
case hipErrorOperatingSystem:
return cudaErrorOperatingSystem;
case hipErrorIllegalState:
return cudaErrorIllegalState;
case hipErrorNotFound:
#if CUDA_VERSION >= 10010
return cudaErrorSymbolNotFound;
@@ -824,10 +878,34 @@ inline static cudaError_t hipErrorToCudaError(hipError_t hError) {
return cudaErrorLaunchTimeout;
case hipErrorSetOnActiveProcess:
return cudaErrorSetOnActiveProcess;
case hipErrorContextIsDestroyed:
return cudaErrorContextIsDestroyed;
case hipErrorAssert:
return cudaErrorAssert;
case hipErrorLaunchFailure:
return cudaErrorLaunchFailure;
case hipErrorCooperativeLaunchTooLarge:
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:
return cudaErrorNotSupported;
// HSA: does not exist in CUDA
+24
查看文件
@@ -128,6 +128,8 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorOperatingSystem";
case hipErrorInvalidHandle:
return "hipErrorInvalidHandle";
case hipErrorIllegalState:
return "hipErrorIllegalState";
case hipErrorNotFound:
return "hipErrorNotFound";
case hipErrorNotReady:
@@ -144,6 +146,8 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorPeerAccessNotEnabled";
case hipErrorSetOnActiveProcess:
return "hipErrorSetOnActiveProcess";
case hipErrorContextIsDestroyed:
return "hipErrorContextIsDestroyed";
case hipErrorAssert:
return "hipErrorAssert";
case hipErrorHostMemoryAlreadyRegistered:
@@ -162,6 +166,26 @@ const char *ihipGetErrorName(hipError_t hip_error)
return "hipErrorRuntimeOther";
case 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:
return "hipErrorTbd";
default: