Skip to content

Complete the 0.10 release notes and update the NUMA example - #842

Merged
vchuravy merged 13 commits into
mainfrom
vc/release-notes-0.10
Oct 12, 2026
Merged

vchuravy merged 13 commits into
mainfrom
vc/release-notes-0.10

Conversation

@vchuravy

@vchuravy vchuravy commented Oct 5, 2026 •

Copy link
Copy Markdown
Member

Fills the gaps in the ### 0.10 section of docs/src/index.md ahead of the 0.10 release, and fixes the NUMA example, which still used an option that no longer exists.

Release notes

New entries for:

Quickstart

A new section, Opting out of the bounds check, shows the quickstart's mul2_kernel with unsafe_indices = true, launched over an ndrange that 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.jl called CPU(; static=true), which throws a MethodError on main, and its advice was written for the thread-based CPU backend of 0.9. The example and its page are rewritten for the PoCL-based backend:

  1. Pinning: POCL_AFFINITY=1 pins PoCL's threads. ThreadPinning.jl pins Julia's threads, which no longer run the kernels, so the example drops it.
  2. There is no static option anymore; the page points to julia -t / JULIA_KA_CPU_THREADS for the thread count.
  3. First touch: KernelAbstractions.zeros fills the array from the calling thread (allocate + fill!), so the example allocates with allocate and 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

Comment thread docs/src/index.md Resolved
Comment thread docs/src/index.md Resolved
@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark Results

