Commit 45db370
Remove inlining annotations from parallelize_over
The annotations were compensating for the removal of the ThisThread method of
foreach_slice: with every loop routed through parallelize_over, inlining was
the only way to elide the closure on single-threaded paths. Now that
single-threaded and nested loops dispatch to the ThisThread method and never
construct the closure, the generic parallelize_over only runs inside GPU
kernels, which are compiled with always_inline = true, and the CPU thread pool
has its own method. Verified without the annotations: zero allocations in
unit_loops.jl on Julia 1.10.11 (single-threaded and --threads=4) and 1.11.9,
unchanged JET budgets in opt_spaces.jl, and unchanged device-free kernel
compilation checks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 279f9dd commit 45db370
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
| 126 | + | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
| |||
0 commit comments