Skip to content

Commit

Permalink
Add regional bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
Sbozzolo committed Jul 31, 2024
1 parent 27fac3d commit 66c6ddc
Show file tree
Hide file tree
Showing 3 changed files with 286 additions and 197 deletions.
357 changes: 182 additions & 175 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ steps:
- "julia --project=.buildkite -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'"
- "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.status()'"
# - echo "--- Instantiate test"
# - "julia --project=test -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'"
# - "julia --project=test -e 'using Pkg; Pkg.status()'"

- echo "--- Instantiate lib/ClimaLandSimulations"
- "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'"
- "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.status()'"
# - echo "--- Instantiate lib/ClimaLandSimulations"
# - "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.develop(;path=\".\"); Pkg.instantiate(;verbose=true)'"
# - "julia --project=lib/ClimaLandSimulations -e 'using Pkg; Pkg.status()'"

agents:
slurm_gpus: 1
Expand All @@ -41,177 +41,184 @@ steps:

- wait

- group: "Experiments"
steps:
- label: "Snow Col de Porte"
command: "julia --color=yes --project=.buildkite experiments/standalone/Snow/snowmip_simulation.jl cdp"
artifact_paths: "experiments/standalone/Snow/*png"

- label: "Varying LAI, no stem compartment"
command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/varying_lai.jl"
artifact_paths: "experiments/standalone/Vegetation/varying_lai_no_stem*png"

- label: "Varying LAI, with stem compartment"
command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/varying_lai_with_stem.jl"
artifact_paths: "experiments/standalone/Vegetation/varying_lai_with_stem*png"

- label: "zero LAI, zero SAI"
command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/no_vegetation.jl"
artifact_paths: "experiments/standalone/Vegetation/no_veg*png"

- label: "Richards comparison to Bonan"
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"

- label: "ozark_test"
command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-MOz"
artifact_paths: "experiments/integrated/fluxnet/US-MOz/out/*png"

- label: "niwot_test"
command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-NR1"
artifact_paths: "experiments/integrated/fluxnet/US-NR1/out/*png"

- label: "harvard_test"
command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-Ha1"
artifact_paths: "experiments/integrated/fluxnet/US-Ha1/out/*png"

- label: "ozark_pft"
command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/ozark_pft.jl"
artifact_paths: "experiments/integrated/fluxnet/US-MOz/out/pft/*png"

- label: "ozark_conservation"
command: "julia --color=yes --project=.buildkite experiments/integrated/performance/conservation/ozark_conservation.jl"
artifact_paths: "experiments/integrated/performance/conservation/*png"

- label: "soil/canopy lsm performance"
command: "julia --color=yes --project=.buildkite experiments/integrated/performance/profile_allocations.jl"
artifact_paths: "experiments/integrated/performance/*cpu*html"

- label: "Soilbiogeochem"
command: "julia --color=yes --project=.buildkite experiments/standalone/Biogeochemistry/experiment.jl"

- label: "Water conservation"
command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/water_conservation.jl"
artifact_paths: "experiments/standalone/Soil/water_conservation*png"

- label: "Water conservation in Full Soil Model"
command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/water_energy_conservation.jl"
artifact_paths: "experiments/standalone/Soil/*full_soil_*png"

- label: "Richards Runoff CPU"
command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_runoff.jl"
artifact_paths: "experiments/standalone/Soil/artifacts/cpu/*png"
agents:
slurm_mem: 16G

- label: "Global Run CPU"
command: "julia --color=yes --project=.buildkite experiments/integrated/global/global_soil_canopy.jl"
artifact_paths: "experiments/integrated/global/plots/*png"
agents:
slurm_mem: 16G

- group: "Experiments on GPU"
steps:
- label: "Richards Runoff GPU"
command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_runoff.jl"
artifact_paths: "experiments/standalone/Soil/artifacts/gpu/*png"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:1"
env:
CLIMACOMMS_DEVICE: "CUDA"

- group: "ClimaLandSimulations"
steps:
- label: "Ozark figures Makie"
command: "julia --color=yes --project=lib/ClimaLandSimulations lib/ClimaLandSimulations/experiments/ozark.jl"
artifact_paths: "figures/*pdf"
# - group: "Experiments"
# steps:
# - label: "Snow Col de Porte"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Snow/snowmip_simulation.jl cdp"
# artifact_paths: "experiments/standalone/Snow/*png"

