We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b054e9e commit 1019685Copy full SHA for 1019685
1 file changed
toolshed/build_static_bitcode_input.py
@@ -18,18 +18,15 @@
18
import sys
19
import textwrap
20
21
-try:
22
- import llvmlite.binding
23
-except Exception:
24
- sys.exit("HINT: pip install llvmlite")
25
-
+import llvmlite.binding # HINT: pip install llvmlite
26
from cuda.bindings import nvvm
27
28
29
def get_minimal_nvvmir_txt_template():
30
cuda_bindings_tests_dir = os.path.normpath("cuda_bindings/tests")
31
- if not os.path.isdir(cuda_bindings_tests_dir):
32
- raise RuntimeError("Please run this helper script from the cuda-python top-level directory.")
+ assert os.path.isdir(cuda_bindings_tests_dir), (
+ "Please run this helper script from the cuda-python top-level directory."
+ )
33
sys.path.insert(0, os.path.abspath(cuda_bindings_tests_dir))
34
import test_nvvm
35
0 commit comments