Commit bc05c741 authored by COULAUD Olivier's avatar COULAUD Olivier

the script is ok now

parent 495e7058
...@@ -36,9 +36,8 @@ ALGO=(basic task sectiontask) ...@@ -36,9 +36,8 @@ ALGO=(basic task sectiontask)
# #
pwd pwd
#export OMP_PROC_BIND=true #export OMP_PROC_BIND=true
export KMP_AFFINITY=verbose,scatter export KMP_AFFINITY=scatter
echo "# Core GlabalTIME P2PTIME M2LTIME ENERGY PotentialError ForceError"> $FILEPERF-${HOST}.out NUM=`git rev-list HEAD --count`
echo $DISTRIB echo $DISTRIB
for dist in `seq 0 $NBTEST`; for dist in `seq 0 $NBTEST`;
do do
...@@ -49,16 +48,18 @@ do ...@@ -49,16 +48,18 @@ do
# Loop on algorithm # Loop on algorithm
for a in `seq 0 2`; for a in `seq 0 2`;
do do
echo "# Core GlabalTIME P2PTIME M2LTIME ENERGY PotentialError ForceError"> $FILEPERF-${DISTRIB[$dist]}-${ALGO[$a]}.out
# One computation # One computation
for l in $PER_SIZE ; for l in $PER_SIZE ;
do do
OUTPUT=${FILEPERF}-${DISTRIB[$dist]}-${ALGO[$a]}-${l}.out OUTPUT=${FILEPERF}-${DISTRIB[$dist]}-${ALGO[$a]}-${l}.out
echo "ScalFMM git version: " $NUM > $OUTPUT
echo "Running on " ${l} " threads with algo " ${ALGO[$a]} echo "Running on " ${l} " threads with algo " ${ALGO[$a]}
$EXEC ${OPTION} -f $FILE -depth ${DEPTH[$dist]} -subdepth 4 -t $l -cmp -algo ${ALGO[$a]}> $OUTPUT $EXEC ${OPTION} -f $FILE -depth ${DEPTH[$dist]} -subdepth 4 -t $l -cmp -algo ${ALGO[$a]}>> $OUTPUT
# #
TIME=`grep "@Algorithm" $OUTPUT | awk '{print $4}'` TIME=`grep "@Algorithm" $OUTPUT | awk '{print $4}'`
TIMEP2P=`grep "P2P" $OUTPUT | awk '{print $4}'` TIMEP2P=`grep "P2P" $OUTPUT | awk '{print $4}'`
TIMEM2L=`grep "M2L" $OUTPUT | grep "second" $OUTPUT | awk '{print $2}'` TIMEM2L=`grep "M2L" $OUTPUT | grep "second" | awk '{print $2}'`
Energy=`grep "Energy" $OUTPUT | awk '{print $3}'` Energy=`grep "Energy" $OUTPUT | awk '{print $3}'`
P1=`grep " Potential " $OUTPUT | awk '{print $7}'` P1=`grep " Potential " $OUTPUT | awk '{print $7}'`
P2=`grep " F " $OUTPUT | awk '{print $7}'` P2=`grep " F " $OUTPUT | awk '{print $7}'`
...@@ -70,3 +71,4 @@ do ...@@ -70,3 +71,4 @@ do
done done
echo "-------------------------------------------------------------------" echo "-------------------------------------------------------------------"
done done
echo " ---------------------- FINISH -------------------------------"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment