benchmark intel mpi

nadyawilliams edited this page Jun 7, 2014 · 1 revision

Intel MPI Benchmark

Table of Contents

Initial steps

Create directory structure in the shared applications mount point:

 # cd /share/apps
 # mkdir benchmarks
 # mkdir benchmarks/IMB
 # cd benchmarks/IMB

Get the source:

IMB is available on the Intel web site:

Once you've downloaded the application, copy it to your master node and unpack it.

 # cd /share/apps/benchmarks/IMB
 # tar -zxvf IMB_2.3.tar.gz

Build the application:

 # cd IMB_2.3/src

IMB calls include files from the Makefile. You can uncomment/comment/add include files in the beginning of the Makefile. There are two include files below that can be used with a default installation of rocks using the compute roll, and one for use when you've added the Intel Roll.

This shows the include section at the beginning of the Makefile, with additions I've added for make_[intel,gnu,path,pgi]. The uncommented include file is the active include file.

 ##### User configurable options #####
 #include make_intel
 include make_gnu
 #include make_path
 #include make_pgi
 #include make_ia32
 #include make_ia64
 #include make_sun
 #include make_solaris
 #include make_dec
 #include make_ibm_sp
 #include make_sr2201
 #include make_vpp
 #include make_t3e
 #include make_sgi
 #include make_sx4
 ### End User configurable options ### 


 COMPILER    = gnu
 MPICH       = /opt/mpich/gnu
 MPI_INCLUDE = $(MPI_HOME)/include 
 LIB_PATH    =
 LIBS        =
 CC          = ${MPI_HOME}/bin/mpicc 
 CLINKER     = ${CC}
 LDFLAGS     = 


 COMPILER    = intel
 MPICH       = /opt/mpich/intel
 MPI_INCLUDE = $(MPI_HOME)/include 
 LIB_PATH    =
 LIBS        =
 CC          = ${MPI_HOME}/bin/mpicc 
 CLINKER     = ${CC}
 LDFLAGS     = 

Uncomment the include file you need and build the executable. The example below shows the IMB-MPI1 executable built with the GNU compilers:

 # make
 # cp IMB-MPI1-gnu ../../

Running IMB

Now we've built IMB. There are many ways to run it, I'll show how to use it with an interactive PBS session and also a PBS script.

First, running in an interactive PBS session:

Prepare an output directory to write data at the location where you want to test performance. I'll assume you have all directories on the master node, and want to write output files in the home directory.

 $ su - user
 $ mkdir output_files

Start the Interactive session:

 $ mpiexec /share/apps/benchmarks/IMB/IMB-MPI1-gnu

Using a PBS Script:

 #PBS -e IMB.err
 #PBS -o IMB.out
 #PBS -m aeb
 #PBS -M user
 #PBS -l nodes=[n]:ppn=[p]
 #PBS -l walltime=30:00:00
 ### ---------------------------------------
 ### ---------------------------------------
 echo The master node of this job is `hostname`
 echo The working directory is `echo $PBS_O_WORKDIR`
 echo This job runs on the following nodes:
 echo `cat $PBS_NODEFILE`
 ### end of information preamble
 cmd="mpiexec /share/apps/benchmarks/IMB/IMB-MPI1-gnu"
 echo "running bounce with: $cmd in directory "`pwd`

Running IMB as shown above uses the defaults and runs all tests. To learn more about running specific tests and configurable options, refer to the userguide: /share/apps/benchmarks/IMB/IMB_2.3/doc

Viewing output

gnuplot may not be included by default in your distribution. Here's one way to add the package:

 # up2date --install gnuplot

Once you have gnuplot, you can plot results, example shown:

 $ gnuplot
 gnuplot> plot '' u 1:3 w lp lw 2 p 2, '' u 1:3 w ld

lw 2 p2

 gnuplot> set title "Intel MPI Benchmark Send/Receive & AlltoAll Tests"
 gnuplot> set xlabel "Number of Bytes Transferred"
 gnuplot> set ylabel "Time in Microseconds"

Here are examples of what you can do with plots (very simple plots)


You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.