From ce5609fd688eb6ae64bca2b3cdd37d9d36617d9a Mon Sep 17 00:00:00 2001 From: Leon Oostrum Date: Tue, 16 Apr 2024 16:38:28 +0200 Subject: [PATCH] Catch RuntimeError when importing from pyhip --- kernel_tuner/backends/hip.py | 2 +- kernel_tuner/observers/hip.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel_tuner/backends/hip.py b/kernel_tuner/backends/hip.py index 1db4cb302..fb8a9f947 100644 --- a/kernel_tuner/backends/hip.py +++ b/kernel_tuner/backends/hip.py @@ -11,7 +11,7 @@ try: from pyhip import hip, hiprtc -except ImportError: +except (ImportError, RuntimeError): hip = None hiprtc = None diff --git a/kernel_tuner/observers/hip.py b/kernel_tuner/observers/hip.py index f789462e3..9ee339209 100644 --- a/kernel_tuner/observers/hip.py +++ b/kernel_tuner/observers/hip.py @@ -4,7 +4,7 @@ try: from pyhip import hip, hiprtc -except ImportError: +except (ImportError, RuntimeError): hip = None hiprtc = None