Skip to content

Commit 74de685

Browse files
authored
ignore jit_options unconditionally for now when loading from a file
1 parent b634d70 commit 74de685

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cuda_core/cuda/core/experimental/_module.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ def __init__(self, module, code_type, jit_options=None, *,
8080
self._loader = _backend[backend]
8181

8282
if isinstance(module, str):
83-
if _driver_ver < 12000 and jit_options is not None:
83+
# TODO: this option is only taken by the new library APIs, but we have
84+
# a bug that we can't easily support it just yet (NVIDIA/cuda-python#73).
85+
if jit_options is not None:
8486
raise ValueError
8587
module = module.encode()
8688
self._handle = handle_return(self._loader["file"](module))

0 commit comments

Comments
 (0)