Skip to content

Commit

Permalink
ignore jit_options unconditionally for now when loading from a file
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang authored Oct 28, 2024
1 parent b634d70 commit 74de685
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cuda_core/cuda/core/experimental/_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def __init__(self, module, code_type, jit_options=None, *,
self._loader = _backend[backend]

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

0 comments on commit 74de685

Please sign in to comment.