Skip to content

CI: run CUDA.jl's tests with 3 CPU threads - #955

Merged
maleadt merged 1 commit into
mainfrom
tb/ci-cpu-threads
Sep 25, 2026
Merged

maleadt merged 1 commit into
mainfrom
tb/ci-cpu-threads

Conversation

@maleadt

@maleadt maleadt commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

The CUDA agents set JULIA_CPU_THREADS=2, so ParallelTestRunner runs CUDA.jl's test suite with 2 workers. The suite is compile-bound: on gpuci a typical run keeps both workers at 100% CPU, peaks at ~1 GB of GPU memory per worker (of 5 GB on an A100 MIG slice), and takes 50-80 minutes. Meanwhile the host has ~15 of its 48 threads and ~300 GB of RAM idle, and the cuda queue is backlogged (median wait ~2 hours).

This raises the budget to 3 threads for the downstream CUDA.jl step. CUDA.jl's runtests.jl still caps the worker count by free GPU memory (1 GiB per worker), so small devices are unaffected. Same change as JuliaGPU/CUDA.jl#3298.

The CUDA agents budget 2 threads per job, which limits CUDA.jl's test suite to
2 workers even though it is compile-bound and the CI hosts have CPU to spare.
CUDA.jl's runtests.jl still caps the worker count by the available GPU memory.
@maleadt
maleadt merged commit c85cd85 into main Sep 25, 2026
31 of 33 checks passed
@maleadt
maleadt deleted the tb/ci-cpu-threads branch September 25, 2026 20:07
@codecov

codecov Bot commented Sep 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.54%. Comparing base (0d06ee4) to head (113bc5a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #955   +/-   ##
=======================================
  Coverage   86.54%   86.54%           
=======================================
  Files          29       29           
  Lines        5729     5729           
=======================================
  Hits         4958     4958           
  Misses        771      771           

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

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