|
| 1 | +agents: |
| 2 | + queue: clima |
| 3 | + slurm_time: 14:00:00 |
| 4 | + modules: common |
| 5 | + |
| 6 | +env: |
| 7 | + JULIA_MAX_NUM_PRECOMPILE_FILES: 100 |
| 8 | + GKSwstype: 100 |
| 9 | + SLURM_KILL_BAD_EXIT: 1 |
| 10 | + CONFIG_PATH: "config/nightly_configs" |
| 11 | + |
| 12 | +timeout_in_minutes: 840 |
| 13 | + |
| 14 | + |
| 15 | +steps: |
| 16 | + - label: "init :GPU:" |
| 17 | + key: "init_gpu_env" |
| 18 | + command: |
| 19 | + - "echo $$JULIA_DEPOT_PATH" |
| 20 | + |
| 21 | + - echo "--- Instantiate AMIP env" |
| 22 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.instantiate(;verbose=true)'" |
| 23 | + |
| 24 | + # For this pipeline, use the main branches of certain upstream packages |
| 25 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"ClimaAtmos\", rev=\"main\"))'" |
| 26 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"ClimaLand\", rev=\"main\"))'" |
| 27 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"ClimaCore\", rev=\"main\"))'" |
| 28 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"Thermodynamics\", rev=\"main\"))'" |
| 29 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"SurfaceFluxes\", rev=\"main\"))'" |
| 30 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(Pkg.PackageSpec(;name=\"RRTMGP\", rev=\"main\"))'" |
| 31 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.resolve()'" |
| 32 | + |
| 33 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.add(\"MPI\"); Pkg.add(\"CUDA\")'" |
| 34 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.precompile()'" |
| 35 | + - "julia --project=experiments/ClimaEarth/ -e 'using Pkg; Pkg.status()'" |
| 36 | + |
| 37 | + - echo "--- Download artifacts" |
| 38 | + - "julia --project=experiments/ClimaEarth/ artifacts/download_artifacts.jl" |
| 39 | + |
| 40 | + agents: |
| 41 | + slurm_gpus: 1 |
| 42 | + slurm_cpus_per_task: 8 |
| 43 | + env: |
| 44 | + JULIA_NUM_PRECOMPILE_TASKS: 8 |
| 45 | + JULIA_MAX_NUM_PRECOMPILE_FILES: 50 |
| 46 | + |
| 47 | + - wait |
| 48 | + |
| 49 | + - group: "AMIP coarse ensemble" |
| 50 | + |
| 51 | + steps: |
| 52 | + |
| 53 | + - label: "1 Coarse current AMIP: diagedmf + 0M + bucket land" |
| 54 | + key: "amip1" |
| 55 | + command: |
| 56 | + - echo "--- Run simulation" |
| 57 | + - "julia --threads=3 --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $CONFIG_PATH/amip_coarse.yml --job_id amip_coarse1" |
| 58 | + artifact_paths: "experiments/ClimaEarth/output/amip/amip_coarse1_artifacts/*" |
| 59 | + timeout_in_minutes: 1080 |
| 60 | + env: |
| 61 | + CLIMACOMMS_DEVICE: "CUDA" |
| 62 | + agents: |
| 63 | + slurm_gpus_per_task: 1 |
| 64 | + slurm_cpus_per_task: 4 |
| 65 | + slurm_ntasks: 1 |
| 66 | + slurm_mem: 30GB |
| 67 | + soft_fail: true |
| 68 | + |
| 69 | + - label: "2 Coarse current AMIP: diagedmf + 0M + bucket land" |
| 70 | + key: "amip2" |
| 71 | + command: |
| 72 | + - echo "--- Run simulation" |
| 73 | + - "julia --threads=3 --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $CONFIG_PATH/amip_coarse.yml --job_id amip_coarse2" |
| 74 | + artifact_paths: "experiments/ClimaEarth/output/amip/amip_coarse2_artifacts/*" |
| 75 | + timeout_in_minutes: 1080 |
| 76 | + env: |
| 77 | + CLIMACOMMS_DEVICE: "CUDA" |
| 78 | + agents: |
| 79 | + slurm_gpus_per_task: 1 |
| 80 | + slurm_cpus_per_task: 4 |
| 81 | + slurm_ntasks: 1 |
| 82 | + slurm_mem: 30GB |
| 83 | + soft_fail: true |
| 84 | + |
| 85 | + - label: "3 Coarse current AMIP: diagedmf + 0M + bucket land" |
| 86 | + key: "amip3" |
| 87 | + command: |
| 88 | + - echo "--- Run simulation" |
| 89 | + - "julia --threads=3 --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $CONFIG_PATH/amip_coarse.yml --job_id amip_coarse3" |
| 90 | + artifact_paths: "experiments/ClimaEarth/output/amip/amip_coarse3_artifacts/*" |
| 91 | + timeout_in_minutes: 1080 |
| 92 | + env: |
| 93 | + CLIMACOMMS_DEVICE: "CUDA" |
| 94 | + agents: |
| 95 | + slurm_gpus_per_task: 1 |
| 96 | + slurm_cpus_per_task: 4 |
| 97 | + slurm_ntasks: 1 |
| 98 | + slurm_mem: 30GB |
| 99 | + soft_fail: true |
| 100 | + |
| 101 | + - label: "4 Coarse current AMIP: diagedmf + 0M + bucket land" |
| 102 | + key: "amip4" |
| 103 | + command: |
| 104 | + - echo "--- Run simulation" |
| 105 | + - "julia --threads=3 --color=yes --project=experiments/ClimaEarth/ experiments/ClimaEarth/run_amip.jl --config_file $CONFIG_PATH/amip_coarse.yml --job_id amip_coarse4" |
| 106 | + artifact_paths: "experiments/ClimaEarth/output/amip/amip_coarse4_artifacts/*" |
| 107 | + timeout_in_minutes: 1080 |
| 108 | + env: |
| 109 | + CLIMACOMMS_DEVICE: "CUDA" |
| 110 | + agents: |
| 111 | + slurm_gpus_per_task: 1 |
| 112 | + slurm_cpus_per_task: 4 |
| 113 | + slurm_ntasks: 1 |
| 114 | + slurm_mem: 30GB |
| 115 | + soft_fail: true |
0 commit comments