-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9324d42
commit 0350c1d
Showing
18 changed files
with
789 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
agents: | ||
queue: clima | ||
slurm_time: 24:00:00 | ||
modules: common | ||
|
||
env: | ||
JULIA_CUDA_MEMORY_POOL: none | ||
JULIA_MPI_HAS_CUDA: "true" | ||
JULIA_NVTX_CALLBACKS: gc | ||
JULIA_MAX_NUM_PRECOMPILE_FILES: 100 | ||
OPENBLAS_NUM_THREADS: 1 | ||
OMPI_MCA_opal_warn_on_missing_libcuda: 0 | ||
SLURM_KILL_BAD_EXIT: 1 | ||
SLURM_GRES_FLAGS: "allow-task-sharing" | ||
GPU_DYAMOND_CONFIG_PATH: "config/gpu_configs/gpu_dyamond" | ||
GPU_DYAMOND_WS_CONFIG_PATH: "config/gpu_configs/gpu_dyamond_ws" | ||
CLIMAATMOS_GC_NSTEPS: 10 | ||
ATMOS_CONFIG_PATH: "config/atmos_configs" | ||
MODEL_CONFIG_PATH: "config/model_configs" | ||
|
||
steps: | ||
- label: "init :GPU:" | ||
key: "init_gpu_env" | ||
command: | ||
- echo "--- Instantiate experiments/AMIP" | ||
- julia --project=experiments/AMIP -e 'using Pkg; Pkg.instantiate(;verbose=true)' | ||
- julia --project=experiments/AMIP -e 'using Pkg; Pkg.precompile()' | ||
- julia --project=experiments/AMIP -e 'using Pkg; Pkg.status()' | ||
|
||
- echo "--- Instantiate test env" | ||
- "julia --project=test/ -e 'using Pkg; Pkg.develop(path=\".\")'" | ||
- "julia --project=test/ -e 'using Pkg; Pkg.instantiate(;verbose=true)'" | ||
- "julia --project=test/ -e 'using Pkg; Pkg.precompile()'" | ||
- "julia --project=test/ -e 'using Pkg; Pkg.status()'" | ||
|
||
- echo "--- Download artifacts" | ||
- "julia --project=artifacts -e 'using Pkg; Pkg.instantiate(;verbose=true)'" | ||
- "julia --project=artifacts -e 'using Pkg; Pkg.precompile()'" | ||
- "julia --project=artifacts -e 'using Pkg; Pkg.status()'" | ||
- "julia --project=artifacts artifacts/download_artifacts.jl" | ||
|
||
agents: | ||
slurm_gpus: 1 | ||
slurm_cpus_per_task: 8 | ||
env: | ||
JULIA_NUM_PRECOMPILE_TASKS: 8 | ||
JULIA_MAX_NUM_PRECOMPILE_FILES: 50 | ||
|
||
- wait | ||
|
||
- group: "CPU benchmarks" | ||
steps: | ||
- label: "CPU aquaplanet with diagnostic EDMF" | ||
key: "aquaplanet_diagedmf" | ||
command: "srun julia --color=yes --project=test/ test/component_model_tests/climaatmos_standalone/atmos_driver.jl --config_file $ATMOS_CONFIG_PATH/aquaplanet_diagedmf.yml" | ||
artifact_paths: "experiments/AMIP/output/aquaplanet/aquaplanet_diagedmf_artifacts/*" | ||
env: | ||
BUILD_HISTORY_HANDLE: "" | ||
CLIMACOMMS_DEVICE: "CPU" | ||
agents: | ||
slurm_ntasks_per_node: 16 | ||
slurm_nodes: 1 | ||
slurm_mem_per_cpu: 4GB | ||
|
||
- label: "CPU AMIP with diagnostic EDMF" | ||
key: "amip_diagedmf" | ||
command: "srun julia --color=yes --project=experiments/AMIP/ experiments/AMIP/coupler_driver.jl --config_file $MODEL_CONFIG_PATH/amip_diagedmf.yml" | ||
artifact_paths: "experiments/AMIP/output/amip/amip_diagedmf_artifacts/*" | ||
env: | ||
BUILD_HISTORY_HANDLE: "" | ||
CLIMACOMMS_DEVICE: "CPU" | ||
agents: | ||
slurm_ntasks_per_node: 16 | ||
slurm_nodes: 1 | ||
slurm_mem_per_cpu: 4GB | ||
|
||
- group: "GPU benchmarks" | ||
steps: | ||
- label: "GPU aquaplanet with diagnostic EDMF" | ||
key: "gpu_aquaplanet_diagedmf" | ||
command: "srun julia --color=yes --project=test/ test/component_model_tests/climaatmos_standalone/atmos_driver.jl --config_file $ATMOS_CONFIG_PATH/gpu_aquaplanet_diagedmf.yml" | ||
artifact_paths: "experiments/AMIP/output/aquaplanet/gpu_aquaplanet_diagedmf_artifacts/*" | ||
agents: | ||
slurm_gpus: 1 | ||
slurm_mem: 16GB | ||
|
||
- label: "GPU AMIP with diagnostic EDMF" | ||
key: "gpu_amip_diagedmf" | ||
command: "srun julia --color=yes --project=experiments/AMIP/ experiments/AMIP/coupler_driver.jl --config_file $MODEL_CONFIG_PATH/gpu_amip_diagedmf.yml" | ||
artifact_paths: "experiments/AMIP/output/amip/gpu_amip_diagedmf_artifacts/*" | ||
agents: | ||
slurm_gpus: 1 | ||
slurm_mem: 16GB | ||
|
||
- group: "Generate output table" | ||
steps: | ||
- label: "Compare AMIP/aquaplanet with diagnostic EDMF" | ||
key: "compare_amip_aquaplanet_amip_diagedmf" | ||
command: "julia --color=yes --project=experiments/AMIP/ experiments/AMIP/user_io/benchmarks.jl --cpu_run_name_coupled amip_diagedmf --cpu_run_name_atmos aquaplanet_diagedmf --gpu_run_name_coupled gpu_amip_diagedmf --gpu_run_name_atmos gpu_aquaplanet_diagedmf --mode_name amip" | ||
artifact_paths: "experiments/AMIP/output/compare_amip_aquaplanet_amip_diagedmf/*" | ||
depends_on: | ||
- "aquaplanet_diagedmf" | ||
- "amip_diagedmf" | ||
- "gpu_aquaplanet_diagedmf" | ||
- "gpu_amip_diagedmf" | ||
|
||
- label: ":envelope: Slack report: CPU/GPU AMIP/aquaplanet table" | ||
depends_on: | ||
- "compare_amip_aquaplanet_amip_diagedmf" | ||
command: | ||
- slack-upload -c "#coupler-report" -f experiments/AMIP/output/compare_amip_aquaplanet_amip_diagedmf/table.txt -m txt -n compare_amip_aquaplanet_amip_diagedmf_table -x "Coupler CPU/GPU Comparison Table" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
job_id: "aquaplanet_diagedmf" | ||
dt_save_state_to_disk: "Inf" | ||
dt_save_to_sol: "Inf" | ||
output_default_diagnostics: false | ||
h_elem: 30 | ||
z_max: 55000.0 | ||
z_elem: 63 | ||
dz_bottom: 30.0 | ||
dz_top: 3000.0 | ||
moist: equil | ||
surface_setup: DefaultMoninObukhov | ||
rad: allskywithclear | ||
idealized_insolation: false | ||
dt_rad: 1hours | ||
dt_cloud_fraction: 1hours | ||
turbconv: diagnostic_edmfx | ||
implicit_diffusion: true | ||
approximate_linear_solve_iters: 2 | ||
prognostic_tke: true | ||
edmfx_upwinding: first_order | ||
edmfx_entr_model: "Generalized" | ||
edmfx_detr_model: "Generalized" | ||
edmfx_nh_pressure: true | ||
edmfx_sgs_mass_flux: true | ||
edmfx_sgs_diffusive_flux: true | ||
precip_model: 0M | ||
dt: 100secs | ||
t_end: 12hours | ||
toml: [toml/diagnostic_edmfx_box.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
job_id: "gpu_aquaplanet_diagedmf" | ||
dt_save_state_to_disk: "Inf" | ||
dt_save_to_sol: "Inf" | ||
output_default_diagnostics: false | ||
h_elem: 30 | ||
z_max: 55000.0 | ||
z_elem: 63 | ||
dz_bottom: 30.0 | ||
dz_top: 3000.0 | ||
moist: equil | ||
surface_setup: DefaultMoninObukhov | ||
rad: allskywithclear | ||
idealized_insolation: false | ||
dt_rad: 1hours | ||
dt_cloud_fraction: 1hours | ||
turbconv: diagnostic_edmfx | ||
implicit_diffusion: true | ||
approximate_linear_solve_iters: 2 | ||
prognostic_tke: true | ||
edmfx_upwinding: first_order | ||
edmfx_entr_model: "Generalized" | ||
edmfx_detr_model: "Generalized" | ||
edmfx_nh_pressure: true | ||
edmfx_sgs_mass_flux: true | ||
edmfx_sgs_diffusive_flux: true | ||
precip_model: 0M | ||
dt: 100secs | ||
t_end: 12hours | ||
toml: [toml/diagnostic_edmfx_box.toml] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
anim: false | ||
atmos_config_file: "config/gpu_configs/gpu_aquaplanet_diagedmf.yml" | ||
dt_cpl: 100 | ||
dt_save_state_to_disk: "12hours" | ||
dt_save_to_sol: "12hours" | ||
energy_check: false | ||
job_id: "amip_diagedmf" | ||
land_albedo_type: "map_temporal" | ||
mode_name: "amip" | ||
mono_surface: false | ||
monthly_checkpoint: false | ||
run_name: "amip_diagedmf" | ||
start_date: "19790301" | ||
t_end: "12hours" | ||
turb_flux_partition: "CombinedStateFluxes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
anim: false | ||
atmos_config_file: "config/gpu_configs/gpu_aquaplanet_diagedmf.yml" | ||
dt_cpl: 100 | ||
dt_save_state_to_disk: "12hours" | ||
dt_save_to_sol: "12hours" | ||
energy_check: false | ||
job_id: "gpu_amip_diagedmf" | ||
land_albedo_type: "map_temporal" | ||
mode_name: "amip" | ||
mono_surface: false | ||
monthly_checkpoint: false | ||
run_name: "gpu_amip_diagedmf" | ||
start_date: "19790301" | ||
t_end: "12hours" | ||
turb_flux_partition: "CombinedStateFluxes" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.