From e04766f13ba16e4ada45cb78a28806844123bc0a Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 20 May 2024 06:05:11 -0700 Subject: [PATCH 1/3] compute path relative to current module --- python/cudf/cudf/utils/_numba.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/python/cudf/cudf/utils/_numba.py b/python/cudf/cudf/utils/_numba.py index 494b48b3cfd..d0fc5f296f4 100644 --- a/python/cudf/cudf/utils/_numba.py +++ b/python/cudf/cudf/utils/_numba.py @@ -13,11 +13,10 @@ # loop of _lib.*->cudautils->_numba->_lib.strings_udf @lru_cache def _get_cc_60_ptx_file(): - from cudf._lib import strings_udf - + here = os.path.dirname(os.path.abspath(__file__)) return os.path.join( - os.path.dirname(strings_udf.__file__), - "..", + here, + "../", "core", "udf", "shim_60.ptx", From 2f8bb9dd25ef41742eb96e9e6ebf4be702bcd351 Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 20 May 2024 06:12:23 -0700 Subject: [PATCH 2/3] small updates --- python/cudf/cudf/utils/_numba.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/python/cudf/cudf/utils/_numba.py b/python/cudf/cudf/utils/_numba.py index d0fc5f296f4..46f6218ab74 100644 --- a/python/cudf/cudf/utils/_numba.py +++ b/python/cudf/cudf/utils/_numba.py @@ -3,15 +3,10 @@ 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(): here = os.path.dirname(os.path.abspath(__file__)) return os.path.join( From b0b3fab28fc44aeb56d58fae25110c89b9a7637c Mon Sep 17 00:00:00 2001 From: brandon-b-miller Date: Mon, 20 May 2024 06:35:22 -0700 Subject: [PATCH 3/3] small updates --- python/cudf/cudf/utils/_numba.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/cudf/cudf/utils/_numba.py b/python/cudf/cudf/utils/_numba.py index 46f6218ab74..2150f9b7bb8 100644 --- a/python/cudf/cudf/utils/_numba.py +++ b/python/cudf/cudf/utils/_numba.py @@ -8,10 +8,9 @@ def _get_cc_60_ptx_file(): - here = os.path.dirname(os.path.abspath(__file__)) return os.path.join( - here, - "../", + os.path.dirname(os.path.abspath(__file__)), + "..", "core", "udf", "shim_60.ptx",