Skip to content

pocl: Actually check if backend is functional - #1002

Open
christiangnrd wants to merge 1 commit into
mainfrom
functional
Open

christiangnrd wants to merge 1 commit into
mainfrom
functional

Conversation

@christiangnrd

Copy link
Copy Markdown
Member

Alternative implementation to #1000.

Close #1000

@christiangnrd christiangnrd changed the title pocl: Actually check if backend is function pocl: Actually check if backend is functional Nov 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

Compared with a585449d8, the merge base.
The environment differs from the baseline's: OS Linux 6.8.0-124-generic → Linux 6.8.0-151-generic, CompilerCaching 0.5.4 → 0.6.0, GPUCompiler 2.24.0 → 2.25.0, GPUToolbox 3.6.0 → 3.7.0, LLVM 10.7.0 → 10.8.1, LLVMExtra_jll 0.0.60+0 → 0.0.61+0, SPIRV_LLVM_Backend_jll 23.1.4+5 → 23.1.4+6.

Times are the minimum time of every benchmark. A change is unusual when it exceeds both three times the benchmark's typical change between consecutive runs on the default branch and a minimum per category (performance 3%, latency 5%, applications 3%, other 3%). A benchmark that starts or stops allocating is listed however few the allocations. A single run can still be a fluke, so rerun before drawing conclusions.

Geometric mean Unusual: slower Unusual: faster Compared
Performance −0.0% 1 0 32
Latency −0.4% 0 0 13
Applications +2.9% 0 0 5
Benchmark Baseline This PR Change
Performance
pocl/parallel/private/across-barrier 42.5 µs 44.0 µs +3.5% 🔴 slower
All benchmarks
Benchmark Baseline This PR Change
Performance
julia/serial/arithmetic/muladd-reference 655 µs 655 µs −0.0%
julia/serial/math/exp-f64-reference 284 µs 284 µs +0.1%
julia/serial/narrow/masked-reference 715 µs 712 µs −0.4%
pocl/parallel/atomics/histogram 5.21 ms 5.20 ms −0.1%
pocl/parallel/groupreduce/add-f64 1.09 ms 1.09 ms +0.2%
pocl/parallel/groupreduce/fallback 4.38 ms 4.40 ms +0.4%
pocl/parallel/groupscan/add-i32 393 µs 393 µs +0.1%
pocl/parallel/indexing/cartesian3d 39.5 µs 40.3 µs +1.9%
pocl/parallel/indexing/linear3d 39.9 µs 41.1 µs +2.8%
pocl/parallel/indexing/ntuple3d 40.5 µs 40.7 µs +0.3%
pocl/parallel/indexing/ntuple4d 127 µs 128 µs +0.8%
pocl/parallel/localmem/transpose-naive 433 µs 431 µs −0.5%
pocl/parallel/localmem/transpose-tiled 65.9 µs 64.6 µs −1.9%
pocl/parallel/private/across-barrier 42.5 µs 44.0 µs +3.5% 🔴 slower
pocl/parallel/scheduling/default 117 µs 117 µs +0.1%
pocl/parallel/scheduling/explicit 117 µs 117 µs +0.1%
pocl/parallel/stream/copy/cache 663 ns 700 ns +5.6%
pocl/parallel/stream/copy/dram 6.50 ms 6.60 ms +1.4%
pocl/parallel/stream/triad/cache 1.29 µs 1.10 µs −14.9%
pocl/parallel/stream/triad/dram 9.54 ms 9.42 ms −1.2%
pocl/parallel/util/copyto-small 25.0 ns 24.0 ns −4.0%
pocl/parallel/util/zeros-large 941 µs 932 µs −0.9%
pocl/parallel/util/zeros-small 627 ns 671 ns +7.0%
pocl/serial/arithmetic/contract 1.85 ms 1.85 ms +0.0%
pocl/serial/arithmetic/muladd 705 µs 704 µs −0.0%
pocl/serial/const/marked 668 µs 668 µs −0.0%
pocl/serial/const/unmarked 860 µs 860 µs −0.1%
pocl/serial/math/exp-f64 123 µs 123 µs −0.2%
pocl/serial/math/sin-f64 167 µs 171 µs +2.7%
pocl/serial/narrow/masked 635 µs 633 µs −0.3%
pocl/serial/narrow/unmasked 635 µs 628 µs −1.2%
pocl/serial/stream/triad/dram 8.62 ms 8.57 ms −0.6%
Latency
host/import/ka 764 ms 766 ms +0.2%
host/precompile/ka 27.1 s 27.3 s +0.6%
host/startup 130 ms 128 ms −1.1%
pocl/parallel/launch/dynamic-default 165 ns 162 ns −1.8%
pocl/parallel/launch/groupreduce-f64 770 ns 774 ns +0.5%
pocl/parallel/launch/many-args 662 ns 654 ns −1.2%
pocl/parallel/launch/partial-workgroup 234 ns 236 ns +0.9%
pocl/serial/compile/groupreduce 1.51 s 1.48 s −1.6%
pocl/serial/compile/localmem-barrier 674 ms 673 ms −0.1%
pocl/serial/compile/new-kernel 127 ms 127 ms −0.2%
pocl/serial/compile/new-workgroupsize 8.73 ms 8.65 ms −0.9%
pocl/serial/first-kernel/cold-cache 395 ms 396 ms +0.3%
pocl/serial/first-kernel/warm-cache 321 ms 319 ms −0.5%
Applications
pocl/parallel/dgsem/fluxdiff-node 246 µs 254 µs +3.5%
pocl/parallel/dgsem/weak-element 90.7 µs 91.6 µs +1.0%
pocl/parallel/dgsem/weak-node-localmem 93.1 µs 92.8 µs −0.4%
pocl/parallel/stencil/timestep 7.29 ms 7.66 ms +5.1%
pocl/serial/stencil/timestep 10.1 ms 10.6 ms +5.3%

History: https://juliagpu.org/perf/?pkg=kernelabstractions

@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.21%. Comparing base (a585449) to head (f913dee).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1002      +/-   ##
==========================================
- Coverage   90.79%   89.21%   -1.59%     
==========================================
  Files          33       33              
  Lines        3293     3004     -289     
==========================================
- Hits         2990     2680     -310     
- Misses        303      324      +21     

☔ 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.

This branch has not been deployed

No deployments
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