Commit eeac024
authored
[Refactor][NFC][Cleanups] Update imports to upstream numba to use the numba.cuda modules (#561)
This PR updates the vast majority of imports to upstream numba modules,
that had already been vendored in for future CUDA-specific changes.
After this PR, there should be exactly 3 (not strictly necessary)
upstream numba imports remaining - one in testing vectorization for in
test_math, one in random.py, and the global compiler_lock.
It seems from the existing comments that removing the CPU jit in
random.py would result in considerable performance drops, so I've just
added a guard for numba being available.
Some lowering / overload implementations that depend on
numba.core.misc.{mergesort,quicksort} have been removed. These
are presently not regarded as supported, and are unlikely to be
performant implementations in a CUDA-specific context.
There are many tests that rely on CPU jitting, these tests are now
guarded to not run in environments where the numba package is not
available. This is done using a global importlib check in numba-cuda's
`__init__.py`. This cannot be moved into numba.cuda.config since the
upstream numba doesn't have this flag, and we intend on forwarding calls
to upstream numba when it is available. All previously sporadic guards
for this *should* have been updated to use this global flag now.
Support for prange, pndindex, and stencils has been removed, likewise
for typed.Dict, and typed.List.
Also, this removes all mention of the legacy type
system flag since we implicitly assume the legacy type system in place.1 parent 7ce01f4 commit eeac024
File tree
90 files changed
+340
-494
lines changed- numba_cuda/numba/cuda
- core
- rewrites
- unsafe
- cpython
- unsafe
- memory_management
- misc
- np
- math
- polynomial
- ufunc
- tests
- core
- cudapy
- doc_examples
- nocuda
- types
- typing
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
90 files changed
+340
-494
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
354 | 354 | | |
355 | 355 | | |
356 | 356 | | |
357 | | - | |
| 357 | + | |
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| 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 | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | 215 | | |
221 | 216 | | |
222 | 217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
0 commit comments