Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 55032ef

Browse files
committed
Merge branch 'fix/reorder_import' into 'devel'
Import ufunc_db only after lazy_init See merge request mlp-python/NUMBA-DPPY!76
2 parents 1d368e0 + c51f4b1 commit 55032ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numba/dppy/target.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,10 @@ def init(self):
9999
# Override data model manager to SPIR model
100100
self.data_model_manager = spirv_data_model_manager
101101

102-
from numba.np.ufunc_db import _ufunc_db as ufunc_db, _lazy_init_db
102+
from numba.np.ufunc_db import _lazy_init_db
103103
import copy
104104
_lazy_init_db()
105+
from numba.np.ufunc_db import _ufunc_db as ufunc_db
105106
self.ufunc_db = copy.deepcopy(ufunc_db)
106107

107108

0 commit comments

Comments
 (0)