From 6216878d0230e8be7b4b564df3d350465975ebe5 Mon Sep 17 00:00:00 2001 From: Zhaoyi Shen <11598433+szy21@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:48:09 -0800 Subject: [PATCH] configure CUDA in longrun pipeline --- .buildkite/longruns/pipeline.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.buildkite/longruns/pipeline.yml b/.buildkite/longruns/pipeline.yml index 132dc96d90..29540b4f18 100644 --- a/.buildkite/longruns/pipeline.yml +++ b/.buildkite/longruns/pipeline.yml @@ -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