Skip to content

Commit dcd102b

Browse files
committed
Report last HIP error on error
1 parent 4e46459 commit dcd102b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel_tuner/backends/hip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def hip_check(call_result):
4040
if len(result) == 1:
4141
result = result[0]
4242
if isinstance(err, hip.hipError_t) and err != hip.hipError_t.hipSuccess:
43-
raise RuntimeError(str(err))
43+
raise RuntimeError(str(err), hip.hipGetLastError())
4444
return result
4545

4646

0 commit comments

Comments
 (0)