bake-regression.qsub 2.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
#COBALT -n 2
#COBALT -t 20
#COBALT --mode script
#COBALT -A radix-io
#COBALT -q debug-cache-quad

# XXX xalt module currently eating '-M' flag for mercury-runner...disabling for now
# module unload xalt

11 12 13 14
get_pmdk_lib_path() {
        module show `spack module tcl find pmem` |&grep LIBRARY_PATH | awk '{print $3}'
}

Philip Carns's avatar
Philip Carns committed
15 16 17 18
get_mercury_lib_path() {
        module show `spack module tcl find mercury` |&grep LIBRARY_PATH | awk '{print $3}'
}

19 20 21 22 23
get_remi_lib_path() {
        module show `spack module tcl find remi` |&grep LIBRARY_PATH | awk '{print $3}'
}


24 25 26 27 28
module swap PrgEnv-intel PrgEnv-gnu
module load cce

. $SANDBOX/spack/share/spack/setup-env.sh
spack load -r ssg 
Philip Carns's avatar
bug fix  
Philip Carns committed
29
spack load -r bake
30 31 32 33 34 35 36

module list

# NOTE: as of Sept 2018, the rpath isn't being set correctly for Mercury libraries in the regression
#       test programs.  Not sure why.  This hack manually adds the correct path to LD_LIBRARY_PATH.
LIB_PATH_HACK=$(get_mercury_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
Philip Carns's avatar
Philip Carns committed
37
# ditto for pmdk apparently
38 39
LIB_PATH_HACK=$(get_pmdk_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
Philip Carns's avatar
Philip Carns committed
40
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH
41 42
LIB_PATH_HACK=$(get_remi_lib_path)
export LD_LIBRARY_PATH="$LIB_PATH_HACK:$LD_LIBRARY_PATH"
43 44
echo LD_LIBRARY_PATH: $LD_LIBRARY_PATH

Philip Carns's avatar
Philip Carns committed
45 46 47 48
echo "## Bake OFI/GNI:"
rm -f /dev/shm/foo.dat
bake-mkpool -s 60G /dev/shm/foo.dat
aprun -n 2 -N 1 ./bake-p2p-bw -x 16777216 -m 34359738368 -n "ofi+gni://ipogif0:5000" -p /dev/shm/foo.dat -c 1 
49

Philip Carns's avatar
Philip Carns committed
50 51 52 53
echo "## Bake OFI/GNI (8x concurrency):"
rm -f /dev/shm/foo.dat
bake-mkpool -s 60G /dev/shm/foo.dat
aprun -n 2 -N 1 ./bake-p2p-bw -x 16777216 -m 34359738368 -n "ofi+gni://ipogif0:5000" -p /dev/shm/foo.dat -c 8 
54

Philip Carns's avatar
Philip Carns committed
55 56 57 58
echo "## Bake OFI/GNI (Hg busy spin):"
rm -f /dev/shm/foo.dat
bake-mkpool -s 60G /dev/shm/foo.dat
aprun -n 2 -N 1 ./bake-p2p-bw -x 16777216 -m 34359738368 -n "ofi+gni://ipogif0:5000" -p /dev/shm/foo.dat -c 1 -t 0,0
59

Philip Carns's avatar
Philip Carns committed
60 61 62 63
echo "## Bake OFI/GNI (8x concurrency, Hg busy spin):"
rm -f /dev/shm/foo.dat
bake-mkpool -s 60G /dev/shm/foo.dat
aprun -n 2 -N 1 ./bake-p2p-bw -x 16777216 -m 34359738368 -n "ofi+gni://ipogif0:5000" -p /dev/shm/foo.dat -c 8 -t 0,0
64