Statistiques
| Révision :

root / BLAS / xGEMM / bench-cublas.sh @ 1

Historique | Voir | Annoter | Télécharger (695 octet)

1
#!/bin/bash
2

    
3
DIR=$(pwd)/OUT
4

    
5
BENCH=lesson23
6

    
7
NUMBER=10
8

    
9
SIZE=30
10

    
11
STEP=1
12

    
13
MAX=3000
14

    
15
FORMAT=SP
16

    
17
OUTSP_THUNKING=$DIR/${BENCH}_${FORMAT}_thunking.out
18
OUTSP_CUBLAS=$DIR/${BENCH}_${FORMAT}_cublas.out
19

    
20
echo > $OUTSP_THUNKING
21
echo > $OUTSP_CUBLAS
22

    
23
while [ $SIZE -le $MAX ]
24
do
25
        
26
    FORMAT=SP
27

    
28
    THUNKING=$(./${BENCH}_${FORMAT}_thunking $SIZE $NUMBER | grep GFlops | awk -F: '{ print $2 }' | awk '{ print  $1 }')
29
    
30
    CUBLAS=$(./${BENCH}_${FORMAT}_cublas $SIZE $NUMBER | grep GFlops | awk -F: '{ print $2 }' | tr "\n" " " | awk '{ print  $5"\t"$1"\t"$3 }')
31
    
32
    echo -e $SIZE"\t"$THUNKING >> $OUTSP_THUNKING
33
    echo -e $SIZE"\t"$CUBLAS >> $OUTSP_CUBLAS
34

    
35
    SIZE=$(($SIZE+$STEP))
36

    
37
done