This is a document for OSU Benchmark.
cd /home/sleong/sandbox/docker-hpc-micro-benchmark/
docker build --tag registry.gsc.wustl.edu/sleong/osu-micro-benchmark:oneapi .Shown below is an example to build Docker image for OSU benchmark with OpenMPI and CUDA.
cd /home/sleong/sandbox/docker-hpc-micro-benchmark/
docker build --tag registry.gsc.wustl.edu/sleong/osu-micro-benchmark:openmpi-cuda-ofed -f Dockerfile.openmpi-cuda-lsf .- Create a bsub batch file as shown below. For my example, I named it
osu_get_latency.bsub.#!/bin/bash #BSUB -q qa #BSUB -n 2 #BSUB -R "span[ptile=1]" #BSUB -a "docker(registry.gsc.wustl.edu/sleong/osu-micro-benchmark:oneapi)" #BSUB -G compute-ris #BSUB -oo lsf-%J.log . /opt/intel/oneapi/setvars.sh hostlist=$(echo $LSB_HOSTS | tr ' ' '_') mpirun -np 2 $OSU_MPI_DIR/one-sided/osu_get_latency > ./osu_get_latency-$hostlist-$LSB_JOBID.log
- Submit a job. Shown below is an example.
LSF_DOCKER_NETWORK=host LSF_DOCKER_IPC=host LSF_DOCKER_SHM_SIZE=20G bsub < osu_get_latency.bsub
- Create a bsub batch file as shown below. For my example, I named it
osu_get_bw.bsub.#!/bin/bash #BSUB -q qa #BSUB -n 2 #BSUB -R "span[ptile=1]" #BSUB -a "docker(registry.gsc.wustl.edu/sleong/osu-micro-benchmark:oneapi)" #BSUB -G compute-ris #BSUB -oo lsf-%J.log . /opt/intel/oneapi/setvars.sh hostlist=$(echo $LSB_HOSTS | tr ' ' '_') mpirun -np 2 $OSU_MPI_DIR/one-sided/osu_get_bw > ./osu_get_bw-$hostlist-$LSB_JOBID.log
- Submit a job. Shown below is an example.
LSF_DOCKER_NETWORK=host LSF_DOCKER_IPC=host LSF_DOCKER_SHM_SIZE=20G bsub < osu_get_bw.bsub
There are two helper scripts in ./bin directory. Shown below are instructions on running the scripts.
- Determine OSU benchmark program to run.
- Run a test. Shown below is an example command.
QUEUE=subscription bin/osu-test.sh osu_gather -G compute-ris
- Determine OSU benchmark program to run.
- Run a test. Shown below is an example command.
QUEUE=subscription bin/osu-test-gpu.sh osu_gather -G compute-ris