Skip to content

Commit

Permalink
split to diff steps
Browse files Browse the repository at this point in the history
  • Loading branch information
LenkaNovak committed Mar 27, 2024
1 parent d2aa4b6 commit f7020d2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 12 deletions.
52 changes: 41 additions & 11 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,17 @@ steps:
slurm_ntasks: 2
slurm_mem: 16GB

- label: "batch script"
command:
- |
sed -n '10,37' test/mpi_tests/local_checks.sh | bash &&
sed -n '38,49' test/mpi_tests/local_checks.sh | bash &&
sed -n '50,$$p' test/mpi_tests/local_checks.sh | bash
env:
CLIMACORE_DISTRIBUTED: "MPI"
agents:
slurm_ntasks: 2
slurm_mem: 16GB
# - label: "batch script"
# command:
# - |
# sed -n '10,37' test/mpi_tests/local_checks.sh | bash &&
# sed -n '38,49' test/mpi_tests/local_checks.sh | bash &&
# sed -n '50,$$p' test/mpi_tests/local_checks.sh | bash
# env:
# CLIMACORE_DISTRIBUTED: "MPI"
# agents:
# slurm_ntasks: 2
# slurm_mem: 16GB

# short high-res performance test
- label: "Unthreaded AMIP FINE" # also reported by longruns with a flame graph
Expand Down Expand Up @@ -438,10 +438,40 @@ steps:
slurm_mem: 20GB
slurm_gpus: 1

- group: "Bash scripts"

steps:
- label: "batch script - part 1"
command:
- "sed -n '10,37' test/mpi_tests/local_checks.sh | bash"
env:
CLIMACORE_DISTRIBUTED: "MPI"
agents:
slurm_ntasks: 2
slurm_mem: 16GB

- wait

- label: "batch script - part 2"
command:
- "sed -n '10,35' test/mpi_tests/local_checks.sh | bash"
- "sed -n '38,49' test/mpi_tests/local_checks.sh | bash"
env:
CLIMACORE_DISTRIBUTED: "MPI"
agents:
slurm_ntasks: 2
slurm_mem: 16GB

- wait

- label: "batch script - part 3"
command: "sed -n '50,$$p' test/mpi_tests/local_checks.sh | bash"
env:
CLIMACORE_DISTRIBUTED: "MPI"
agents:
slurm_ntasks: 2
slurm_mem: 16GB

- wait

# plot job performance history
Expand Down
2 changes: 1 addition & 1 deletion test/mpi_tests/local_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ $(ls -1 $RESTART_DIR/checkpoint | wc -l) -gt 5 ]; then
fi

# cleanup
rm $RESTART_CONFIG_FILE
# rm $RESTART_CONFIG_FILE



Expand Down

0 comments on commit f7020d2

Please sign in to comment.