Skip to content

Commit 57e43b2

Browse files
Merge pull request #252 from loostrum/fix_hip_import
Catch RuntimeError when importing from pyhip
2 parents 1c96693 + ce5609f commit 57e43b2

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)