run_check.sh 2.18 KB
Newer Older
1 2 3
#!/bin/bash

VARS="PAMID_VERBOSE=1 BG_SHAREDMEMSIZE=64 PAMID_COLLECTIVES=1 BGLOCKLESSMPIO_F_TYPE=0x47504653 PAMID_COLLECTIVES_MEMORY_OPTIMIZED=1"
4
NODES=512
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
PPN=16
NPROCS=$((NODES*PPN))
TARGET="/projects/visualization/ftessier/debug"

cd $HOME/TAPIOCA/examples

export TAPIOCA_DEVNULL=false
export TAPIOCA_COMMSPLIT=true
export TAPIOCA_STRATEGY=TOPOLOGY_AWARE
export TAPIOCA_NBAGGR=8
export TAPIOCA_BUFFERSIZE=16777216

function updateSettings()
{
    printenv | egrep "TAPIOCA_"
20
    SETTINGS="TAPIOCA_DEVNULL=$TAPIOCA_DEVNULL"
21 22 23 24 25 26 27 28 29 30
    SETTINGS="$SETTINGS TAPIOCA_COMMSPLIT=$TAPIOCA_COMMSPLIT"
    SETTINGS="$SETTINGS TAPIOCA_STRATEGY=$TAPIOCA_STRATEGY"
    SETTINGS="$SETTINGS TAPIOCA_NBAGGR=$TAPIOCA_NBAGGR"
    SETTINGS="$SETTINGS TAPIOCA_BUFFERSIZE=$TAPIOCA_BUFFERSIZE"
}

#########################
# Array of Structures
#########################
rm $TARGET/*
31
updateSettings
32 33 34 35 36 37 38 39 40 41 42
runjob --block $COBALT_PARTNAME --envs $VARS $SETTINGS -p $PPN --np $NPROCS : ./miniHACC-AoS-MPIIO
sleep 4
let j=0
for i in $TARGET/*
do
    CONTROLAOS[$j]=`md5sum $i | cut -d ' ' -f1`
    echo ${CONTROLAOS[$j]}
    let j=$j+1
done

rm $TARGET/*
43
updateSettings
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
runjob --block $COBALT_PARTNAME --envs $VARS $SETTINGS -p $PPN --np $NPROCS : ./miniHACC-AoS
sleep 4
let j=0
for i in $TARGET/*
do
    HASH[$j]=`md5sum $i | cut -d ' ' -f1`
    if [ ${CONTROLAOS[$j]} == ${HASH[$j]} ]
    then
        echo -e "\e[32m[PASSED]\e[39m ${HASH[$j]}"
    else
        echo -e "\e[31m[FAILED]\e[39m ${HASH[$j]}"
    fi
    let j=$j+1
done

#########################
# Structure of Arrays
#########################
rm $TARGET/*
63
updateSettings
64 65 66 67 68 69 70 71 72 73 74
runjob --block $COBALT_PARTNAME --envs $VARS $SETTINGS -p $PPN --np $NPROCS : ./miniHACC-SoA-MPIIO
sleep 4
let j=0
for i in $TARGET/*
do
    CONTROLSOA[$j]=`md5sum $i | cut -d ' ' -f1`
    echo ${CONTROLSOA[$j]}
    let j=$j+1
done

rm $TARGET/*
75
updateSettings
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
runjob --block $COBALT_PARTNAME --envs $VARS $SETTINGS -p $PPN --np $NPROCS : ./miniHACC-SoA
sleep 4
let j=0
for i in $TARGET/*
do
    HASH[$j]=`md5sum $i | cut -d ' ' -f1`
    if [ ${CONTROLSOA[$j]} == ${HASH[$j]} ]
    then
        echo -e "\e[32m[PASSED]\e[39m ${HASH[$j]}"
    else
        echo -e "\e[31m[FAILED]\e[39m ${HASH[$j]}"
    fi
    let j=$j+1
done