Skip to content

Commit

Permalink
use 2 GPUs for benchmark runs
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasloan25 committed Nov 20, 2024
1 parent e2f30e8 commit 788af79
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .buildkite/benchmarks/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ steps:
agents:
slurm_gpus_per_task: 1
slurm_cpus_per_task: 4
slurm_ntasks: 4
slurm_ntasks: 2
slurm_mem: 16GB

- label: "GPU ClimaAtmos with diagnostic EDMF"
Expand All @@ -115,7 +115,7 @@ steps:
agents:
slurm_gpus_per_task: 1
slurm_cpus_per_task: 4
slurm_ntasks: 4
slurm_ntasks: 2
slurm_mem: 16GB

- label: "GPU AMIP with diagnostic EDMF"
Expand All @@ -128,7 +128,7 @@ steps:
agents:
slurm_gpus_per_task: 1
slurm_cpus_per_task: 4
slurm_ntasks: 4
slurm_ntasks: 2
slurm_mem: 16GB

- label: "GPU AMIP with diagnostic EDMF and IO"
Expand All @@ -141,7 +141,7 @@ steps:
agents:
slurm_gpus_per_task: 1
slurm_cpus_per_task: 4
slurm_ntasks: 4
slurm_ntasks: 2
slurm_mem: 16GB

- group: "Generate output table"
Expand Down
8 changes: 4 additions & 4 deletions experiments/ClimaEarth/user_io/benchmarks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,15 @@ run_info_atmos_diagedmf = get_run_info(parsed_args, "atmos_diagedmf")
run_info_atmos = get_run_info(parsed_args, "atmos")

# Set up info for PrettyTables.jl
headers = [build_id_str, "Horiz. res.: 30 elems", "CPU Run [64 processes]", "GPU Run [4 A100s]"]
headers = [build_id_str, "Horiz. res.: 30 elems", "CPU Run [64 processes]", "GPU Run [2 A100s]"]
data = [
["" "Vert. res.: 63 levels" "" ""]
["" "dt: 120secs" "" ""]
]

# Append data to the table for each of the cases we want to compare
data = append_table_data(data, "Coupled", run_info_coupled...)
data = append_table_data(data, "Coupled with IO", run_info_coupled_io...)
data = append_table_data(data, "Coupled with diag. EDMF + IO", run_info_coupled_io...)
data = append_table_data(data, "Coupled with diag. EDMF", run_info_coupled...)
data = append_table_data(data, "Atmos with diag. EDMF", run_info_atmos_diagedmf...)
data = append_table_data(data, "Atmos without diag. EDMF", run_info_atmos...)

Expand All @@ -196,5 +196,5 @@ table_output_dir = joinpath(output_dir, "compare_amip_climaatmos_$(cpu_job_id_co
table_path = joinpath(table_output_dir, "table.txt")
open(table_path, "w") do f
# Output the table, including lines before and after the header
PrettyTables.pretty_table(f, data, header = headers, hlines = [0, 3, 6, 9, 12]) # TODO don't hardcode hlines
PrettyTables.pretty_table(f, data, header = headers, hlines = [0, 3, 6, 9, 12, 15])
end

0 comments on commit 788af79

Please sign in to comment.