Add multi-queue support for Buildkite CI #1306
Open
+300
−17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds the ability to run benchmarks on different Buildkite queues, enabling GPU-intensive benchmarks to use GPU-enabled compute resources while maintaining CPU-only benchmarks on the standard queue.
Key Features
Dynamic Queue Assignment: Benchmarks can specify their preferred queue through:
Project.toml
metadata (highest priority)juliaecosystem
GPU Support: GPU benchmarks automatically get:
queue: "gpu"
assignmentJULIA_CUDA_USE_BINARYBUILDER=false
,JULIA_GPU_ALLOW_DEFAULT=true
)Backward Compatibility: Existing benchmarks continue using the CPU queue without changes
Implementation
Files Added
.buildkite/queue_config.yml
: Central queue configuration mapping benchmarks to queues.buildkite/generate_pipeline.jl
: Dynamic pipeline generator that creates appropriate Buildkite steps.buildkite/README.md
: Complete documentation with usage examplesFiles Modified
.buildkite/test_sciml.yml
: Updated to use dynamic pipeline generationbenchmarks/PINNOptimizers/Project.toml
: Example GPU queue specificationUsage Examples
GPU benchmark configuration in
Project.toml
:Generated pipeline step for GPU benchmark:
CPU benchmark continues to use:
Testing
The system has been tested with:
PINNOptimizers
) → correctly assigned togpu
queueNonStiffODE
) → correctly assigned tojuliaecosystem
queueInfrastructure Requirements
To fully utilize this system:
queue: "gpu"
queue: "juliaecosystem"
Test plan
🤖 Generated with Claude Code