NERSCPowering Scientific Discovery Since 1974

Running HPX tests on Cori Phase II

A few simple tests can be run to try your HPX installation on Cori Phase II

First, on the login node, with your environment set as before, compile the HPX stream benchmark.

module swap craype-haswell craype-mic-knl
module swap intel/16.0.3.210 intel/17.0.1.132
module load gcc/4.9.3 
module load boost/1.61
module load cmake/3.3.2
module load memkind
module load hwloc
module unload darshan

In the directory where you have built HPX, you can make the stream executable and use the following batch script to run it.

make -j8 stream_exe
#!/bin/bash -l
#SBATCH -J stream_quad_cache
#SBATCH -o stream_quad_cache-%j.out
#SBATCH -N 1
#SBATCH -n 1
#SBATCH -p knl
#SBATCH -C knl,quad,cache
#SBATCH -t 1:00:00

module swap craype-haswell craype-mic-knl
module swap intel/16.0.3.210 intel/17.0.1.132
module load gcc/4.9.3
module load boost/1.61

HPX_APP="srun $SCRATCH/build/hpx/release/bin/stream --vector_size=50000000"

for threads in 1 2 4 8 16 32 64 128 256 272
do
    echo $HPX_APP --hpx:threads=$threads
    $HPX_APP --hpx:threads=$threads
    echo ""
done