Skip to content

Commit

Permalink
locally import patch_numba_linker
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Jan 17, 2024
1 parent 687225a commit 92c6bb1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/cudf/cudf/utils/_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from functools import lru_cache

from numba import config as numba_config
from pynvjitlink.patch import (
patch_numba_linker as patch_numba_linker_pynvjitlink,
)


# Use an lru_cache with a single value to allow a delayed import of
Expand Down Expand Up @@ -135,7 +132,9 @@ def _setup_numba():
if driver_version < (12, 0):
patch_numba_linker_cuda_11()
else:
patch_numba_linker_pynvjitlink()
from pynvjitlink.patch import patch_numba_linker

patch_numba_linker()


def _get_cuda_version_from_ptx_file(path):
Expand Down

0 comments on commit 92c6bb1

Please sign in to comment.