Skip to content

Commit 1c2b305

Browse files
committed
Add patch for numba to disable JIT
1 parent d1fb7f9 commit 1c2b305

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[[rules]]
2+
# Not upstreamable, we disable the JIT
3+
version = '== 0.59.1'
4+
patch = 'numba-0.59.1.patch'
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
diff --git a/numba/core/decorators.py b/numba/core/decorators.py
2+
index 21f1125..00a28fe 100644
3+
--- a/numba/core/decorators.py
4+
+++ b/numba/core/decorators.py
5+
@@ -217,6 +217,10 @@ def _jit(sigs, locals, target, cache, targetoptions, **dispatcher_args):
6+
f"{type(func)})."
7+
)
8+
9+
+ if sys.implementation.name == 'graalpy':
10+
+ if target == 'npyufunc':
11+
+ raise NotImplementedError("Cannot create npyufunc under graalpy")
12+
+ return func
13+
if config.ENABLE_CUDASIM and target == 'cuda':
14+
from numba import cuda
15+
return cuda.jit(func)
16+
diff --git a/pyproject.toml b/pyproject.toml
17+
new file mode 100644
18+
index 0000000..fecb79e
19+
--- /dev/null
20+
+++ b/pyproject.toml
21+
@@ -0,0 +1,8 @@
22+
+[build-system]
23+
+requires = ["setuptools >= 40.6.0", "wheel", "llvmlite<0.43,>=0.42.0dev0", "numpy<1.27,>=1.22", "versioneer"]
24+
+build-backend = "setuptools.build_meta"
25+
+
26+
+[tool.versioneer]
27+
+VCS = 'git'
28+
+versionfile_source = 'numba/_version.py'
29+
+versionfile_build ='numba/_version.py'

0 commit comments

Comments
 (0)