Skip to content

Commit

Permalink
Add buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Mar 23, 2024
1 parent a1deff2 commit 797ec80
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
agents:
queue: new-central
slurm_mem: 8G
modules: climacommon/2024_03_18

env:
JULIA_LOAD_PATH: "${JULIA_LOAD_PATH}:${BUILDKITE_BUILD_CHECKOUT_PATH}/.buildkite"
JULIA_DEPOT_PATH: "${BUILDKITE_BUILD_PATH}/${BUILDKITE_PIPELINE_SLUG}/depot/default"
SLURM_KILL_BAD_EXIT: 1

steps:
- label: "init :computer:"
key: "init_cpu_env"
command:
- "echo $$JULIA_DEPOT_PATH"

- echo "--- Instantiate project"
- "julia --project=test -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
- "julia --project=test -e 'using Pkg; Pkg.precompile()'"
- "julia --project=test -e 'using Pkg; Pkg.status()'"
agents:
slurm_cpus_per_task: 8
slurm_gpus: 1

- label: "Run tests on GPU"
key: "gpu_tests"
command:
- "julia --project=test test/runtest.jl"
agents:
slurm_gpus: 1

- label: "Run tests with MPI"
key: "mpi_tests"
command:
- "julia --project=test test/runtest.jl"
agents:
slurm_cpus_per_task: 2

0 comments on commit 797ec80

Please sign in to comment.