Skip to content

Commit

Permalink
configure CUDA in longrun pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
szy21 committed Nov 12, 2023
1 parent 9018631 commit 6216878
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .buildkite/longruns/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,20 @@ steps:
- label: "init :computer:"
key: "init_cpu_env"
command:
- echo "--- Instantiate project"
- "julia --project -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
- "julia --project -e 'using Pkg; Pkg.precompile()'"
- "julia --project -e 'using Pkg; Pkg.status()'"

- echo "--- Configure CUDA"
# force the initialization of the CUDA runtime as it is lazily loaded by default
- "julia --project=cuda_env -e 'using Pkg; Pkg.resolve(); Pkg.instantiate(;verbose=true);using CUDA; CUDA.precompile_runtime()'"

- echo "--- Instantiate"
- "julia --project=examples -e 'using Pkg; Pkg.instantiate(;verbose=true)'"
- "julia --project=examples -e 'using Pkg; Pkg.precompile()'"
- "julia --project=examples -e 'using Pkg; Pkg.status()'"
- "julia --project=examples artifacts/download_artifacts.jl"
- "julia --project=examples -e 'using CUDA; CUDA.precompile_runtime()'"

agents:
slurm_cpus_per_task: 8
Expand Down

0 comments on commit 6216878

Please sign in to comment.