spmv_script.sh 749 Bytes
#!/bin/bash

for i in 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152 4194304 8388608 16777216
do
	echo `date`, `$1 --dense=$i $2 $3 $4 $5 $6 $7`
done

echo
echo

for i in `ls /home/dumerrill/graphs/spmv/*.mtx`
do
    if [[ ( "`head -n 50 $i | grep complex`" = "" ) && ( "`head -n 50 $i | grep array`" = "" ) ]] 
    then
    	echo `date`, `$1 --mtx=$i $2 $3 $4 $5 $6 $7 2>/dev/null`
    fi
done

echo
echo

for i in `ls /scratch/dumerrill/graphs/mtx/*.mtx`
#for i in `ls /cygdrive/w/Dev/UFget/mtx/*.mtx`
do 
    if [[ ( "`head -n 50 $i | grep complex`" = "" ) && ( "`head -n 50 $i | grep array`" = "" ) ]] 
    then
    	echo `date`, `$1 --mtx=$i $2 $3 $4 $5 $6 $7 2>/dev/null`
    fi
done