SWDEV-343380 - Added hipDrvGetErrorName/String

Change-Id: If22d87b64f8ffc870c05482d28c7c91fb2b7d041
This commit is contained in:
Sarbojit Sarkar
2022-07-19 08:39:54 +00:00
committed by Maneesh Gupta
parent 789e718549
commit 53be27a84f
4 changed files with 23 additions and 0 deletions
+17
View File
@@ -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;
}