# - label: "Varying LAI, no stem compartment"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/varying_lai.jl"
# artifact_paths: "experiments/standalone/Vegetation/varying_lai_no_stem*png"

# - label: "Varying LAI, with stem compartment"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/varying_lai_with_stem.jl"
# artifact_paths: "experiments/standalone/Vegetation/varying_lai_with_stem*png"

# - label: "zero LAI, zero SAI"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Vegetation/no_vegetation.jl"
# artifact_paths: "experiments/standalone/Vegetation/no_veg*png"

# - label: "Richards comparison to Bonan"
# 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"

# - label: "ozark_test"
# command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-MOz"
# artifact_paths: "experiments/integrated/fluxnet/US-MOz/out/*png"

# - label: "niwot_test"
# command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-NR1"
# artifact_paths: "experiments/integrated/fluxnet/US-NR1/out/*png"

# - label: "harvard_test"
# command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/run_fluxnet.jl US-Ha1"
# artifact_paths: "experiments/integrated/fluxnet/US-Ha1/out/*png"

# - label: "ozark_pft"
# command: "julia --color=yes --project=.buildkite experiments/integrated/fluxnet/ozark_pft.jl"
# artifact_paths: "experiments/integrated/fluxnet/US-MOz/out/pft/*png"

# - label: "ozark_conservation"
# command: "julia --color=yes --project=.buildkite experiments/integrated/performance/conservation/ozark_conservation.jl"
# artifact_paths: "experiments/integrated/performance/conservation/*png"

# - label: "soil/canopy lsm performance"
# command: "julia --color=yes --project=.buildkite experiments/integrated/performance/profile_allocations.jl"
# artifact_paths: "experiments/integrated/performance/*cpu*html"

# - label: "Soilbiogeochem"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Biogeochemistry/experiment.jl"

# - label: "Water conservation"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/water_conservation.jl"
# artifact_paths: "experiments/standalone/Soil/water_conservation*png"

# - label: "Water conservation in Full Soil Model"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/water_energy_conservation.jl"
# artifact_paths: "experiments/standalone/Soil/*full_soil_*png"

# - label: "Richards Runoff CPU"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_runoff.jl"
# artifact_paths: "experiments/standalone/Soil/artifacts/cpu/*png"
# agents:
# slurm_mem: 16G

# - label: "Global Run CPU"
# command: "julia --color=yes --project=.buildkite experiments/integrated/global/global_soil_canopy.jl"
# artifact_paths: "experiments/integrated/global/plots/*png"
# agents:
# slurm_mem: 16G

# - group: "Experiments on GPU"
# steps:
# - label: "Richards Runoff GPU"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Soil/richards_runoff.jl"
# artifact_paths: "experiments/standalone/Soil/artifacts/gpu/*png"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:1"
# env:
# CLIMACOMMS_DEVICE: "CUDA"

# - group: "ClimaLandSimulations"
# steps:
# - label: "Ozark figures Makie"
# command: "julia --color=yes --project=lib/ClimaLandSimulations lib/ClimaLandSimulations/experiments/ozark.jl"
# artifact_paths: "figures/*pdf"

- group: "CPU: global bucket"
steps:
- label: "Global Bucket on CPU (functional albedo)"
key: "global_bucket_function_cpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_function.jl"
artifact_paths:
- "experiments/standalone/Bucket/artifacts/*cpu*"
- "experiments/global_bucket_function/output_active/*.png"

