Skip to content

Commit

Permalink
unconditionally import patching function from pynvjitlink
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Jan 16, 2024
1 parent 02ef286 commit c6ae80c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions python/cudf/cudf/utils/_numba.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
# Copyright (c) 2023, NVIDIA CORPORATION.
# Copyright (c) 2023-2024, NVIDIA CORPORATION.

import glob
import os
import sys
import warnings

from numba import config as numba_config

try:
from pynvjitlink.patch import (
patch_numba_linker as patch_numba_linker_pynvjitlink,
)
except ImportError:

def patch_numba_linker_pynvjitlink():
warnings.warn(
"CUDA Toolkit is newer than CUDA driver. "
"Numba features will not work in this configuration. "
)

from pynvjitlink.patch import (
patch_numba_linker as patch_numba_linker_pynvjitlink,
)

CC_60_PTX_FILE = os.path.join(
os.path.dirname(__file__), "../core/udf/shim_60.ptx"
Expand Down

0 comments on commit c6ae80c

Please sign in to comment.