### compile haskell version
rm matmulacc matmulacc.o
ghc --make -O3 matmulacc.hs -L/usr/local/atlas/lib -lptf77blas -lptcblas -latlas

### compile C atlas version
gcc -m64 -march=core2 -O3 -Wall -o matmulaccC matmulacc.c -L/usr/local/atlas/lib -lptcblas -latlas -lgsl -lrt

### compile cublas version
gcc -O3 -Wall -m64 -march=core2 -o matmulaccCublas matmulaccCublas.c -I/usr/local/cuda/include -L/usr/local/cuda/lib64 -lcublas -lrt

nT=100
for nSe in 1 2 3 4 5  ##10 100 1000



do
    (( nS = 5 ** $nSe ))
    echo $nS
    echo $nT

    export nTimes=$nT
    export nRows=$nS

    timePython
    timeMatlab
    timeR
    timeRGpu
    timeHaskell
    timeC
    timeCcublas
done

