Skip to content

Give benchmark workers explicit default thread pools - #851

Merged
jpsamaroo merged 2 commits into
masterfrom
jps/fix/benchmark-threadpools
Dec 2, 2026
Merged

jpsamaroo merged 2 commits into
masterfrom
jps/fix/benchmark-threadpools

Conversation

@jpsamaroo

Copy link
Copy Markdown
Member

A bare two-thread launch on Julia 1.13 creates two default threads plus an interactive thread. Historical Dagger revisions register physical IDs 1 and 2, so the benchmark can exercise an interactive thread while omitting one intended compute thread. Recording only Threads.nthreads() hides that mismatch.

Normalize benchmark workload and Distributed-worker launches to default threads with no interactive pool. Use the compatible bare count on Julia 1.10/1.11 and explicit N,0 on Julia 1.12+. Preserve explicitly supplied pool specifications at the Airspeed runner boundary. Scope Airspeed’s PATH to the driver’s Julia directory and verify actual Distributed worker versions.

Validation: native Julia 1.10.11 and 1.13.4 controls exercise real pinned Dagger tasks through plain, Distributed and two-rank MPI launches, plus both CI call expressions under an intentionally different Julia on PATH. Both compute processors run on default threads with the new launch flags. A matched quiet solve spotcheck also improved both revisions substantially after disabling the unintended interactive pool; this does not establish that all benchmark failures are noise.

Scheduler behavior, regression thresholds and production/test thread policies are unchanged. Full Airspeed and remote SSH validation remain pending.

Written by an AI agent on jpsamaroo’s review feedback.

Julia 1.12+ can add an interactive thread to a bare thread count, so a requested two-thread benchmark can register one interactive and one default processor while omitting another default processor on historical Dagger revisions. Use N,0 for benchmark workload and Distributed subprocesses on Julia 1.12+, retaining the accepted bare N syntax on 1.10/1.11 and explicit caller pool specifications at the Airspeed boundary.

Pin AirspeedVelocity bare-julia launches to the driver executable directory and verify Distributed child versions before loading Dagger. Native 1.10.11 and 1.13.4 controls exercise real pinned Dagger tasks in plain, Distributed and two-rank MPI subprocesses; both CI launch expressions also select the current binary with a deliberately different Julia first on PATH. No scheduler, threshold or production/test thread policy changes.

Written by an AI agent on jpsamaroo's review feedback.
@jpsamaroo
jpsamaroo merged commit 27d1fac into master Dec 2, 2026
55 of 61 checks passed
@jpsamaroo
jpsamaroo deleted the jps/fix/benchmark-threadpools branch December 2, 2026 03:01
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