- label: "Global Bucket on CPU (static map albedo)"
key: "global_bucket_staticmap_cpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_staticmap.jl"
artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap/*cpu*"

- label: "Global Bucket on CPU (temporal map albedo)"
key: "global_bucket_temporalmap_cpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_temporalmap.jl"
artifact_paths: "experiments/standalone/Bucket/artifacts_temporalmap/*cpu*"

- group: "GPU: unit tests and global bucket"
steps:
- label: "GPU runtests"
command: "julia --color=yes --project=test test/runtests.jl"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100:1"

- label: "soil/canopy lsm performance on GPU"
command: "julia --color=yes --project=.buildkite experiments/integrated/performance/profile_allocations.jl"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100:1"
artifact_paths: "experiments/integrated/performance/*gpu*html"

- label: "Global Bucket on GPU (functional albedo)"
key: "global_bucket_function_gpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_function.jl"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100:1"
env:
CLIMACOMMS_DEVICE: "CUDA"
artifact_paths: "experiments/standalone/Bucket/artifacts/*gpu*"

- label: "Global Bucket on GPU (static map albedo)"
key: "global_bucket_staticmap_gpu"
# - label: "Global Bucket on CPU (functional albedo)"
# key: "global_bucket_function_cpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_function.jl"
# artifact_paths:
# - "experiments/standalone/Bucket/artifacts/*cpu*"
# - "experiments/global_bucket_function/output_active/*.png"

# - label: "Global Bucket on CPU (static map albedo)"
# key: "global_bucket_staticmap_cpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_staticmap.jl"
# artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap/*cpu*"

- label: "Regional Bucket on CPU (static map albedo)"
key: "regional_bucket_staticmap_cpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_staticmap.jl"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100:1"
artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap_regional/*cpu*"
env:
CLIMACOMMS_DEVICE: "CUDA"
artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap/*gpu*"

- label: "Global Bucket on GPU (temporal map albedo)"
key: "global_bucket_temporalmap_gpu"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_temporalmap.jl"
agents:
slurm_ntasks: 1
slurm_gres: "gpu:p100:1"
env:
CLIMACOMMS_DEVICE: "CUDA"
artifact_paths: "experiments/standalone/Bucket/artifacts_temporalmap/*gpu*"

- group: "CPU/GPU comparisons"
steps:
- label: "Compare GPU bucket with CPU bucket"
command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/compare_gpu_cpu_output.jl"
depends_on:
- "global_bucket_function_cpu"
- "global_bucket_function_gpu"
- "global_bucket_staticmap_cpu"
- "global_bucket_staticmap_gpu"
- "global_bucket_temporalmap_cpu"
- "global_bucket_temporalmap_gpu"
CLIMALAND_CI_REGIONAL_BUCKET: true

# - label: "Global Bucket on CPU (temporal map albedo)"
# key: "global_bucket_temporalmap_cpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_temporalmap.jl"
# artifact_paths: "experiments/standalone/Bucket/artifacts_temporalmap/*cpu*"

# - group: "GPU: unit tests and global bucket"
# steps:
# - label: "GPU runtests"
# command: "julia --color=yes --project=test test/runtests.jl"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:p100:1"

# - label: "soil/canopy lsm performance on GPU"
# command: "julia --color=yes --project=.buildkite experiments/integrated/performance/profile_allocations.jl"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:p100:1"
# artifact_paths: "experiments/integrated/performance/*gpu*html"

# - label: "Global Bucket on GPU (functional albedo)"
# key: "global_bucket_function_gpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_function.jl"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:p100:1"
# env:
# CLIMACOMMS_DEVICE: "CUDA"
# artifact_paths: "experiments/standalone/Bucket/artifacts/*gpu*"

# - label: "Global Bucket on GPU (static map albedo)"
# key: "global_bucket_staticmap_gpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_staticmap.jl"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:p100:1"
# env:
# CLIMACOMMS_DEVICE: "CUDA"
# artifact_paths: "experiments/standalone/Bucket/artifacts_staticmap/*gpu*"

# - label: "Global Bucket on GPU (temporal map albedo)"
# key: "global_bucket_temporalmap_gpu"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/global_bucket_temporalmap.jl"
# agents:
# slurm_ntasks: 1
# slurm_gres: "gpu:p100:1"
# env:
# CLIMACOMMS_DEVICE: "CUDA"
# artifact_paths: "experiments/standalone/Bucket/artifacts_temporalmap/*gpu*"

# - group: "CPU/GPU comparisons"
# steps:
# - label: "Compare GPU bucket with CPU bucket"
# command: "julia --color=yes --project=.buildkite experiments/standalone/Bucket/compare_gpu_cpu_output.jl"
# depends_on:
# - "global_bucket_function_cpu"
# - "global_bucket_function_gpu"
# - "global_bucket_staticmap_cpu"
# - "global_bucket_staticmap_gpu"
# - "global_bucket_temporalmap_cpu"
# - "global_bucket_temporalmap_gpu"
Loading

0 comments on commit 66c6ddc

Please sign in to comment.