From 03192ed89c6bca9f01fa224def7aec88e77fd8c7 Mon Sep 17 00:00:00 2001 From: Aryan Salmanpour Date: Wed, 17 Jan 2024 10:52:48 -0500 Subject: [PATCH] Print the hip error name string instead of the hip status integer for better clarity of a hip failure occurs (#181) [ROCm/rocdecode commit: 1a77f3d1b059e873b9d87a998b59b7833cc9b322] --- projects/rocdecode/src/rocdecode/roc_decoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocdecode/src/rocdecode/roc_decoder.h b/projects/rocdecode/src/rocdecode/roc_decoder.h index 532dcc3214..7bc705ecb8 100644 --- a/projects/rocdecode/src/rocdecode/roc_decoder.h +++ b/projects/rocdecode/src/rocdecode/roc_decoder.h @@ -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;\ }\ }