Show table
main ed164b6... main / ed164b6...
const/@Const/Float32/262144 0.25 ± 0.0073 ms 0.256 ± 0.0091 ms 0.977 ± 0.045
const/@Const/Float32/65536 0.0853 ± 0.0032 ms 0.088 ± 0.0051 ms 0.97 ± 0.067
const/@Const/Float64/262144 0.44 ± 0.011 ms 0.454 ± 0.011 ms 0.968 ± 0.033
const/@Const/Float64/65536 0.132 ± 0.0032 ms 0.136 ± 0.0055 ms 0.968 ± 0.045
const/unmarked/Float32/262144 0.335 ± 0.011 ms 0.413 ± 0.01 ms 0.812 ± 0.034
const/unmarked/Float32/65536 0.105 ± 0.0058 ms 0.105 ± 0.0098 ms 1 ± 0.11
const/unmarked/Float64/262144 0.604 ± 0.015 ms 0.68 ± 0.039 ms 0.889 ± 0.056
const/unmarked/Float64/65536 0.181 ± 0.013 ms 0.173 ± 0.0086 ms 1.05 ± 0.092
dgsem/2D/Float32/fluxdiff/element 0.332 ± 0.0087 ms 0.343 ± 0.014 ms 0.968 ± 0.047
dgsem/2D/Float32/fluxdiff/node E=8 0.456 ± 0.011 ms 0.459 ± 0.0089 ms 0.993 ± 0.031
dgsem/2D/Float32/fluxdiff/node halfsweep E=8 0.335 ± 0.0098 ms 0.337 ± 0.011 ms 0.994 ± 0.045
dgsem/2D/Float32/fluxdiff/node halfsweep v-last E=8 0.359 ± 0.015 ms 0.353 ± 0.012 ms 1.02 ± 0.056
dgsem/2D/Float32/weak/element 0.118 ± 0.0089 ms 0.12 ± 0.0078 ms 0.98 ± 0.098
dgsem/2D/Float32/weak/element private 0.127 ± 0.0048 ms 0.13 ± 0.0052 ms 0.979 ± 0.054
dgsem/2D/Float32/weak/node localmem E=1 0.111 ± 0.013 ms 0.111 ± 0.015 ms 0.996 ± 0.18
dgsem/2D/Float32/weak/node localmem E=8 0.118 ± 0.017 ms 0.108 ± 0.008 ms 1.08 ± 0.18
dgsem/2D/Float32/weak/node localmem v-last E=1 0.168 ± 0.0077 ms 0.164 ± 0.0079 ms 1.03 ± 0.068
dgsem/2D/Float32/weak/node localmem v-last E=8 0.163 ± 0.0089 ms 0.164 ± 0.0068 ms 0.996 ± 0.068
dgsem/2D/Float32/weak/node recompute E=8 0.295 ± 0.0085 ms 0.298 ± 0.01 ms 0.99 ± 0.044
dgsem/2D/Float64/fluxdiff/element 0.362 ± 0.017 ms 0.351 ± 0.0095 ms 1.03 ± 0.056
dgsem/2D/Float64/fluxdiff/node E=8 0.496 ± 0.012 ms 0.493 ± 0.0096 ms 1.01 ± 0.031
dgsem/2D/Float64/fluxdiff/node halfsweep E=8 0.369 ± 0.013 ms 0.363 ± 0.01 ms 1.02 ± 0.047
dgsem/2D/Float64/fluxdiff/node halfsweep v-last E=8 0.363 ± 0.015 ms 0.357 ± 0.012 ms 1.02 ± 0.054
dgsem/2D/Float64/weak/element 0.14 ± 0.0082 ms 0.133 ± 0.0066 ms 1.06 ± 0.081
dgsem/2D/Float64/weak/element private 0.139 ± 0.0053 ms 0.138 ± 0.0029 ms 1.01 ± 0.044
dgsem/2D/Float64/weak/node localmem E=1 0.115 ± 0.0049 ms 0.115 ± 0.0086 ms 1 ± 0.086
dgsem/2D/Float64/weak/node localmem E=8 0.114 ± 0.004 ms 0.111 ± 0.0078 ms 1.03 ± 0.081
dgsem/2D/Float64/weak/node localmem v-last E=1 0.171 ± 0.0083 ms 0.167 ± 0.0079 ms 1.02 ± 0.069
dgsem/2D/Float64/weak/node localmem v-last E=8 0.17 ± 0.0095 ms 0.167 ± 0.0072 ms 1.02 ± 0.072
dgsem/2D/Float64/weak/node recompute E=8 0.416 ± 0.012 ms 0.408 ± 0.0086 ms 1.02 ± 0.036
dgsem/3D/Float32/fluxdiff/element 1.14 ± 0.014 ms 1.13 ± 0.02 ms 1.01 ± 0.021
dgsem/3D/Float32/fluxdiff/node E=2 1.9 ± 0.038 ms 1.87 ± 0.023 ms 1.01 ± 0.024
dgsem/3D/Float32/fluxdiff/node halfsweep E=1 1.22 ± 0.036 ms 1.18 ± 0.012 ms 1.03 ± 0.032
dgsem/3D/Float32/fluxdiff/node halfsweep v-last E=1 1.37 ± 0.028 ms 1.36 ± 0.021 ms 1.01 ± 0.026
dgsem/3D/Float32/weak/element 0.426 ± 0.014 ms 0.421 ± 0.0091 ms 1.01 ± 0.04
dgsem/3D/Float32/weak/element private 0.436 ± 0.01 ms 0.429 ± 0.011 ms 1.02 ± 0.036
dgsem/3D/Float32/weak/node localmem E=1 0.556 ± 0.014 ms 0.546 ± 0.009 ms 1.02 ± 0.031
dgsem/3D/Float32/weak/node localmem E=2 0.563 ± 0.012 ms 0.564 ± 0.016 ms 0.999 ± 0.036
dgsem/3D/Float32/weak/node localmem v-last E=1 0.816 ± 0.03 ms 0.814 ± 0.016 ms 1 ± 0.041
dgsem/3D/Float32/weak/node localmem v-last E=2 0.852 ± 0.015 ms 0.816 ± 0.013 ms 1.04 ± 0.025
dgsem/3D/Float32/weak/node recompute E=2 1.34 ± 0.028 ms 1.33 ± 0.013 ms 1.01 ± 0.023
dgsem/3D/Float32/weak/slab E=1 1.52 ± 0.026 ms 1.5 ± 0.018 ms 1.01 ± 0.021
dgsem/3D/Float32/weak/slab E=8 4.56 ± 0.25 ms 4.42 ± 0.062 ms 1.03 ± 0.059
dgsem/3D/Float32/weak/slab double-buffered E=1 0.954 ± 0.027 ms 0.947 ± 0.015 ms 1.01 ± 0.033
dgsem/3D/Float32/weak/slab double-buffered E=8 1.08 ± 0.019 ms 1.05 ± 0.012 ms 1.03 ± 0.021
dgsem/3D/Float32/weak/slab double-buffered v-last E=1 0.944 ± 0.015 ms 0.939 ± 0.016 ms 1.01 ± 0.024
dgsem/3D/Float32/weak/slab double-buffered v-last E=8 1.08 ± 0.022 ms 1.08 ± 0.019 ms 0.991 ± 0.027
dgsem/3D/Float32/weak/slab v-last E=1 1.53 ± 0.027 ms 1.5 ± 0.014 ms 1.02 ± 0.021
dgsem/3D/Float32/weak/slab v-last E=8 4.88 ± 0.13 ms 4.4 ± 0.066 ms 1.11 ± 0.033
dgsem/3D/Float64/fluxdiff/element 1.2 ± 0.018 ms 1.2 ± 0.0084 ms 1 ± 0.017
dgsem/3D/Float64/fluxdiff/node E=2 2.02 ± 0.06 ms 2 ± 0.025 ms 1.01 ± 0.033
dgsem/3D/Float64/fluxdiff/node halfsweep E=1 1.21 ± 0.033 ms 1.2 ± 0.0088 ms 1.01 ± 0.028
dgsem/3D/Float64/fluxdiff/node halfsweep v-last E=1 1.45 ± 0.027 ms 1.43 ± 0.02 ms 1.02 ± 0.024
dgsem/3D/Float64/weak/element 0.5 ± 0.011 ms 0.498 ± 0.014 ms 1 ± 0.036
dgsem/3D/Float64/weak/element private 0.512 ± 0.015 ms 0.505 ± 0.01 ms 1.01 ± 0.036
dgsem/3D/Float64/weak/node localmem E=1 0.577 ± 0.016 ms 0.575 ± 0.012 ms 1 ± 0.034
dgsem/3D/Float64/weak/node localmem E=2 0.584 ± 0.013 ms 0.576 ± 0.011 ms 1.01 ± 0.03
dgsem/3D/Float64/weak/node localmem v-last E=1 0.842 ± 0.018 ms 0.847 ± 0.014 ms 0.994 ± 0.027
dgsem/3D/Float64/weak/node localmem v-last E=2 0.88 ± 0.018 ms 0.844 ± 0.016 ms 1.04 ± 0.029
dgsem/3D/Float64/weak/node recompute E=2 1.45 ± 0.024 ms 1.42 ± 0.019 ms 1.02 ± 0.022
dgsem/3D/Float64/weak/slab E=1 1.56 ± 0.024 ms 1.53 ± 0.023 ms 1.02 ± 0.022
dgsem/3D/Float64/weak/slab E=8 4.75 ± 0.33 ms 4.27 ± 0.12 ms 1.11 ± 0.083
dgsem/3D/Float64/weak/slab double-buffered E=1 0.967 ± 0.026 ms 0.959 ± 0.015 ms 1.01 ± 0.031
dgsem/3D/Float64/weak/slab double-buffered E=8 1.12 ± 0.027 ms 1.12 ± 0.011 ms 1 ± 0.026
dgsem/3D/Float64/weak/slab double-buffered v-last E=1 0.981 ± 0.015 ms 0.977 ± 0.0084 ms 1 ± 0.018
dgsem/3D/Float64/weak/slab double-buffered v-last E=8 1.11 ± 0.015 ms 1.08 ± 0.017 ms 1.03 ± 0.022
dgsem/3D/Float64/weak/slab v-last E=1 1.56 ± 0.024 ms 1.53 ± 0.016 ms 1.02 ± 0.019
dgsem/3D/Float64/weak/slab v-last E=8 4.81 ± 0.44 ms 4.44 ± 0.23 ms 1.08 ± 0.11
launch/3D static workgroup, dynamic ndrange 7.56 ± 1.3 μs 7.66 ± 1.1 μs 0.986 ± 0.23
launch/3D static workgroup, static ndrange 7.36 ± 1.1 μs 8.02 ± 1.5 μs 0.917 ± 0.22
launch/dynamic workgroup, dynamic ndrange 8.24 ± 1.1 μs 8.08 ± 1.2 μs 1.02 ± 0.21
launch/dynamic workgroup, dynamic ndrange, workgroupsize given 8.01 ± 0.98 μs 8.14 ± 1 μs 0.984 ± 0.17
launch/static workgroup, dynamic ndrange 7.33 ± 1.2 μs 7.88 ± 1.3 μs 0.929 ± 0.21
launch/static workgroup, static ndrange 7.58 ± 1.2 μs 8.08 ± 1.3 μs 0.939 ± 0.22
narrow workgroup/masked/W=16 0.294 ± 0.01 ms 0.29 ± 0.0076 ms 1.02 ± 0.044
narrow workgroup/masked/W=4 0.314 ± 0.016 ms 0.287 ± 0.0088 ms 1.09 ± 0.065
narrow workgroup/unmasked/W=16 0.29 ± 0.0087 ms 0.292 ± 0.0085 ms 0.992 ± 0.042
narrow workgroup/unmasked/W=4 0.285 ± 0.0093 ms 0.296 ± 0.0082 ms 0.964 ± 0.041
partition/dynamic workgroup, dynamic ndrange 0.0357 ± 0.017 μs 0.0386 ± 0.018 μs 0.924 ± 0.61
partition/static workgroup, dynamic ndrange 0.042 ± 0.0081 μs 0.0433 ± 0.0089 μs 0.97 ± 0.27
partition/static workgroup, static ndrange 1.64 ± 0.01 ns 1.69 ± 0.001 ns 0.97 ± 0.0059
saxpy/default/Float16/1024 8.68 ± 0.41 μs 7.98 ± 1.3 μs 1.09 ± 0.18
saxpy/default/Float16/1048576 0.4 ± 0.041 ms 0.378 ± 0.031 ms 1.06 ± 0.14
saxpy/default/Float16/16384 15.4 ± 0.8 μs 15.9 ± 1.3 μs 0.967 ± 0.096
saxpy/default/Float16/2048 8.87 ± 0.73 μs 8.6 ± 1.5 μs 1.03 ± 0.2
saxpy/default/Float16/256 7.73 ± 0.17 μs 8.01 ± 0.17 μs 0.965 ± 0.03
saxpy/default/Float16/262144 0.117 ± 0.028 ms 0.114 ± 0.0099 ms 1.03 ± 0.27
saxpy/default/Float16/32768 20.9 ± 1.8 μs 20.8 ± 1.2 μs 1 ± 0.11
saxpy/default/Float16/4096 10 ± 0.59 μs 9.15 ± 1.4 μs 1.1 ± 0.18
saxpy/default/Float16/512 7.99 ± 2 μs 8.11 ± 2.2 μs 0.984 ± 0.37
saxpy/default/Float16/64 7.81 ± 0.16 μs 7.82 ± 0.19 μs 0.999 ± 0.032
saxpy/default/Float16/65536 30.4 ± 1.6 μs 30.4 ± 1.4 μs 0.998 ± 0.071
saxpy/default/Float32/1024 8.37 ± 1.9 μs 8.53 ± 2.4 μs 0.981 ± 0.35
saxpy/default/Float32/1048576 0.385 ± 0.11 ms 0.285 ± 0.076 ms 1.35 ± 0.52
saxpy/default/Float32/16384 14.4 ± 1.3 μs 14.6 ± 0.78 μs 0.981 ± 0.1
saxpy/default/Float32/2048 8.85 ± 0.23 μs 8.44 ± 1.2 μs 1.05 ± 0.16
saxpy/default/Float32/256 7.71 ± 0.14 μs 7.87 ± 0.33 μs 0.979 ± 0.045
saxpy/default/Float32/262144 0.106 ± 0.038 ms 0.0986 ± 0.027 ms 1.07 ± 0.48
saxpy/default/Float32/32768 19.2 ± 2.3 μs 18.4 ± 2.4 μs 1.04 ± 0.18
saxpy/default/Float32/4096 8.93 ± 0.78 μs 10.8 ± 2.1 μs 0.827 ± 0.18
saxpy/default/Float32/512 8.76 ± 1.7 μs 7.8 ± 1.2 μs 1.12 ± 0.28
saxpy/default/Float32/64 8.94 ± 1.1 μs 7.89 ± 0.2 μs 1.13 ± 0.14
saxpy/default/Float32/65536 26.6 ± 4.7 μs 26.6 ± 4.4 μs 0.998 ± 0.24
saxpy/default/Float64/1024 8.65 ± 0.8 μs 8.16 ± 0.99 μs 1.06 ± 0.16
saxpy/default/Float64/1048576 0.65 ± 0.15 ms 0.603 ± 0.12 ms 1.08 ± 0.33
saxpy/default/Float64/16384 17.9 ± 1.7 μs 17.7 ± 2 μs 1.01 ± 0.15
saxpy/default/Float64/2048 8.52 ± 0.95 μs 8.13 ± 1.2 μs 1.05 ± 0.19
saxpy/default/Float64/256 9.88 ± 1.4 μs 8.23 ± 0.72 μs 1.2 ± 0.2
saxpy/default/Float64/262144 0.143 ± 0.02 ms 0.137 ± 0.027 ms 1.04 ± 0.26
saxpy/default/Float64/32768 26.1 ± 3.8 μs 25.6 ± 3.7 μs 1.02 ± 0.21
saxpy/default/Float64/4096 9.12 ± 0.9 μs 8.78 ± 1.3 μs 1.04 ± 0.18
saxpy/default/Float64/512 8.12 ± 0.81 μs 7.92 ± 1.3 μs 1.03 ± 0.19
saxpy/default/Float64/64 7.73 ± 1.4 μs 7.9 ± 0.15 μs 0.979 ± 0.18
saxpy/default/Float64/65536 0.035 ± 0.0045 ms 0.0351 ± 0.011 ms 0.996 ± 0.34
saxpy/static workgroup=(1024,)/Float16/1024 8.53 ± 2.6 μs 8.96 ± 2.4 μs 0.952 ± 0.38
saxpy/static workgroup=(1024,)/Float16/1048576 0.359 ± 0.032 ms 0.352 ± 0.029 ms 1.02 ± 0.13
saxpy/static workgroup=(1024,)/Float16/16384 15 ± 0.62 μs 15.2 ± 0.8 μs 0.99 ± 0.067
saxpy/static workgroup=(1024,)/Float16/2048 8.82 ± 1.3 μs 8.94 ± 1.3 μs 0.987 ± 0.2
saxpy/static workgroup=(1024,)/Float16/256 7.98 ± 1.1 μs 8.35 ± 0.21 μs 0.956 ± 0.14
saxpy/static workgroup=(1024,)/Float16/262144 0.11 ± 0.017 ms 0.11 ± 0.011 ms 0.998 ± 0.18
saxpy/static workgroup=(1024,)/Float16/32768 21.9 ± 2.2 μs 19.9 ± 2.5 μs 1.1 ± 0.18
saxpy/static workgroup=(1024,)/Float16/4096 8.89 ± 0.9 μs 9.88 ± 2 μs 0.9 ± 0.2
saxpy/static workgroup=(1024,)/Float16/512 8.34 ± 0.24 μs 8.17 ± 0.24 μs 1.02 ± 0.042
saxpy/static workgroup=(1024,)/Float16/64 7.97 ± 0.17 μs 8.22 ± 0.19 μs 0.97 ± 0.031
saxpy/static workgroup=(1024,)/Float16/65536 29.5 ± 1.5 μs 29.3 ± 1.4 μs 1.01 ± 0.071
saxpy/static workgroup=(1024,)/Float32/1024 8.2 ± 0.87 μs 7.96 ± 0.89 μs 1.03 ± 0.16
saxpy/static workgroup=(1024,)/Float32/1048576 0.339 ± 0.074 ms 0.298 ± 0.062 ms 1.14 ± 0.34
saxpy/static workgroup=(1024,)/Float32/16384 11 ± 1.2 μs 14.8 ± 1.4 μs 0.746 ± 0.11
saxpy/static workgroup=(1024,)/Float32/2048 8.12 ± 0.97 μs 8.45 ± 1 μs 0.961 ± 0.16
saxpy/static workgroup=(1024,)/Float32/256 7.84 ± 0.17 μs 7.97 ± 0.19 μs 0.983 ± 0.032
saxpy/static workgroup=(1024,)/Float32/262144 0.0978 ± 0.02 ms 0.0998 ± 0.048 ms 0.98 ± 0.51
saxpy/static workgroup=(1024,)/Float32/32768 19 ± 2.4 μs 17.9 ± 2.2 μs 1.06 ± 0.18
saxpy/static workgroup=(1024,)/Float32/4096 8.63 ± 0.81 μs 8.69 ± 1.2 μs 0.993 ± 0.17
saxpy/static workgroup=(1024,)/Float32/512 9.55 ± 2.3 μs 8.28 ± 1.7 μs 1.15 ± 0.36
saxpy/static workgroup=(1024,)/Float32/64 7.86 ± 0.16 μs 7.98 ± 0.16 μs 0.984 ± 0.028
saxpy/static workgroup=(1024,)/Float32/65536 28.4 ± 6.3 μs 27 ± 4.4 μs 1.05 ± 0.29
saxpy/static workgroup=(1024,)/Float64/1024 8.03 ± 1.2 μs 8.61 ± 2.4 μs 0.933 ± 0.29
saxpy/static workgroup=(1024,)/Float64/1048576 0.674 ± 0.11 ms 0.571 ± 0.1 ms 1.18 ± 0.28
saxpy/static workgroup=(1024,)/Float64/16384 12.2 ± 1.3 μs 17.1 ± 1.1 μs 0.715 ± 0.09
saxpy/static workgroup=(1024,)/Float64/2048 8.66 ± 0.9 μs 8.47 ± 0.98 μs 1.02 ± 0.16
saxpy/static workgroup=(1024,)/Float64/256 7.86 ± 1.1 μs 10.2 ± 4.3 μs 0.77 ± 0.35
saxpy/static workgroup=(1024,)/Float64/262144 0.147 ± 0.024 ms 0.13 ± 0.026 ms 1.13 ± 0.29
saxpy/static workgroup=(1024,)/Float64/32768 25.9 ± 4.1 μs 23.6 ± 3.3 μs 1.1 ± 0.23
saxpy/static workgroup=(1024,)/Float64/4096 8.74 ± 1.3 μs 9.62 ± 1.2 μs 0.908 ± 0.18
saxpy/static workgroup=(1024,)/Float64/512 10.5 ± 2.1 μs 10.7 ± 8.3 μs 0.989 ± 0.79
saxpy/static workgroup=(1024,)/Float64/64 8.03 ± 0.24 μs 8.24 ± 1.2 μs 0.974 ± 0.14
saxpy/static workgroup=(1024,)/Float64/65536 0.0364 ± 0.0051 ms 0.0361 ± 0.009 ms 1.01 ± 0.29
time_to_load 0.445 ± 0.025 s 0.398 ± 0.0043 s 1.12 ± 0.063
main ed164b6... main / ed164b6...
const/@Const/Float32/262144 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
const/@Const/Float32/65536 9 allocs: 0.203 kB 5 allocs: 0.0938 kB 2.17
const/@Const/Float64/262144 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
const/@Const/Float64/65536 5 allocs: 0.0938 kB 9 allocs: 0.203 kB 0.462
const/unmarked/Float32/262144 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
const/unmarked/Float32/65536 9 allocs: 0.203 kB 5 allocs: 0.0938 kB 2.17
const/unmarked/Float64/262144 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
const/unmarked/Float64/65536 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
dgsem/2D/Float32/fluxdiff/element 10 allocs: 0.219 kB 6 allocs: 0.109 kB 2
dgsem/2D/Float32/fluxdiff/node E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float32/fluxdiff/node halfsweep E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float32/fluxdiff/node halfsweep v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float32/weak/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/2D/Float32/weak/element private 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/2D/Float32/weak/node localmem E=1 6 allocs: 0.125 kB 6 allocs: 0.125 kB 1
dgsem/2D/Float32/weak/node localmem E=8 10 allocs: 0.234 kB 6 allocs: 0.125 kB 1.88
dgsem/2D/Float32/weak/node localmem v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float32/weak/node localmem v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float32/weak/node recompute E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/fluxdiff/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/2D/Float64/fluxdiff/node E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/fluxdiff/node halfsweep E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/fluxdiff/node halfsweep v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/weak/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/2D/Float64/weak/element private 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/2D/Float64/weak/node localmem E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/weak/node localmem E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/weak/node localmem v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/weak/node localmem v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/2D/Float64/weak/node recompute E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/fluxdiff/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float32/fluxdiff/node E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/fluxdiff/node halfsweep E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/fluxdiff/node halfsweep v-last E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float32/weak/element private 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float32/weak/node localmem E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/node localmem E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/node localmem v-last E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/node localmem v-last E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/node recompute E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float32/weak/slab E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab double-buffered E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab double-buffered E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab double-buffered v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab double-buffered v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float32/weak/slab v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/fluxdiff/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float64/fluxdiff/node E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/fluxdiff/node halfsweep E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/fluxdiff/node halfsweep v-last E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/element 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float64/weak/element private 10 allocs: 0.219 kB 10 allocs: 0.219 kB 1
dgsem/3D/Float64/weak/node localmem E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/node localmem E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/node localmem v-last E=1 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/node localmem v-last E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/node recompute E=2 13 allocs: 0.391 kB 13 allocs: 0.391 kB 1
dgsem/3D/Float64/weak/slab E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab double-buffered E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab double-buffered E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab double-buffered v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab double-buffered v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab v-last E=1 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
dgsem/3D/Float64/weak/slab v-last E=8 10 allocs: 0.234 kB 10 allocs: 0.234 kB 1
launch/3D static workgroup, dynamic ndrange 9 allocs: 0.219 kB 9 allocs: 0.219 kB 1
launch/3D static workgroup, static ndrange 9 allocs: 0.219 kB 9 allocs: 0.219 kB 1
launch/dynamic workgroup, dynamic ndrange 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
launch/dynamic workgroup, dynamic ndrange, workgroupsize given 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
launch/static workgroup, dynamic ndrange 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
launch/static workgroup, static ndrange 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
narrow workgroup/masked/W=16 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
narrow workgroup/masked/W=4 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
narrow workgroup/unmasked/W=16 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
narrow workgroup/unmasked/W=4 9 allocs: 0.203 kB 9 allocs: 0.203 kB 1
partition/dynamic workgroup, dynamic ndrange 2 allocs: 0.0625 kB 2 allocs: 0.0625 kB 1
partition/static workgroup, dynamic ndrange 2 allocs: 32 B 2 allocs: 32 B 1
partition/static workgroup, static ndrange 0 allocs: 0 B 0 allocs: 0 B
saxpy/default/Float16/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/default/Float16/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float16/262144 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/default/Float16/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float16/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float16/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/default/Float32/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float32/262144 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float32/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float32/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/default/Float64/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float64/262144 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/default/Float64/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/default/Float64/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/default/Float64/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/static workgroup=(1024,)/Float16/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float16/262144 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/static workgroup=(1024,)/Float16/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float16/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float16/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/static workgroup=(1024,)/Float32/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float32/262144 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float32/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float32/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/1024 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/1048576 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/static workgroup=(1024,)/Float64/16384 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/2048 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/256 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float64/262144 12 allocs: 0.25 kB 12 allocs: 0.25 kB 1
saxpy/static workgroup=(1024,)/Float64/32768 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/4096 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/512 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
saxpy/static workgroup=(1024,)/Float64/64 5 allocs: 0.0938 kB 5 allocs: 0.0938 kB 1
saxpy/static workgroup=(1024,)/Float64/65536 8 allocs: 0.141 kB 8 allocs: 0.141 kB 1
time_to_load 0.2 k allocs: 11.8 kB 0.2 k allocs: 11.8 kB 1

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR.
Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).

