SWDEV-343380 - Added hipDrvGetErrorName/String
Change-Id: If22d87b64f8ffc870c05482d28c7c91fb2b7d041
[ROCm/clr commit: 53be27a84f]
This commit is contained in:
committed by
Maneesh Gupta
parent
4f985bd9cc
commit
57473658dd
@@ -425,3 +425,5 @@ hipMemcpyFromArray_spt
|
||||
hipMemcpy2DToArray_spt
|
||||
hipMemcpy2DFromArrayAsync_spt
|
||||
hipMemcpy2DToArrayAsync_spt
|
||||
hipDrvGetErrorName
|
||||
hipDrvGetErrorString
|
||||
|
||||
@@ -351,3 +351,20 @@ const char *hipGetErrorString(hipError_t hip_error)
|
||||
return ihipGetErrorString(hip_error);
|
||||
}
|
||||
|
||||
hipError_t hipDrvGetErrorName(hipError_t hip_error, const char** errStr)
|
||||
{
|
||||
if (errStr == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
*errStr = ihipGetErrorName(hip_error);
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
hipError_t hipDrvGetErrorString(hipError_t hip_error, const char** errStr)
|
||||
{
|
||||
if (errStr == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
}
|
||||
*errStr = ihipGetErrorString(hip_error);
|
||||
return hipSuccess;
|
||||
}
|
||||
@@ -439,3 +439,5 @@ hipMemcpyToSymbolAsync_spt
|
||||
hipMemcpyFromArray_spt
|
||||
hipMemcpy2DToArray_spt
|
||||
hipMemcpy2DFromArrayAsync_spt
|
||||
hipDrvGetErrorName
|
||||
hipDrvGetErrorString
|
||||
@@ -493,6 +493,8 @@ global:
|
||||
hipMemcpy2DToArray_spt;
|
||||
hipMemcpy2DFromArrayAsync_spt;
|
||||
hipMemcpy2DToArrayAsync_spt;
|
||||
hipDrvGetErrorName;
|
||||
hipDrvGetErrorString;
|
||||
local:
|
||||
*;
|
||||
} hip_5.2;
|
||||
|
||||
Reference in New Issue
Block a user