Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/kleene

bench/loki.md

loki

CPU AMD Ryzen 9 7900 12-Core Processor (5 threads; SIMD kleene Avx512, stree avx512), GPU wgpu, commit a762004ccf, run 2026-11-27 23:05Z (load average 10.52 at the start).

graph vertices edges fingerprint source BFS depth reached weak comps strong comps Datalog entries
zox-M 29772 59105 58b864e73277356d 851 52 26759 2965 15933 3
rmat12 4096 28760 28306297a472eb69 353 5 2541 1104 2029 3
rmat22 4194304 32988662 356afcb84b6ccd13 119941 7 1624253 2185779 2950687 3
rmat24 16777216 132718372 fdd4e0908f8bb83a 3790722 8 5924759 9402277 12286611 3
rmat26 67108864 532918496 20b6f0758088917c 1919057 8 21634048 40020188 50866202 3
road2048 4194304 10063734 da63d7a1bbb6e9b3 362332 3843 3977928 142085 142085 3
graph kernel kleene CPU ms kleene GPU ms SuiteSparse+LAGraph ms plain ms CPU rate GPU rate LAGraph rate plain rate unit runs CPU/GPU/LAGraph/plain check detail
zox-M bfs 0.682 32.879 4.100 0.546 86.4 1.8 14.4 108.1 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 851: 26759 reached, 52 hops deep; CPU 53 levels, 1 pulled; LAGraph BFS parent only, LG_check_bfs passed
zox-M sssp-hops 3.488 40.549 - 0.546 16.9 1.5 - 108.1 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 851: 26759 reached, 52 hops deep
zox-M sets64 1.861 18.233 - 20.574 1394.9 142.3 - 126.1 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 64 sources, 1177516 (vertex, source) pairs
zox-M sssp-weighted 2.743 87.931 33.000 1.659 21.5 0.7 1.8 35.6 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 26759 reached, farthest 6370; LAGraph delta 128, LG_check_sssp passed
zox-M cc 8.494 1.461 3.200 0.513 7.0 40.5 18.5 115.3 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2965 weak components; LAGraph components Some(2965)
zox-M scc 1.893 26.441 53.900 1.045 31.2 2.2 1.1 56.6 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 15933 strong components; LAGraph components Some(15933)
zox-M closure - no GPU kernel - 371031554 pairs, over the limit of 50000000 - - - - M pairs/s -/-/-/- - not run
zox-M datalog-reach 0.754 25.830 - 0.517 78.4 2.3 - 114.3 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 26806 vertices; CPU plan: reach (kleene-graph BFS)
rmat12 bfs 0.027 4.004 0.100 0.035 1048.3 7.0 280.9 802.2 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 353: 2541 reached, 5 hops deep; CPU 6 levels, 3 pulled; LAGraph BFS parent only, LG_check_bfs passed
rmat12 sssp-hops 0.356 4.491 - 0.035 79.0 6.3 - 802.2 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 353: 2541 reached, 5 hops deep
rmat12 sets64 0.211 2.057 - 3.686 8532.6 873.7 - 487.6 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 64 sources, 162636 (vertex, source) pairs
rmat12 sssp-weighted 1.236 9.598 1.900 0.299 22.7 2.9 14.8 93.8 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 2541 reached, farthest 514; LAGraph delta 29, LG_check_sssp passed
rmat12 cc 9.797 0.527 20.900 0.106 2.9 54.6 1.4 270.2 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 1104 weak components; LAGraph components Some(1104)
rmat12 scc 0.239 3.940 0.900 0.142 120.1 7.3 32.0 202.2 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2029 strong components; LAGraph components Some(2029)
rmat12 closure 554.859 no GPU kernel - 207.115 11.5 - - 30.9 M pairs/s 5/-/-/5 EQUAL t = e+ by masked boolean products: 6393174 pairs
rmat12 datalog-reach 0.053 4.593 - 0.044 528.8 6.1 - 633.3 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 2542 vertices; CPU plan: reach (kleene-graph BFS)
rmat22 bfs 33.273 32.787 120.000 242.247 975.2 989.7 270.4 133.9 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 119941: 1624253 reached, 7 hops deep; CPU 8 levels, 2 pulled; LAGraph BFS parent only, LG_check_bfs passed
rmat22 sssp-hops 439.906 73.180 - 242.247 73.8 443.4 - 133.9 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 119941: 1624253 reached, 7 hops deep
rmat22 sets64 278.882 95.604 - 14117.868 7330.2 21382.6 - 144.8 MTEPS 5/5/-/2 CPU EQUAL, GPU EQUAL 64 sources, 102327894 (vertex, source) pairs
rmat22 sssp-weighted 1153.147 222.019 1368.900 1482.075 28.1 146.2 23.7 21.9 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 1624253 reached, farthest 829; LAGraph delta 29, LG_check_sssp passed
rmat22 cc 613.415 18.135 390.300 211.832 53.8 1819.0 84.5 155.7 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2185779 weak components; LAGraph components Some(2185779)
rmat22 scc 1027.361 15.610 1322.600 772.604 32.1 2113.3 24.9 42.7 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 2950687 strong components; LAGraph components Some(2950687)
rmat22 datalog-reach 29.676 24.049 - 194.541 1093.4 1349.3 - 166.8 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 1624254 vertices; CPU plan: reach (kleene-graph BFS)
rmat24 bfs 172.750 32.959 211.600 1168.818 756.6 3965.6 617.7 111.8 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 3790722: 5924759 reached, 8 hops deep; CPU 9 levels, 3 pulled; LAGraph BFS parent only, LG_check_bfs passed
rmat24 sssp-hops 2398.452 382.583 - 1168.818 54.5 341.6 - 111.8 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 3790722: 5924759 reached, 8 hops deep
rmat24 sets64 1844.365 357.885 - 65334.634 4535.3 23372.9 - 128.0 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 64 sources, 379184593 (vertex, source) pairs
rmat24 sssp-weighted 5318.208 952.726 2807.100 7770.119 24.6 137.2 46.6 16.8 MTEPS 5/5/5/3 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 5924759 reached, farthest 783; LAGraph delta 29, LG_check_sssp passed
rmat24 cc 2954.530 66.901 517.400 1714.221 44.9 1983.8 256.5 77.4 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 9402277 weak components; LAGraph components Some(9402277)
rmat24 scc 6006.253 113.350 4832.500 4031.159 22.1 1170.9 27.5 32.9 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 12286611 strong components; LAGraph components Some(12286611)
rmat24 datalog-reach 171.228 29.640 - 982.694 763.3 4409.6 - 133.0 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 5924761 vertices; CPU plan: reach (kleene-graph BFS)
rmat26 bfs 559.460 55.547 501.900 5206.935 939.1 9458.8 1046.8 100.9 MTEPS 5/5/5/4 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 1919057: 21634048 reached, 8 hops deep; CPU 9 levels, 2 pulled; LAGraph BFS parent only, LG_check_bfs passed
rmat26 sssp-hops 8403.674 1055.161 - 5206.935 62.5 497.9 - 100.9 MTEPS 5/5/-/4 CPU EQUAL, GPU EQUAL from 1919057: 21634048 reached, 8 hops deep
rmat26 sets64 7244.668 1063.692 - 336698.096 4641.5 31612.6 - 99.9 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 64 sources, 1384579092 (vertex, source) pairs
rmat26 sssp-weighted 22894.646 13277.014 6951.000 41191.496 22.9 39.6 75.6 12.8 MTEPS 1/5/5/1 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 21634048 reached, farthest 792; LAGraph delta 29, LG_check_sssp passed
rmat26 cc 10457.706 9697.298 2552.200 7445.664 51.0 55.0 208.8 71.6 MTEPS 5/5/16/3 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 40020188 weak components; LAGraph components Some(40020188)
rmat26 scc 25240.404 9876.805 20914.200 17215.851 21.1 54.0 25.5 31.0 MTEPS 5/5/16/2 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 50866202 strong components; LAGraph components Some(50866202)
rmat26 datalog-reach 569.370 9551.173 - 32176.523 922.8 55.0 - 16.3 MTEPS 5/5/-/1 CPU EQUAL, GPU EQUAL 3 entries reach 21634049 vertices; CPU plan: reach (kleene-graph BFS)
road2048 bfs 140.571 1038.209 276.200 110.779 70.5 9.5 35.9 89.4 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL from 362332: 3977928 reached, 3843 hops deep; CPU 3844 levels, 0 pulled; LAGraph BFS parent only, LG_check_bfs passed
road2048 sssp-hops 468.278 1331.304 - 110.779 21.2 7.4 - 89.4 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL from 362332: 3977928 reached, 3843 hops deep
road2048 sets64 11070.311 615.767 - 6701.665 56.4 1013.8 - 93.2 MTEPS 5/5/-/4 CPU EQUAL, GPU EQUAL 64 sources, 250609466 (vertex, source) pairs
road2048 sssp-weighted 686.075 3116.370 14099.100 405.155 14.4 3.2 0.7 24.5 MTEPS 5/5/5/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL weights 1..255, 3977928 reached, farthest 394312; LAGraph delta 127, LG_check_sssp passed
road2048 cc 2157.055 5.262 528.100 55.443 4.7 1912.6 19.1 181.5 MTEPS 5/5/16/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 142085 weak components; LAGraph components Some(142085)
road2048 scc 291.614 3754.205 110372.900 199.400 34.5 2.7 0.1 50.5 MTEPS 5/5/3/5 CPU EQUAL, GPU EQUAL, LAGraph EQUAL 142085 strong components; LAGraph components Some(142085); stopped at the 10 min limit after 3 timed trials
road2048 datalog-reach 152.867 510.343 - 105.036 64.8 19.4 - 94.3 MTEPS 5/5/-/5 CPU EQUAL, GPU EQUAL 3 entries reach 3977928 vertices; CPU plan: reach (kleene-graph BFS)
zox-M indexes index-addr-func 27.0 ns/q - - 22.8 ns/q 37.1 - - 43.8 M queries/s 5/-/-/5 EQUAL 24244 functions, static search tree (batched) vs binary search; indexes built in 42.4 ms
zox-M indexes index-reach 11.5 ns/q - - 94930.8 ns/q 86.8 - - 0.0 M queries/s 5/-/-/5 EQUAL inst_icall_inst: 15933 components, 56851 label entries; checked on 2000 pairs
zox-M indexes index-site 1.5 ns/q - - 30677.5 ns/q 651.4 - - 0.0 M queries/s 5/-/-/5 EQUAL 123 syscall sites over 29772 instructions; checked on 2000 queries
zox-M indexes index-why 177.3 ns/q - - 119191.7 ns/q 5.6 - - 0.0 M queries/s 5/-/-/5 EQUAL from entry 26890: 26769 reached; every chain checked (edges, shortest length)
zox-M indexes index-scope 119.3 ns/q - - 15924.1 ns/q 8.4 - - 0.1 M queries/s 5/-/-/5 EQUAL 31124 scope ranges, static interval tree vs scan; checked on 1024 addresses

