We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59478be commit c05c817Copy full SHA for c05c817
numba_dpex/__init__.py
@@ -17,14 +17,19 @@
17
from numba import __version__ as numba_version
18
from numba.np import arrayobj
19
from numba.np.ufunc.decorators import Vectorize
20
+from numba.parfors import parfor
21
22
from numba_dpex._patches import _empty_nd_impl
23
from numba_dpex.vectorizers import Vectorize as DpexVectorize
24
-from .numba_patches import patch_mk_alloc
25
+from .numba_patches import patch_is_ufunc, patch_mk_alloc
26
+from .numba_patches.patch_parfor import (
27
+ _arrayexpr_tree_to_ir as _patched_arrayexpr_tree_to_ir,
28
+)
29
30
# Monkey patches
-
31
+patch_is_ufunc.patch()
32
+parfor._arrayexpr_tree_to_ir = _patched_arrayexpr_tree_to_ir
33
arrayobj._empty_nd_impl = _empty_nd_impl
34
patch_mk_alloc.patch()
35
0 commit comments