SWDEV-343380 - Added hipDrvGetErrorName/String

Change-Id: If22d87b64f8ffc870c05482d28c7c91fb2b7d041
This commit is contained in:
Sarbojit Sarkar authored and Maneesh Gupta committed 2022-07-24 21:32:48 -04:00
1 bovenliggende 789e718549
commit 53be27a84f
4 files changed
+23

No files matched your search

+17
Bestand weergeven
@@ -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;
}