SWDEV-343380 - Added hipDrvGetErrorName/String

Change-Id: If22d87b64f8ffc870c05482d28c7c91fb2b7d041


[ROCm/clr commit: 53be27a84f]
Αυτή η υποβολή περιλαμβάνεται σε:
Sarbojit Sarkar
2022-07-19 08:39:54 +00:00
υποβλήθηκε από Maneesh Gupta
γονέας 4f985bd9cc
υποβολή 57473658dd
4 αρχεία άλλαξαν με 23 προσθήκες και 0 διαγραφές
@@ -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;
}