Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't require a full cython import to find PTX file #15785

Open
wants to merge 3 commits into
base: branch-24.06
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions python/cudf/cudf/utils/_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,13 @@
import glob
import os
import sys
from functools import lru_cache

from numba import config as numba_config


# Use an lru_cache with a single value to allow a delayed import of
# strings_udf. This is the easiest way to break an otherwise circular import
# loop of _lib.*->cudautils->_numba->_lib.strings_udf
@lru_cache
def _get_cc_60_ptx_file():
from cudf._lib import strings_udf

return os.path.join(
os.path.dirname(strings_udf.__file__),
os.path.dirname(os.path.abspath(__file__)),
"..",
"core",
"udf",
Expand Down
Loading