Revision 39

Pi/C/MPI/bench.sh (revision 39)
1 1
#!/bin/bash
2 2

  
3 3
EXE=Pi_MPI_LONG
4
ITERATIONS=1000000000
4
ITERATIONS=10000000000
5 5
TIME=time
6 6

  
7 7
REPEAT=10
Pi/C/Simple/bench.sh (revision 39)
4 4
ITERATIONS=1000000000
5 5
TIME=time
6 6

  
7
REPEAT=10
8

  
7 9
[ ! $1 == '' ] && EXE=$1
8 10
[ ! $2 == '' ] && ITERATIONS=$2
9 11

  
......
12 14
echo -ne "Start $EXE with $ITERATIONS : "
13 15
> $LOGFILE
14 16
i=1
15
while [ $i -le 10 ]
17
while [ $i -le $REPEAT ]
16 18
do 
17 19
    echo -ne "$i "
18 20
    $TIME ./$EXE $ITERATIONS >> $LOGFILE 2>&1 
Pi/C/Pthreads/bench.sh (revision 39)
1 1
#!/bin/bash
2 2

  
3 3
EXE=Pi_Pthreads_LONG
4
ITERATIONS=1000000000
4
ITERATIONS=10000000000
5 5
TIME=time
6 6

  
7 7
REPEAT=10
Pi/C/OpenMP/bench.sh (revision 39)
1 1
#!/bin/bash
2 2

  
3 3
EXE=Pi_OpenMP_LONG
4
ITERATIONS=1000000000
4
ITERATIONS=10000000000
5 5
TIME=time
6 6

  
7 7
REPEAT=10
Pi/C/bench_all.sh (revision 39)
1
DIRS="Simple OpenMP Pthreads MPI"
2

  
3
CURRENT=$PWD
4
ITERATIONS=1000000000
5

  
6
LENGTH=LONG
7
for DIR in $(echo $DIRS | tr ' ' '\n')
8
do
9
    cd $CURRENT/$DIR
10
    EXE=$(ls Pi_*${LENGTH})
11
    ls -l $EXE
12
    ./bench.sh $EXE $ITERATIONS
13
    cd $CURRENT
14
done
0 15

  

Also available in: Unified diff