added more error codes to hipErrorGetString
Change-Id: I80c675905d94813502040fd0caa07985fa8c7dcc
Этот коммит содержится в:
+49
-6
@@ -1559,21 +1559,64 @@ const char *ihipErrorString(hipError_t hip_error)
|
||||
{
|
||||
switch (hip_error) {
|
||||
case hipSuccess : return "hipSuccess";
|
||||
case hipErrorOutofMemory : return "hipOutofMemory";
|
||||
case hipErrorOutOfMemory : return "hipErrorOutOfMemory";
|
||||
case hipErrorNotInitialized : return "hipErrorNotInitialized";
|
||||
case hipErrorDeinitialized : return "hipErrorDeinitialized";
|
||||
case hipErrorProfilerDisabled : return "hipErrorProfilerDisabled";
|
||||
case hipErrorProfilerNotInitialized : return "hipErrorProfilerNotInitialized";
|
||||
case hipErrorProfilerAlreadyStarted : return "hipErrorProfilerAlreadyStarted";
|
||||
case hipErrorProfilerAlreadyStopped : return "hipErrorProfilerAlreadyStopped";
|
||||
case hipErrorInvalidImage : return "hipErrorInvalidImage";
|
||||
case hipErrorInvalidContext : return "hipErrorInvalidContext";
|
||||
case hipErrorContextAlreadyCurrent : return "hipErrorContextAlreadyCurrent";
|
||||
case hipErrorMapFailed : return "hipErrorMapFailed";
|
||||
case hipErrorUnmapFailed : return "hipErrorUnmapFailed";
|
||||
case hipErrorArrayIsMapped : return "hipErrorArrayIsMapped";
|
||||
case hipErrorAlreadyMapped : return "hipErrorAlreadyMapped";
|
||||
case hipErrorNoBinaryForGpu : return "hipErrorNoBinaryForGpu";
|
||||
case hipErrorAlreadyAcquired : return "hipErrorAlreadyAcquired";
|
||||
case hipErrorNotMapped : return "hipErrorNotMapped";
|
||||
case hipErrorNotMappedAsArray : return "hipErrorNotMappedAsArray";
|
||||
case hipErrorNotMappedAsPointer : return "hipErrorNotMappedAsPointer";
|
||||
case hipErrorECCNotCorrectable : return "hipErrorECCNotCorrectable";
|
||||
case hipErrorUnsupportedLimit : return "hipErrorUnsupportedLimit";
|
||||
case hipErrorContextAlreadyInUse : return "hipErrorContextAlreadyInUse";
|
||||
case hipErrorPeerAccessUnsupported : return "hipErrorPeerAccessUnsupported";
|
||||
case hipErrorInvalidKernelFile : return "hipErrorInvalidKernelFile";
|
||||
case hipErrorInvalidGraphicsContext : return "hipErrorInvalidGraphicsContext";
|
||||
case hipErrorInvalidSource : return "hipErrorInvalidSource";
|
||||
case hipErrorFileNotFound : return "hipErrorFileNotFound";
|
||||
case hipErrorSharedObjectSymbolNotFound : return "hipErrorSharedObjectSymbolNotFound";
|
||||
case hipErrorSharedObjectInitFailed : return "hipErrorSharedObjectInitFailed";
|
||||
case hipErrorOperatingSystem : return "hipErrorOperatingSystem";
|
||||
case hipErrorInvalidHandle : return "hipErrorInvalidHandle";
|
||||
case hipErrorNotFound : return "hipErrorNotFound";
|
||||
case hipErrorIllegalAddress : return "hipErrorIllegalAddress";
|
||||
|
||||
case hipErrorMissingConfiguration : return "hipErrorMissingConfiguration";
|
||||
case hipErrorMemoryAllocation : return "hipErrorMemoryAllocation";
|
||||
case hipErrorInitializationError : return "hipErrorInitializationError";
|
||||
case hipErrorLaunchFailure : return "hipErrorLaunchFailure";
|
||||
case hipErrorPriorLaunchFailure : return "hipErrorPriorLaunchFailure";
|
||||
case hipErrorLaunchTimeOut : return "hipErrorLaunchTimeOut";
|
||||
case hipErrorLaunchOutOfResources : return "hipErrorLaunchOutOfResources";
|
||||
case hipErrorInvalidValue : return "hipErrorInvalidValue";
|
||||
case hipErrorInvalidResourceHandle : return "hipErrorInvalidResourceHandle";
|
||||
case hipErrorInvalidDeviceFunction : return "hipErrorInvalidDeviceFunction";
|
||||
case hipErrorInvalidConfiguration : return "hipErrorInvalidConfiguration";
|
||||
case hipErrorInvalidDevice : return "hipErrorInvalidDevice";
|
||||
case hipErrorInvalidValue : return "hipErrorInvalidValue";
|
||||
case hipErrorInvalidDevicePointer : return "hipErrorInvalidDevicePointer";
|
||||
case hipErrorInvalidMemcpyDirection : return "hipErrorInvalidMemcpyDirection";
|
||||
case hipErrorNoDevice : return "hipErrorNoDevice";
|
||||
case hipErrorUnknown : return "hipErrorUnknown";
|
||||
case hipErrorInvalidResourceHandle : return "hipErrorInvalidResourceHandle";
|
||||
case hipErrorNotReady : return "hipErrorNotReady";
|
||||
case hipErrorPeerAccessNotEnabled : return "hipErrorPeerAccessNotEnabled";
|
||||
case hipErrorNoDevice : return "hipErrorNoDevice";
|
||||
case hipErrorPeerAccessAlreadyEnabled : return "hipErrorPeerAccessAlreadyEnabled";
|
||||
|
||||
case hipErrorPeerAccessNotEnabled : return "hipErrorPeerAccessNotEnabled";
|
||||
case hipErrorRuntimeMemory : return "hipErrorRuntimeMemory";
|
||||
case hipErrorRuntimeOther : return "hipErrorRuntimeOther";
|
||||
case hipErrorUnknown : return "hipErrorUnknown";
|
||||
case hipErrorHostMemoryAlreadyRegistered : return "hipErrorHostMemoryAlreadyRegistered";
|
||||
case hipErrorHostMemoryNotRegistered : return "hipErrorHostMemoryNotRegistered";
|
||||
case hipErrorTbd : return "hipErrorTbd";
|
||||
default : return "hipErrorUnknown";
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user