-
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
Showing
8 changed files
with
189 additions
and
10 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
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,69 @@ | ||
#!/bin/bash -e | ||
# | ||
# A LUMI SLURM batch script for the LUMI mpi4py MPICH example from | ||
# https://github.com/DeiC-HPC/cotainr | ||
# This script runs the OSU benchmarks with Numpy buffers | ||
# using a cotainr container including a generic MPICH, bind mounting the host MPI. | ||
# | ||
#SBATCH --job-name=mpi4py-cotainr-bind-osu | ||
#SBATCH --nodes=2 | ||
#SBATCH --tasks-per-node=1 | ||
#SBATCH --output="output_%x_%j.txt" | ||
#SBATCH --partition=small | ||
#SBATCH --exclusive | ||
#SBATCH --time=00:10:00 | ||
#SBATCH --account=project_<your_project_id> | ||
|
||
PROJECT_DIR= | ||
OSU_PY_BENCHMARK_DIR=$PROJECT_DIR/osu-micro-benchmarks-7.0.1/python/ | ||
RESULTS_DIR=$PROJECT_DIR/test_results | ||
CONTAINERS=(\ | ||
"cotainr-mpich3-pip-mpi4py.sif" \ | ||
"cotainr-mpich4-pip-mpi4py.sif") | ||
|
||
set -x | ||
mkdir -p $RESULTS_DIR | ||
|
||
source $PROJECT_DIR/lumi-singularity-bindings.sh # or use the LUMI singularity-bindings module | ||
|
||
for container in ${CONTAINERS[@]}; do | ||
# Single node runs | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-single-$container.txt | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-single-$container.txt | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-single-$container.txt | ||
|
||
# Multi node runs | ||
srun \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-multi-$container.txt | ||
srun \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-multi-$container.txt | ||
srun \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-multi-$container.txt | ||
done |
2 changes: 1 addition & 1 deletion
2
examples/LUMI/conda_mpi4py_mpich/run_cotainr_hybrid_mpi_hello_world.sh
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
67 changes: 67 additions & 0 deletions
67
examples/LUMI/conda_mpi4py_mpich/run_cotainr_hybrid_osu.sh
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,67 @@ | ||
#!/bin/bash -e | ||
# | ||
# A LUMI SLURM batch script for the LUMI mpi4py MPICH example from | ||
# https://github.com/DeiC-HPC/cotainr | ||
# This script runs the OSU benchmarks with Numpy buffers | ||
# using a cotainr container including a generic MPICH, using the container MPI. | ||
# | ||
#SBATCH --job-name=mpi4py-cotainr-hybrid-osu | ||
#SBATCH --nodes=2 | ||
#SBATCH --tasks-per-node=1 | ||
#SBATCH --output="output_%x_%j.txt" | ||
#SBATCH --partition=small | ||
#SBATCH --exclusive | ||
#SBATCH --time=00:30:00 | ||
#SBATCH --account=project_<your_project_id> | ||
|
||
PROJECT_DIR= | ||
OSU_PY_BENCHMARK_DIR=$PROJECT_DIR/osu-micro-benchmarks-7.0.1/python/ | ||
RESULTS_DIR=$PROJECT_DIR/test_results | ||
CONTAINERS=(\ | ||
"cotainr-mpich3-pip-mpi4py.sif" \ | ||
"cotainr-mpich4-pip-mpi4py.sif") | ||
|
||
set -x | ||
mkdir -p $RESULTS_DIR | ||
|
||
for container in ${CONTAINERS[@]}; do | ||
# Single node runs | ||
srun --nodes=1 --tasks-per-node=2 --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-single-$container.txt | ||
srun --nodes=1 --tasks-per-node=2 --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-single-$container.txt | ||
srun --nodes=1 --tasks-per-node=2 --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-single-$container.txt | ||
|
||
# Multi node runs | ||
srun --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-multi-$container.txt | ||
srun --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-multi-$container.txt | ||
srun --mpi=pmi2 \ | ||
singularity exec \ | ||
--bind=$PROJECT_DIR \ | ||
$PROJECT_DIR/containers/$container \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-multi-$container.txt | ||
done |
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,46 @@ | ||
#!/bin/bash -e | ||
# | ||
# A LUMI SLURM batch script for the LUMI mpi4py MPICH example from | ||
# https://github.com/DeiC-HPC/cotainr | ||
# This script runs the OSU benchmarks with Numpy buffers | ||
# using the LUMI cray-python module | ||
# | ||
#SBATCH --job-name=mpi4py-cray-python-osu | ||
#SBATCH --nodes=2 | ||
#SBATCH --tasks-per-node=1 | ||
#SBATCH --output="output_%x_%j.txt" | ||
#SBATCH --partition=small | ||
#SBATCH --exclusive | ||
#SBATCH --time=00:10:00 | ||
#SBATCH --account=project_<your_project_id> | ||
|
||
module load cray-python | ||
|
||
PROJECT_DIR= | ||
OSU_PY_BENCHMARK_DIR=$PROJECT_DIR/osu-micro-benchmarks-7.0.1/python/ | ||
RESULTS_DIR=$PROJECT_DIR/test_results | ||
|
||
set -x | ||
mkdir -p $RESULTS_DIR | ||
|
||
# Single node runs | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-single.txt | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-single.txt | ||
srun --nodes=1 --tasks-per-node=2 \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-single.txt | ||
|
||
# Multi node runs | ||
srun \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=bw --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-bw-multi.txt | ||
srun \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=latency --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-latency-multi.txt | ||
srun \ | ||
python3 $OSU_PY_BENCHMARK_DIR/run.py --benchmark=allgather --buffer=numpy \ | ||
> $RESULTS_DIR/$SLURM_JOB_NAME-allgather-multi.txt |
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