feat(common): add a check for hipblas in hip_check

This commit is contained in:
Anthony Berg 2025-06-24 21:40:56 +02:00
parent 189eb42603
commit f2bda95812

View File

@ -1,4 +1,4 @@
from hip import hip
from hip import hip, hipblas
def hip_check(call_request):
@ -12,4 +12,6 @@ def hip_check(call_request):
result = result[0]
if isinstance(err, hip.hipError_t) and err != hip.hipError_t.hipSuccess:
raise RuntimeError(str(err))
elif isinstance(err, hipblas.hipblasStatus_t) and err != hipblas.hipblasStatus_t.HIPBLAS_STATUS_SUCCESS:
raise RuntimeError(str(err))
return result