Skip to content

Require ThreadTeams 2 - #978

Merged
vchuravy merged 1 commit into
mainfrom
vc/threadteams-2
Nov 16, 2026
Merged

vchuravy merged 1 commit into
mainfrom
vc/threadteams-2

Conversation

@vchuravy

Copy link
Copy Markdown
Member

Bumps the compat entry from ThreadTeams = "1.4" to ThreadTeams = "2".

ThreadTeams 2.0 (vchuravy/ThreadTeams.jl#88) keeps only the pool: the schedulers move to OhMyThreads, and the dependency on OhMyThreads and ChunkSplitters is gone. foreach_range and the pool controls that the PoCL back end uses are unchanged, so no code changes are needed. The comment on the old 1.3 bound is dropped.

Testing

Locally, Julia 1.12.6 with 4 threads against ThreadTeams 2.0.0: the suite passes except the "POCL session" testset, whose subprocess (test/pocl_session.jl) segfaults. That crash is not caused by this change: it happens the same way on main with ThreadTeams 1.4.0 on my machine (6 of 6 runs each), and is being investigated separately.

🤖 Generated with Claude Code

ThreadTeams 2.0 removes its schedulers and its dependency on OhMyThreads;
`foreach_range` and the pool controls used by the PoCL back end are unchanged.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

Compared with 5876a9bca, the merge base.
The environment differs from the baseline's: LinearAlgebraExt 0.1.46 → 0.10.7, ThreadTeams 1.4.0 → 2.0.0.

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.4% 0 0 32
Latency −0.3% 0 0 13
Applications +2.4% 0 0 5

No unusual changes.

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.0%
julia/serial/narrow/masked-reference 707 µs 714 µs +0.9%
pocl/parallel/atomics/histogram 5.21 ms 5.20 ms −0.0%
pocl/parallel/groupreduce/add-f64 1.09 ms 1.09 ms −0.0%
pocl/parallel/groupreduce/fallback 4.38 ms 4.38 ms +0.0%
pocl/parallel/groupscan/add-i32 393 µs 393 µs −0.1%
pocl/parallel/indexing/cartesian3d 40.1 µs 40.5 µs +1.0%
pocl/parallel/indexing/linear3d 41.3 µs 40.5 µs −1.9%
pocl/parallel/indexing/ntuple3d 40.1 µs 39.3 µs −1.8%
pocl/parallel/indexing/ntuple4d 126 µs 129 µs +2.4%
pocl/parallel/localmem/transpose-naive 433 µs 436 µs +0.6%
pocl/parallel/localmem/transpose-tiled 66.7 µs 63.5 µs −4.8%
pocl/parallel/private/across-barrier 43.8 µs 43.8 µs +0.1%
pocl/parallel/scheduling/default 117 µs 117 µs −0.0%
pocl/parallel/scheduling/explicit 117 µs 117 µs +0.0%
pocl/parallel/stream/copy/cache 677 ns 683 ns +0.9%
pocl/parallel/stream/copy/dram 6.36 ms 6.49 ms +2.1%
pocl/parallel/stream/triad/cache 1.11 µs 1.27 µs +15.0%
pocl/parallel/stream/triad/dram 9.60 ms 9.66 ms +0.7%
pocl/parallel/util/copyto-small 27.0 ns 25.0 ns −7.4%
pocl/parallel/util/zeros-large 931 µs 953 µs +2.4%
pocl/parallel/util/zeros-small 633 ns 659 ns +4.1%
pocl/serial/arithmetic/contract 1.85 ms 1.85 ms +0.0%
pocl/serial/arithmetic/muladd 705 µs 705 µ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 126 µs 127 µs +0.4%
pocl/serial/math/sin-f64 165 µs 165 µs −0.0%
pocl/serial/narrow/masked 633 µs 635 µs +0.3%
pocl/serial/narrow/unmasked 632 µs 631 µs −0.2%
pocl/serial/stream/triad/dram 8.52 ms 8.61 ms +1.1%
Latency
host/import/ka 618 ms 588 ms −4.7%
host/precompile/ka 24.5 s 24.4 s −0.4%
host/startup 128 ms 130 ms +1.5%
pocl/parallel/launch/dynamic-default 166 ns 166 ns +0.0%
pocl/parallel/launch/groupreduce-f64 809 ns 805 ns −0.5%
pocl/parallel/launch/many-args 673 ns 677 ns +0.6%
pocl/parallel/launch/partial-workgroup 214 ns 216 ns +0.9%
pocl/serial/compile/groupreduce 1.46 s 1.45 s −0.7%
pocl/serial/compile/localmem-barrier 730 ms 706 ms −3.2%
pocl/serial/compile/new-kernel 129 ms 129 ms −0.0%
pocl/serial/compile/new-workgroupsize 8.56 ms 8.69 ms +1.5%
pocl/serial/first-kernel/cold-cache 394 ms 398 ms +1.0%
pocl/serial/first-kernel/warm-cache 321 ms 323 ms +0.4%
Applications
pocl/parallel/dgsem/fluxdiff-node 253 µs 255 µs +0.9%
pocl/parallel/dgsem/weak-element 93.2 µs 94.2 µs +1.1%
pocl/parallel/dgsem/weak-node-localmem 83.3 µs 83.0 µs −0.3%
pocl/parallel/stencil/timestep 6.90 ms 7.66 ms +10.9%
pocl/serial/stencil/timestep 10.4 ms 10.4 ms −0.1%

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

@codecov

codecov Bot commented Nov 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.79%. Comparing base (5876a9b) to head (e335c5e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #978      +/-   ##
==========================================
- Coverage   85.62%   84.79%   -0.84%     
==========================================
  Files          31       31              
  Lines        2970     2926      -44     
==========================================
- Hits         2543     2481      -62     
- Misses        427      445      +18     

☔ 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 merged commit aa7d47c into main Nov 16, 2026
49 of 51 checks passed
@vchuravy
vchuravy deleted the vc/threadteams-2 branch November 16, 2026 12:32
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