Print the hip error name string instead of the hip status integer for better clarity of a hip failure occurs (#181)

[ROCm/rocdecode commit: 1a77f3d1b0]
이 커밋은 다음에 포함됨:
Aryan Salmanpour 작성하고 GitHub가 2024-01-17 10:52:48 -05:00를 커밋함
1 부모 5cd81b0a5b
커밋 03192ed89c
1 파일이 변경됨
+1 -1
+1 -1
파일 보기
@@ -37,7 +37,7 @@ THE SOFTWARE.
#define CHECK_HIP(call) {\
hipError_t hip_status = call;\
if (hip_status != hipSuccess) {\
std::cout << "HIP failure: " << #call << " failed with 'status# " << hip_status << "' at " << __FILE__ << ":" << __LINE__ << std::endl;\
std::cout << "HIP failure: " << #call << " failed with 'status: " << hipGetErrorName(hip_status) << "' at " << __FILE__ << ":" << __LINE__ << std::endl;\
return ROCDEC_RUNTIME_ERROR;\
}\
}