Skip to content

Commit ce5609f

Browse files
committed
Catch RuntimeError when importing from pyhip
1 parent 1c96693 commit ce5609f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kernel_tuner/backends/hip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
try:
1313
from pyhip import hip, hiprtc
14-
except ImportError:
14+
except (ImportError, RuntimeError):
1515
hip = None
1616
hiprtc = None
1717

kernel_tuner/observers/hip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
from pyhip import hip, hiprtc
7-
except ImportError:
7+
except (ImportError, RuntimeError):
88
hip = None
99
hiprtc = None
1010

0 commit comments

Comments
 (0)