CPU kernels measured again

The CPU backend got algorithms of its own for the kernels it was weakest at. Each was measured again here after it landed, with kleene benchmark --kernels <kernel>: the same graphs, thread count (5, pinned to cores 0-4, nice 19) and brake. Before is the table above (commit a762004ccf); the LAGraph column is that run's. Every row is checked equal to the plain reference again.

graph kernel algorithm now before ms after ms faster SuiteSparse+LAGraph ms after / LAGraph plain ms commit run check
rmat24 cc Afforest 2954.530 280.484 10.5x 517.400 1.8x faster 1526.188 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
rmat26 cc Afforest 10457.706 1087.230 9.6x 2552.200 2.3x faster 10944.641 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
road2048 cc Afforest 2157.055 46.224 46.7x 528.100 11.4x faster 58.603 e6f7775ad6 2026-11-28 10:07Z, load average 12.83 EQUAL
rmat24 sssp-weighted delta-stepping, bucket fusion 5318.208 1087.698 4.9x 2807.100 2.6x faster 7107.565 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat26 sssp-weighted delta-stepping, bucket fusion 22894.646 4801.914 4.8x 6951.000 1.4x faster 39569.777 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
road2048 sssp-weighted delta-stepping, bucket fusion 686.075 451.265 1.5x 14099.100 31.2x faster 410.619 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat24 sssp-hops delta-stepping, bucket fusion 2398.452 788.377 3.0x - - 1028.807 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat26 sssp-hops delta-stepping, bucket fusion 8403.674 3665.856 2.3x - - 4823.326 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
road2048 sssp-hops delta-stepping, bucket fusion 468.278 263.411 1.8x - - 112.545 40ce3e8f43 2026-11-28 10:56Z, load average 16.41 EQUAL
rmat24 scc Multistep 6006.253 794.599 7.6x 4832.500 6.1x faster 3755.868 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL
rmat26 scc Multistep 25240.404 3339.373 7.6x 20914.200 6.3x faster 17119.244 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL
road2048 scc Multistep 291.614 252.231 1.2x 110372.900 437.6x faster 217.090 cb7159bdee 2026-11-28 12:03Z, load average 11.27 EQUAL

