From 74e15a2485945cdeb56f9c8f080441e383110add Mon Sep 17 00:00:00 2001 From: kmdeck Date: Tue, 27 Aug 2024 10:41:22 -0700 Subject: [PATCH] fix buildkite --- .buildkite/pipeline.yml | 36 ++++++++++--------- .../performance/profile_allocations.jl | 1 + 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index d6f435a180..c3abc9fb64 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -26,7 +26,7 @@ steps: - "julia --project=.buildkite -e 'using Pkg; Pkg.status()'" - echo "--- Instantiate test" - - "julia --project=test -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'" + - "julia --project=test -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.add(\"MPI\"); Pkg.add(\"CUDA\"); Pkg.instantiate(;verbose=true)'" - "julia --project=test -e 'using Pkg; Pkg.status()'" - echo "--- Instantiate lib/ClimaLandSimulations" @@ -63,15 +63,6 @@ steps: command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_comparison.jl" artifact_paths: "experiments/standalone/Soil/cpu/comparison*png" - - label: "Richards comparison to Bonan: GPU" - command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_comparison.jl" - artifact_paths: "experiments/standalone/Soil/gpu/comparison*png" - agents: - slurm_ntasks: 1 - slurm_gres: "gpu:1" - env: - CLIMACOMMS_DEVICE: "CUDA" - - label: "vaira_test" command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-Var" artifact_paths: "experiments/integrated/fluxnet/US-Var/out/*png" @@ -130,7 +121,16 @@ steps: artifact_paths: "experiments/standalone/Soil/artifacts/gpu/*png" agents: slurm_ntasks: 1 - slurm_gres: "gpu:1" + slurm_gpus: 1 + env: + CLIMACOMMS_DEVICE: "CUDA" + + - label: "Richards comparison to Bonan: GPU" + command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_comparison.jl" + artifact_paths: "experiments/standalone/Soil/gpu/comparison*png" + agents: + slurm_ntasks: 1 + slurm_gpus: 1 env: CLIMACOMMS_DEVICE: "CUDA" @@ -172,13 +172,17 @@ steps: command: "julia --color=yes --project=test test/runtests.jl" agents: slurm_ntasks: 1 - slurm_gres: "gpu:p100:1" + slurm_gpus: 1 + env: + CLIMACOMMS_DEVICE: "CUDA" - label: "soil/canopy lsm performance on GPU" command: "julia --color=yes --project=.buildkite experiments/integrated/performance/profile_allocations.jl" + env: + CLIMACOMMS_DEVICE: "CUDA" agents: slurm_ntasks: 1 - slurm_gres: "gpu:p100:1" + slurm_gpus: 1 artifact_paths: "experiments/integrated/performance/flame*html" - label: "Global Bucket on GPU (functional albedo)" @@ -186,7 +190,7 @@ steps: command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_function.jl" agents: slurm_ntasks: 1 - slurm_gres: "gpu:p100:1" + slurm_gpus: 1 env: CLIMACOMMS_DEVICE: "CUDA" artifact_paths: "experiments/standalone/Bucket/artifacts/*gpu*" @@ -196,7 +200,7 @@ steps: command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/bucket_era5.jl" agents: slurm_ntasks: 1 - slurm_gres: "gpu:p100:1" + slurm_gpus: 1 env: CLIMACOMMS_DEVICE: "CUDA" artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap/*gpu*" @@ -206,7 +210,7 @@ steps: command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_temporalmap.jl" agents: slurm_ntasks: 1 - slurm_gres: "gpu:p100:1" + slurm_gpus: 1 env: CLIMACOMMS_DEVICE: "CUDA" artifact_paths: "experiments/standalone/Bucket/artifacts_temporalmap/*gpu*" diff --git a/experiments/integrated/performance/profile_allocations.jl b/experiments/integrated/performance/profile_allocations.jl index 2ec19f9192..9d226e727e 100644 --- a/experiments/integrated/performance/profile_allocations.jl +++ b/experiments/integrated/performance/profile_allocations.jl @@ -4,6 +4,7 @@ using ClimaCore using Dates using Insolation import ClimaComms +@static pkgversion(ClimaComms) >= v"0.6" && ClimaComms.@import_required_backends import ClimaUtilities.TimeVaryingInputs: TimeVaryingInput using ClimaLand