mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-09-14 19:22:17 +02:00
feat(common): add a check for hipblas in hip_check
This commit is contained in:
parent
189eb42603
commit
f2bda95812
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user