Commit bc2e2c6
Support numba 0.66-0.67 with LLVM 22 (#78)
* Port to LLVM 22 and numba 0.66-0.67
numba 0.66 and 0.67 use llvmlite 0.48 (LLVM 22), so build the pass library
and the OpenMP runtimes against LLVM 22.1.8.
- Port the pass library to the LLVM 22 OpenMPIRBuilder API
(__kmpc_parallel_60, TargetKernelArgs, ReductionInfo, PassPlugin.h), and
set the OpenMPIRBuilder config, which createReductions now reads.
- Build Linux wheels with the conda-forge LLVM 22 toolchain, compiling
against the manylinux gcc-toolset libstdc++.
- Build the nvptx and amdgcn device runtime bitcode from openmp/device,
ignoring host CFLAGS and CXXFLAGS.
- Keep three runtime patches for 22.1.8 (static LLVM, skip liboffload,
__tgt_get_device_info) and drop the patch sets for older LLVM versions.
- Require numba >=0.66,<0.68 and test numba 0.66.0 and 0.67.0.
- Drop the conda is_freethreading variant, which no numba pin uses now.
The libomptarget CUDA plugin in LLVM 22 includes llvm/llvm-project#159354
(fixes #71), and llvmlite 0.48 knows sm_110 (fixes #68).
The OpenMPIRBuilder config setting, the device runtime host-flag reset, and
the __tgt_get_device_info patch port are from #75.
* Read AVX512_SKX from the NumPy SIMD features in conda tests
numba 0.66 removed the "NumPy AVX512_SKX detected" sysinfo entry, so the
conda test script failed with a KeyError before running the tests. Check the
"NumPy Supported SIMD features" list instead. The fix is from #75.
* Document PyOMP 0.6 compatibility
---------
Co-authored-by: Aleksander Wennersteen <aleksander.wennersteen@pasqal.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 473dcf5 commit bc2e2c6
29 files changed
Lines changed: 204 additions & 700 deletions
File tree
- .github/workflows
- buildscripts
- cibuildwheel
- conda-recipes/pyomp
- modal
- docs/source
- src/numba/openmp/libs
- openmp/patches
- 14.0.6
- 15.0.7
- 16.0.6
- 20.1.8
- 22.1.8
- pass
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 88 | + | |
105 | 89 | | |
106 | 90 | | |
107 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
62 | 63 | | |
63 | | - | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 1 | | |
7 | 2 | | |
8 | 3 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
65 | 64 | | |
66 | | - | |
67 | | - | |
| 65 | + | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments