Skip to content

Instantly share code, notes, and snippets.

@DaisukeMiyamoto
Last active December 24, 2020 18:52
Show Gist options
  • Save DaisukeMiyamoto/fb791765d9c9bcec75aae566b2e1c4b5 to your computer and use it in GitHub Desktop.
Save DaisukeMiyamoto/fb791765d9c9bcec75aae566b2e1c4b5 to your computer and use it in GitHub Desktop.
sample setup and job script for OSU benchmark with Slurm
#!/bin/bash
# module load intelmpi
module load openmpi
wget http://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-5.6.2.tar.gz
tar zxvf ./osu-micro-benchmarks-5.6.2.tar.gz
cd osu-micro-benchmarks-5.6.2/
./configure CC=mpicc CXX=mpicxx
make -j 4
#!/bin/bash -x
#SBATCH -N 2
#SBATCH --ntasks-per-node 64
mpirun -np ${SLURM_NTASKS} /shared/osu-micro-benchmarks-5.6.2/mpi/pt2pt/osu_mbw_mr
#!/bin/bash -x
#SBATCH -N 2
#SBATCH --ntasks-per-node 1
mpirun -np ${SLURM_NTASKS} /shared/osu-micro-benchmarks-5.6.2/mpi/pt2pt/osu_latency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment