Skip to content

Commit 4fd9444

Browse files
committed
change import style for gpu device functions
1 parent ae20cb6 commit 4fd9444

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stumpy/gpu_aamp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from numba import cuda
1111

1212
from . import core, config
13+
from .core import _gpu_searchsorted_right
1314

1415
logger = logging.getLogger(__name__)
1516

@@ -186,7 +187,7 @@ def _compute_and_update_PI_kernel(
186187
indices_R[j] = i
187188

188189
if p_norm < profile[j, -1]:
189-
idx = core._gpu_searchsorted_right(profile[j], p_norm, bfs, nlevel)
190+
idx = _gpu_searchsorted_right(profile[j], p_norm, bfs, nlevel)
190191
for g in range(k - 1, idx, -1):
191192
profile[j, g] = profile[j, g - 1]
192193
indices[j, g] = indices[j, g - 1]

stumpy/gpu_stump.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from numba import cuda
1111

1212
from . import core, config
13+
from .core import _gpu_searchsorted_right
1314
from .gpu_aamp import gpu_aamp
1415

1516
logger = logging.getLogger(__name__)
@@ -194,7 +195,7 @@ def _compute_and_update_PI_kernel(
194195
indices_R[j] = i
195196

196197
if p_norm < profile[j, -1]:
197-
idx = core._gpu_searchsorted_right(profile[j], p_norm, bfs, nlevel)
198+
idx = _gpu_searchsorted_right(profile[j], p_norm, bfs, nlevel)
198199
for g in range(k - 1, idx, -1):
199200
profile[j, g] = profile[j, g - 1]
200201
indices[j, g] = indices[j, g - 1]

0 commit comments

Comments
 (0)