Skip to content

Commit

Permalink
Merge pull request #252 from loostrum/fix_hip_import
Browse files Browse the repository at this point in the history
Catch RuntimeError when importing from pyhip
  • Loading branch information
benvanwerkhoven authored Apr 16, 2024
2 parents 1c96693 + ce5609f commit 57e43b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel_tuner/backends/hip.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

try:
from pyhip import hip, hiprtc
except ImportError:
except (ImportError, RuntimeError):
hip = None
hiprtc = None

Expand Down
2 changes: 1 addition & 1 deletion kernel_tuner/observers/hip.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

try:
from pyhip import hip, hiprtc
except ImportError:
except (ImportError, RuntimeError):
hip = None
hiprtc = None

Expand Down

0 comments on commit 57e43b2

Please sign in to comment.