@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.82%. Comparing base (4794aae) to head (ed164b6).
⚠️ Report is 2 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@vchuravy
vchuravy force-pushed the vc/release-notes-0.10 branch from 795d078 to cc5b112 Compare October 9, 2026 08:28
@vchuravy vchuravy added this to the 0.10.0 milestone Oct 11, 2026
@vchuravy
vchuravy force-pushed the vc/release-notes-0.10 branch from cc5b112 to 259f8fa Compare October 11, 2026 11:48
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)
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
vchuravy force-pushed the vc/release-notes-0.10 branch from b4f3d6b to 34473da Compare October 12, 2026 06:04
Comment thread docs/src/index.md Resolved
Comment thread docs/src/index.md Resolved
Comment thread docs/src/quickstart.md Resolved
Comment thread docs/src/quickstart.md Resolved
Comment thread docs/src/quickstart.md Resolved
…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
vchuravy force-pushed the vc/release-notes-0.10 branch from 01247f5 to c7ca40d Compare October 12, 2026 10:47
vchuravy and others added 5 commits October 12, 2026 12:57
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>
@vchuravy
vchuravy merged commit a0a2e68 into main Oct 12, 2026
49 of 51 checks passed
@vchuravy
vchuravy deleted the vc/release-notes-0.10 branch October 12, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant