Skip to content

Commit

Permalink
fix buildkite
Browse files Browse the repository at this point in the history
  • Loading branch information
kmdeck authored and Sbozzolo committed Aug 29, 2024
1 parent ee78e17 commit bf8038c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
24 changes: 14 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -134,6 +125,15 @@ steps:
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_gres: "gpu:1"
env:
CLIMACOMMS_DEVICE: "CUDA"

- group: "ClimaLandSimulations"
steps:
- label: "Ozark figures Makie"
Expand Down Expand Up @@ -173,9 +173,13 @@ steps:
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100: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"
Expand Down
1 change: 1 addition & 0 deletions experiments/integrated/performance/profile_allocations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test/standalone/Soil/climate_drivers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -298,11 +298,11 @@ for FT in (Float32, Float64)
r_ae = conditions.r_ae
expected_water_flux = @. FT(precip(t)) .+
conditions.vapor_flux * (1 - f_ice) * r_ae / (r_soil + r_ae)
@test computed_water_flux == expected_water_flux
@test parent(computed_water_flux) parent(expected_water_flux)
expected_energy_flux = @. R_n +
conditions.lhf * r_ae / (r_soil + r_ae) +
conditions.shf
@test computed_energy_flux == expected_energy_flux
@test parent(computed_energy_flux) parent(expected_energy_flux)
end
end
end

0 comments on commit bf8038c

Please sign in to comment.