Repository navigation
Complete the 0.10 release notes and update the NUMA example - #842
Merged
Merged
Conversation
vchuravy
commented
Oct 5, 2026
vchuravy
commented
Oct 5, 2026
Contributor
Benchmark ResultsShow table
Benchmark PlotsA plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #842 +/- ##
=======================================
Coverage 80.82% 80.82%
=======================================
Files 26 26
Lines 2227 2227
=======================================
Hits 1800 1800
Misses 427 427 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
vchuravy
force-pushed
the
vc/release-notes-0.10
branch
from
October 9, 2026 08:28
795d078 to
cc5b112
Compare
vchuravy
force-pushed
the
vc/release-notes-0.10
branch
from
October 11, 2026 11:48
cc5b112 to
259f8fa
Compare
The 0.10 notes did not mention the Julia 1.10 requirement, that the CPU backend now runs on PoCL (and that `CPU(; static=true)` is gone), the KernelInterface requirement for backends, the temporary removal of the Enzyme extension, `KernelAbstractions.@spawn`, or the removal of `isgpu`. The NUMA example still called `CPU(; static=true)`, which no longer exists. Drop that call and note on its page which of the remarks changed with the PoCL-based CPU backend. Assisted-by: Claude Code
The example pinned Julia's threads with ThreadPinning.jl and relied on `KernelAbstractions.zeros` for a parallel first touch. On 0.10 kernels run on PoCL's threads and `zeros` fills from the calling thread, so pin with `POCL_AFFINITY=1` and initialize the data with a kernel instead. The page now describes 0.10 only. Its numbers are from a system with a single memory domain, where the configurations don't differ; the page says that the gain on a system with multiple domains is not measured. Assisted-by: Claude Code
….10 notes Launching a kernel on the PoCL-based CPU backend costs several microseconds more than on the thread-based backend of 0.9, and a fixed one-dimensional workgroup size such as 64 pads multidimensional ranges. Recommend letting the workgroup size be chosen, and mention that kernels always run with the bounds mask (#845). Assisted-by: Claude Code
Assisted-by: Claude Code (Opus 5.5)
Assisted-by: Claude Code (Opus 5.5)
The numbers in the two `CPU` performance entries were measured before the default workgroup size was changed to follow PoCL's heuristic (#861), which is what "the chosen one" now refers to. Re-measured with KernelAbstractions 0.9.45 and this branch on 16 threads (Ryzen 9 5950X, Julia 1.12), with a Float32 7-point stencil kernel, timing a launch plus `synchronize`: 0.9.45 this branch empty kernel inline 4.7 µs 4³, chosen size 0.23 µs 3.5 µs 16³, chosen size 6.8 µs 7.5 µs 16³, size 64 14.6 µs 12.5 µs 128³, chosen size 520 µs 350 µs 128³, size 64 135 µs 367 µs 0.9 ran a launch that fits in one workgroup on the launching task, which is why its 4³ launch costs almost nothing; the 16³ launch ran on all threads in both versions and costs about the same. Assisted-by: Claude Code (Fable 5.1)
vchuravy
force-pushed
the
vc/release-notes-0.10
branch
from
October 12, 2026 06:04
b4f3d6b to
34473da
Compare
vchuravy
commented
Oct 12, 2026
vchuravy
commented
Oct 12, 2026
vchuravy
commented
Oct 12, 2026
vchuravy
commented
Oct 12, 2026
vchuravy
commented
Oct 12, 2026
…n the CPU backend The 0.10 entry about the bounds mask (#845) now gives measured numbers, and the quickstart gains a section on `unsafe_indices = true`, with the masked kernel from the quickstart and its unmasked counterpart. Measured on 16 threads (Ryzen 9 5950X, Julia 1.12) on an otherwise idle machine, per launch including `synchronize`, with the chosen workgroup size; the table in the previous re-measurement commit was taken while other processes were running, which inflated its 128³ numbers: 0.9.45 masked unmasked, guarded unmasked 7-point stencil 128³ 95 µs 140 µs 150 µs 80 µs axpy 2^22 55 µs 185 µs 215 µs 85 µs A check written in the kernel (`if I <= length(A)`) costs as much as the check it replaces, so the opt-out only pays off when the launch has no padded work-items, i.e. when the ndrange is a multiple of the workgroup size, and the docs say so. The 16³ and 128³ numbers of the workgroup-size entry are corrected from the idle-machine runs (13 µs, 5 to 15%). Assisted-by: Claude Code (Fable 5.1)
vchuravy
force-pushed
the
vc/release-notes-0.10
branch
from
October 12, 2026 10:47
01247f5 to
c7ca40d
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fills the gaps in the
### 0.10section ofdocs/src/index.mdahead of the 0.10 release, and fixes the NUMA example, which still used an option that no longer exists.Release notes
New entries for:
CPUbackend beingPOCLBackend, running on PoCL's own threads, and the removal ofCPU(; static=true);KernelAbstractions.@spawn(Add KernelAbstractions.@spawn and record_event/wait_event #750);KernelAbstractions.isgpu.@Constarguments being constified on the host at launch (Constify@Constarguments when launching instead of in the kernel #872), so that e.g. aLinRangecan be passed as@Const;@Conston varargs is rejected, and backends have to convert arguments with Adapt.jl.CPUbackend, from re-measuring the WaterLily reports (WaterLily performance regression on CPU multi-threading backend for Julia 1.13.0 #696, WaterLily performance regression on CPU multi-threading backend for Julia 1.12.0 #644):64on theCPUbackend. A 1-D workgroup size pads N-d ranges (for(16, 16, 16), 256 workgroups of 64 work-items with 16 inside the range); a stencil over that range took 13 µs per launch with64against 7 µs with the chosen size, and over 128³ the chosen size is still 5 to 15% faster;axpyover 2²² elements 185 µs against 55 µs. Withunsafe_indices = trueand no check in the kernel they take 80 µs and 85 µs; a check written in the kernel costs as much as the one it replaces, so the opt-out only helps when thendrangeis a multiple of the workgroup size.Quickstart
A new section, Opting out of the bounds check, shows the quickstart's
mul2_kernelwithunsafe_indices = true, launched over anndrangethat is a multiple of the workgroup size, and says when a kernel still has to check its indices itself and how (compare@index(Global, NTuple)with@ndrange(), as the linear index of a padded work-item can alias one inside the range).NUMA example
examples/numa_aware.jlcalledCPU(; static=true), which throws aMethodErroron main, and its advice was written for the thread-basedCPUbackend of 0.9. The example and its page are rewritten for the PoCL-based backend:POCL_AFFINITY=1pins PoCL's threads. ThreadPinning.jl pins Julia's threads, which no longer run the kernels, so the example drops it.staticoption anymore; the page points tojulia -t/JULIA_KA_CPU_THREADSfor the thread count.KernelAbstractions.zerosfills the array from the calling thread (allocate+fill!), so the example allocates withallocateand initializes with a kernel.The page's numbers are new, measured on main with 16 threads on a Ryzen 9 5950X. That machine has a single NUMA domain, so all four configurations (affinity on/off, parallel/serial initialization) give the same 41.2 GB/s. The page says so, and says that the gain on a system with multiple memory domains has not been measured with the PoCL-based backend. Numbers from a multi-socket machine would be a welcome follow-up.
Testing
The performance numbers were re-measured after rebasing onto #861, which changed the default workgroup size they refer to (16 threads, Ryzen 9 5950X, Julia 1.12, otherwise idle machine; the tables are in the commit messages). The documentation builds locally (
julia --project=docs docs/make.jl, Julia 1.12) and the new cross-references resolve.🤖 Generated with Claude Code