SWDEV-343380 - Added hipDrvGetErrorName/String
Change-Id: If22d87b64f8ffc870c05482d28c7c91fb2b7d041
This commit is contained in:
committed by
Maneesh Gupta
parent
789e718549
commit
53be27a84f
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user