We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f596d43 commit 46cfb66Copy full SHA for 46cfb66
1 file changed
kernel_tuner/backends/hip.py
@@ -40,7 +40,9 @@ def hip_check(call_result):
40
if len(result) == 1:
41
result = result[0]
42
if isinstance(err, hip.hipError_t) and err != hip.hipError_t.hipSuccess:
43
- raise RuntimeError(str(err))
+ _, error_name = hip.hipGetErrorName(err)
44
+ _, error_str = hip.hipGetErrorString(err)
45
+ raise RuntimeError(f"{error_name}: {error_str}")
46
return result
47
48
0 commit comments