GPU measured again: rmat26 and small graphs

Both runs on a loaded loki (other sessions' builds; load averages below) with the RTX 5080 also driving the desktop (3.4 GB of its 16.3 GB in use by others). kleene benchmark --kernels <kernels> --gpu --gpu-max-edges 600000000, 5 threads pinned to cores 0-4, nice 19, brake k10temp:85. Every row is checked equal to the plain reference again.

rmat26 on the GPU. Before, each call of CC, SCC, weighted SSSP and Datalog reach uploaded the graph again: the device's matrix cache (4 GB budget) put out the graph's out-pattern when the in-pattern came in (2.4 GB each), though the search still held it, so the next call missed, uploaded a second copy (3.6-7 s per 2.4 GB) and filled the card; weighted SSSP also scanned its 533 M weights before looking in the cache. Now the budget counts only parts nothing else holds (0189376). Before is commit b36d53c, after is 0189376, run on the same afternoon 40 minutes apart.

graph kernel GPU before ms GPU after ms faster kleene CPU ms run check
rmat26 sssp-weighted 13430.524 1286.077 10.4x 5427.776 before 2026-11-28 17:59Z, load 35.1; after 17:18Z, load 20.6 EQUAL
rmat26 cc 10135.065 269.108 37.7x 706.929 as above EQUAL
rmat26 scc 10362.695 511.090 20.3x 2635.852 as above EQUAL
rmat26 datalog-reach 10238.413 78.418 130.6x 507.805 as above EQUAL
rmat26 bfs 137.472 125.418 1.1x 682.462 as above (not affected) EQUAL
rmat26 sssp-hops 999.315 978.020 1.0x 3765.241 as above (not affected) EQUAL

Small graphs. Below a measured edge count a GPU launch costs more than the CPU's whole answer, so the GPU backend now runs weak components below 131072 edges, strong components below 1048576, shortest paths below 2000000 and source sets below 262144 on the CPU backend's own algorithms (CpuBelow). The crossovers come from the "GPU forced" column (KLEENE_GPU_CPU_BELOW_EDGES=0, run 2026-11-28 17:44Z, load 23.1); "GPU now" is commit 95d1a59's default thresholds (18:33Z, load 42.1). Road grids lose on the GPU at every size for every kernel but CC: there depth, not size, is the cost.

graph edges kernel kleene CPU ms GPU forced ms GPU now ms runs on
zox-M 59105 scc 1.155 8.314 1.293 CPU
zox-M 59105 sssp-weighted 1.719 37.101 1.702 CPU
rmat14 119806 cc 0.291 0.481 0.299 CPU
rmat14 119806 sets64 0.949 2.304 0.956 CPU
rmat16 494438 cc 0.882 0.479 0.619 GPU
rmat16 494438 sets64 4.464 3.105 3.303 GPU
rmat16 494438 scc 2.165 3.576 2.783 CPU
rmat16 494438 sssp-weighted 3.919 10.339 4.078 CPU
rmat18 2017227 scc 12.904 4.485 3.602 GPU
rmat18 2017227 sssp-hops 6.722 4.929 3.904 GPU
rmat18 2017227 sssp-weighted 12.624 13.519 11.575 GPU
rmat20 8175389 sssp-weighted 86.389 47.991 32.833 GPU
road256 156666 scc 3.078 126.920 2.798 CPU
road256 156666 sssp-weighted 3.813 358.569 3.720 CPU
road512 626884 scc 13.390 491.156 11.024 CPU
road1024 2513276 sssp-weighted 74.952 6223.268 1193.329 GPU

PageRank on the GPU

GAP's PageRank (damping 0.85, stop when the L1 change is below 1e-4) on the RTX 5080 (kleene-cubecl, pagerank_of::<GpuBackend>), against kleene's CPU and LAGr_PageRankGAP. The scores and shares stay on the card between rounds; each round is 2-4 kernel launches and an 8-byte read of the change. Scores are f32 as in LAGraph (which is FP32 throughout); the change is summed in f64 where the GPU has it (this one does). The GPU cell is checked against the plain reference: the same rounds and the scores within 1e-4 in L1 (measured 7e-8 to 1.7e-7; a row's sum is a tree, so a hub's sum is closer to the exact one than the CPU's serial f32 sum). Commit a7ee3a5 (the host line names fba5ff9, the same code before its rebase), 5 threads pinned to cores 0-4, nice 19, brake k10temp:85, trials 5, run 2026-11-29 00:26Z-00:39Z. The load average was 2.94 at the start; other sessions' builds pushed it to 78 by the end, and 6.1 GB of the card was in use by others.

graph edges rounds kleene CPU ms kleene GPU ms LAGraph ms plain ms GPU / LAGraph check
rmat22 32988662 24 382.921 31.940 307.900 1734.819 9.6x faster EQUAL (L1 1.1e-7)
rmat24 132718372 23 2102.671 192.870 2120.500 14099.186 11.0x faster EQUAL (L1 1.3e-7)
rmat26 532918496 22 16095.020 703.050 11071.900 65454.760 15.7x faster EQUAL (L1 1.7e-7)
road2048 10063734 39 427.545 45.059 250.700 1264.852 5.6x faster EQUAL (L1 7.3e-8)

On R-MAT the shares are kept renumbered by falling out-degree (GAP's sampled skew test), so the reads of a round hit the hubs' shares close together; that took rmat26 from 1433 ms to 701 ms in a probe run. Rows of up to 32 in-edges take one unit, up to 4096 a group of 32, longer ones 256.

Small graphs (GPU forced with KLEENE_GPU_CPU_BELOW_EDGES=0, trials 5, 5 threads, run 2026-11-28 22:56Z, load average 5.08 at the start, the tree of the GREEN commit before it was made): the GPU loses on rmat12 and rmat14 (up to 119806 edges), where a round is mostly launch and read-back (about 85 µs a round on rmat12), is level on zox-M, and wins from rmat16 (494438 edges) and road256 (156666) up. The default CpuBelow.pagerank is 131072 edges.

graph edges kleene CPU ms GPU forced ms
zox-M 59105 2.117 1.899
rmat12 28760 0.784 2.362
rmat14 119806 2.445 8.220
rmat16 494438 16.448 5.222
rmat18 2017227 22.552 3.663
rmat20 8175389 131.948 12.586
road256 156666 16.230 7.517
road512 626884 40.362 7.523
road1024 2513276 236.741 8.690

The GPU column measured again with the adapter named

The GPU column of the host table at the top of this page (a762004, 2026-11-27) and the rmat26 rows of "GPU measured again" (0189376) were measured before a7ee3a5, so nothing named their adapter. They were measured again in three windows under the quiet lock on a quiet loki (load average 2.27-2.89 at each start, no other session's build), at commit 162444d (the binary built on dwarf from 131cd80 plus the report's 660M line, so its host line says 131cd8069a-dirty), GPU forced (KLEENE_GPU_CPU_BELOW_EDGES=0, CUBECL_WGPU_DEFAULT_DEVICE=DiscreteGpu(0)), --gpu-max-edges 600000000, 12 threads (not pinned; the earlier runs had 5 pinned to cores 0-4), nice 19, brake k10temp:85, trials 3. Each run printed GPU: NVIDIA GeForce RTX 5080 (wgpu<spirv>), discrete GPU; 5.3 GB of the card's 16.3 GB were in use by others. Runs: 2026-11-29 03:48Z-03:56Z (zox-M, rmat12, rmat22, rmat24, road2048) and 03:56Z-04:10Z (rmat26). Raw rows: loki-gpu-again.json.

graph kernel GPU ms 2026-11-27 (a762004) GPU ms after 0189376 RTX 5080 ms now now / before kleene CPU ms now (12 threads) check
zox-M bfs 32.879 - 16.378 0.50 0.580 EQUAL
zox-M sssp-hops 40.549 - 19.758 0.49 0.660 EQUAL
zox-M sets64 18.233 - 13.499 0.74 1.770 EQUAL
zox-M sssp-weighted 87.931 - 41.460 0.47 1.776 EQUAL
zox-M cc 1.461 - 0.315 0.22 0.710 EQUAL
zox-M scc 26.441 - 11.384 0.43 1.261 EQUAL
zox-M datalog-reach 25.830 - 13.589 0.53 0.623 EQUAL
rmat12 bfs 4.004 - 1.694 0.42 0.026 EQUAL
rmat12 sssp-hops 4.491 - 4.411 0.98 0.061 EQUAL
rmat12 sets64 2.057 - 1.946 0.95 0.229 EQUAL
rmat12 sssp-weighted 9.598 - 4.801 0.50 0.280 EQUAL
rmat12 cc 0.527 - 0.345 0.65 0.070 EQUAL
rmat12 scc 3.940 - 1.933 0.49 0.189 EQUAL
rmat12 datalog-reach 4.593 - 1.602 0.35 0.021 EQUAL
rmat22 bfs 32.787 - 31.774 0.97 24.098 EQUAL
rmat22 sssp-hops 73.180 - 68.267 0.93 40.214 EQUAL
rmat22 sets64 95.604 - 58.901 0.62 233.421 EQUAL
rmat22 sssp-weighted 222.019 - 68.379 0.31 305.472 EQUAL
rmat22 cc 18.135 - 17.666 0.97 41.673 EQUAL
rmat22 scc 15.610 - 36.599 2.34 210.393 EQUAL
rmat22 datalog-reach 24.049 - 7.401 0.31 37.302 EQUAL
rmat24 bfs 32.959 - 10.287 0.31 64.846 EQUAL
rmat24 sssp-hops 382.583 - 225.685 0.59 195.908 EQUAL
rmat24 sets64 357.885 - 397.071 1.11 1051.461 EQUAL
rmat24 sssp-weighted 952.726 - 282.966 0.30 579.079 EQUAL
rmat24 cc 66.901 - 68.462 1.02 92.660 EQUAL
rmat24 scc 113.350 - 107.938 0.95 396.773 EQUAL
rmat24 datalog-reach 29.640 - 22.688 0.77 65.645 EQUAL
road2048 bfs 1038.209 - 1005.873 0.97 108.011 EQUAL
road2048 sssp-hops 1331.304 - 1333.022 1.00 115.200 EQUAL
road2048 sets64 615.767 - 673.244 1.09 10645.954 EQUAL
road2048 sssp-weighted 3116.370 - 3010.377 0.97 417.735 EQUAL
road2048 cc 5.262 - 5.038 0.96 14.880 EQUAL
road2048 scc 3754.205 - 3655.292 0.97 244.238 EQUAL
road2048 datalog-reach 510.343 - 495.304 0.97 80.880 EQUAL
rmat26 bfs 55.547 125.418 61.503 0.49 192.822 EQUAL
rmat26 sssp-hops 1055.161 978.020 1034.298 1.06 347.322 EQUAL
rmat26 sets64 1063.692 - 1022.433 0.96 4302.221 EQUAL
rmat26 sssp-weighted 13277.014 1286.077 1169.393 0.91 2164.235 EQUAL
rmat26 cc 9697.298 269.108 263.629 0.98 357.512 EQUAL
rmat26 scc 9876.805 511.090 518.226 1.01 1541.856 EQUAL
rmat26 datalog-reach 9551.173 78.418 87.411 1.11 260.716 EQUAL

It was the GPU: llvmpipe runs on this host's CPU and could not be 66x ahead of kleene's CPU column, as rmat22 SCC was. Most cells are level or faster now (GPU kernel changes since 2026-11-27; the rmat26 rows match the 0189376 column within 0.91-1.11x except BFS, whose 0189376 run was on a host at load 20). One cell is slower: rmat22 SCC took 15.6 ms then and 36.6 ms now (2.34x, 3 trials), which is not explained here; it is left for the GPU SCC kernel's owner.

Deep searches leave the GPU

Since dc29790 a breadth-first search on the GPU backend (and Datalog reach, planned as one) moves its levels to the CPU past 16 levels while its frontier is under 16384 vertices, and back at four times that; on a graph under 4194304 edges it searches on the CPU from the first level (CpuBelow::bfs, bfs_frontier, bfs_depth; integrated GPUs: always the CPU). Every run printed GPU: NVIDIA GeForce RTX 5080 (wgpu<spirv>), discrete GPU; 4.3-4.5 GB of the card's 16.3 GB in use by others. Before is d9271c4, after is dc29790, each in its own window under the quiet lock on 2026-11-29: before 12:29Z-12:32Z (load 7.8 at the start), after 12:39Z-12:42Z (load 7.4), 5 trials, 5 threads pinned to cores 0-4, nice 19, brake k10temp:85, --gpu-max-edges 600000000. Every row is checked equal to the plain reference again.

graph kernel RTX 5080 before ms RTX 5080 after ms faster kleene CPU ms (after run) check
road256 bfs 124.256 2.636 47.1x 0.994 EQUAL
road256 datalog-reach 71.601 2.344 30.5x 1.160 EQUAL
road512 datalog-reach 139.521 8.623 16.2x 4.705 EQUAL
road1024 bfs 402.855 37.427 10.8x 22.347 EQUAL
road1024 datalog-reach 263.606 45.244 5.8x 24.574 EQUAL
road2048 bfs 999.253 208.683 4.8x 118.016 EQUAL
road2048 datalog-reach 489.555 216.504 2.3x 79.402 EQUAL
rmat22 bfs 24.303 24.428 1.0x 32.579 EQUAL
rmat22 datalog-reach 25.544 9.347 2.7x 30.497 EQUAL
rmat24 bfs 7.902 7.782 1.0x 110.494 EQUAL
rmat24 datalog-reach 23.015 24.635 0.9x 113.521 EQUAL
rmat26 bfs 63.312 44.175 1.4x 322.610 EQUAL
rmat26 datalog-reach 84.149 77.505 1.1x 382.921 EQUAL

The road graphs (478 to 3844 levels) gain 2.3-47x; the GPU still trails the CPU's own search there by 1.1-2.7x (the levels before the move, the moves themselves and the levels put back on the GPU at the end). R-MAT searches (7 to 9 levels) never move: their rows are level within the host's noise (road512's BFS reaches 3 vertices, 0.87 / 0.78 ms). The graphs under 4194304 edges (rmat16, rmat18) now search on the CPU through the GPU backend; three back-to-back windows (12:42Z-12:43Z, 9 trials: before, after, before again) gave rmat16 BFS 4.384 / 1.350 / 1.854 ms, rmat18 BFS 4.115 / 3.233 / 1.992 ms and rmat20 (over the threshold, unchanged code path) 3.942 / 2.497 / 2.507 ms. rmat16 gains; rmat18 lies within the noise between the two before runs and above the CPU's own 1.1-1.7 ms, the cost of moving the search's state to the host and its levels back.

Raw mxv and vxm on the GPU against kleene's CPU and SuiteSparse:GraphBLAS

kleene benchmark --kernels ops --gpu --graphblas grb_ops (the lane's own C driver, linked to SuiteSparse:GraphBLAS 10.5.3 in /mnt/work4t/rickard-kb/ext/install, with kleene's thread count), rmat24 and rmat26, 12 threads, trials 5, the same binary and settings as above, run 2026-11-29 04:10Z-04:19Z (load average 2.27 at the start), under the quiet lock. Every cell is checked equal to the plain reference. Raw rows: loki-ops.json. The GPU has no plus-times kernel. "GPU vs SuiteSparse" is SuiteSparse ms / GPU ms; the fastest of each row in bold. The products A² are over the multiply-add limit on both graphs and not run.

graph op kleene CPU ms kleene GPU ms (RTX 5080) SuiteSparse GrB_mxv / GrB_vxm ms GPU vs SuiteSparse check
rmat24 mxv-bool-dense 40.109 16.832 10.731 0.64x EQUAL
rmat24 mxv-bool-sparse 23.582 10.702 359.377 33.58x EQUAL
rmat24 vxm-bool-dense 122.614 13.293 244.723 18.41x EQUAL
rmat24 vxm-bool-sparse 10.472 2.090 13.759 6.58x EQUAL
rmat24 mxv-f64-dense 102.858 no GPU kernel (plus-times) 88.205 - EQUAL
rmat24 mxv-f64-sparse 58.826 no GPU kernel (plus-times) 768.969 - EQUAL
rmat24 vxm-f64-dense 206.217 no GPU kernel (plus-times) 269.287 - EQUAL
rmat24 vxm-f64-sparse 14.953 no GPU kernel (plus-times) 43.919 - EQUAL
rmat24 mxv-minplus-dense 98.455 26.691 69.854 2.62x EQUAL
rmat24 mxv-minplus-sparse 44.043 15.868 758.724 47.82x EQUAL
rmat24 vxm-minplus-dense 154.224 15.347 169.069 11.02x EQUAL
rmat24 vxm-minplus-sparse 12.156 2.105 24.080 11.44x EQUAL
rmat26 mxv-bool-dense 178.901 56.020 52.577 0.94x EQUAL
rmat26 mxv-bool-sparse 102.314 21.789 1960.582 89.98x EQUAL
rmat26 vxm-bool-dense 573.853 146.930 1185.129 8.07x EQUAL
rmat26 vxm-bool-sparse 35.385 6.862 71.150 10.37x EQUAL
rmat26 mxv-f64-dense 479.182 no GPU kernel (plus-times) 457.253 - EQUAL
rmat26 mxv-f64-sparse 205.363 no GPU kernel (plus-times) 4521.015 - EQUAL
rmat26 vxm-f64-dense 945.270 no GPU kernel (plus-times) 1321.804 - EQUAL
rmat26 vxm-f64-sparse 55.777 no GPU kernel (plus-times) 190.802 - EQUAL
rmat26 mxv-minplus-dense 528.763 109.558 402.002 3.67x EQUAL
rmat26 mxv-minplus-sparse 194.090 36.357 4433.289 121.94x EQUAL
rmat26 vxm-minplus-dense 1067.696 158.039 830.227 5.25x EQUAL
rmat26 vxm-minplus-sparse 45.113 5.811 124.402 21.41x EQUAL

The RTX 5080 wins every product it has a kernel for, but one: mxv with a full operand, where SuiteSparse's dense pull is level or ahead (rmat24 or-and 10.7 ms against 16.8, rmat26 52.6 against 56.0). With a sparse operand the GPU is 34-122x ahead of SuiteSparse's GrB_mxv (rmat26 min-plus 36 ms against 4.43 s) and vxm 6.6-21x. kleene's CPU beats SuiteSparse on every sparse operand and every vxm, and loses every full-operand mxv (rmat24 or-and 40.1 against 10.7 ms, plus-times 103 against 88 ms).

Maximum flow: push-relabel on the workers against Dinic (2026-11-29)

kleene benchmark --kernels maxflow --trials 5 on loki (Ryzen 9 7900, 12 threads), the same window for both binaries, no quiet lock held by any lane (other sessions' work on the host: the load average is given). "Dinic" is the RED commit's kernel (Dinic's phases alone, e3ee96f); "push-relabel" is the GREEN commit (push-relabel rounds on the workers, the residual graph built on the workers, Dinic to finish). LAGraph 1.2.2 maxflow_demo (LAGr_MaxFlow) in the push-relabel run, its own 5-minute limit. Every answer is checked against the plain one-thread Dinic; LAGraph's flow is equal. Medians in ms. Dinic run 13:25-13:28Z (load 14.87 to 5.78), push-relabel 13:28-13:37Z (load 5.78 to 16.76).

graph Dinic push-relabel LAGraph plain
zox-M 5.720 4.655 23.925 7.293
rmat12 0.323 0.627 6.741 0.779
rmat22 2000.634 598.771 1973.650 3379.577
rmat24 8706.381 2548.398 6699.650 15241.939
road2048 2447.162 713.013 stopped at the 5 min limit 14865.624

On rmat22 and rmat24 most of the Dinic time was the residual graph built on one thread (1.5 of 1.9 s, 6.9 of 8.3 s); the push-relabel rounds themselves take 2 rounds on rmat22, 3 on rmat24 and 103409 on road2048, and Dinic then makes one search that does not reach the target. rmat12 is slower by 0.3 ms (the rounds' set-up on a graph of 4096 vertices). Raw rows: bench/loki-maxflow-dinic.json, bench/loki-maxflow-pr.json.