Skip to content
Snippets Groups Projects
Commit 99d42182 authored by Lukáš Čejka's avatar Lukáš Čejka Committed by Tomáš Oberhuber
Browse files

Commented out MatrixMarket2 benchmark launch, MatrixReader couldn't load those...

Commented out MatrixMarket2 benchmark launch, MatrixReader couldn't load those matrices. Added matrix file name to log file output, to avoid overwriting data.
parent 1e1681b7
No related branches found
No related tags found
1 merge request!45Matrices revision
#!/usr/bin/env bash #!/usr/bin/env bash
DEBUG="yes" DEBUG="no"
STOP_TIME="1" STOP_TIME="1"
export CUDA_PROFILE=0 export CUDA_PROFILE=0
...@@ -12,31 +12,32 @@ BENCHMARK_DBG="tnl-benchmark-spmv-dbg" ...@@ -12,31 +12,32 @@ BENCHMARK_DBG="tnl-benchmark-spmv-dbg"
export CUDA_PROFILE_CONFIG="$IWD/cuda-profiler.conf" export CUDA_PROFILE_CONFIG="$IWD/cuda-profiler.conf"
PROCESS_CUDA_PROFILE="$IWD/process-cuda-profile.pl" PROCESS_CUDA_PROFILE="$IWD/process-cuda-profile.pl"
source matrix-market #source matrix-market
source florida-matrix-market source florida-matrix-market
for link in $MM_MATRICES; # !!!Matrices in MatrixMarket2 don't load properly, formatting issues with every file. MatrixReader fails.
do #for link in $MM_MATRICES;
echo "======================================================================================================" #do
matrix=matrices`echo $link | sed 's/ftp:\/\/math.nist.gov\/pub//'` # echo "======================================================================================================"
unzipped_matrix=`echo $matrix | sed 's/.gz//'` # matrix=matrices`echo $link | sed 's/ftp:\/\/math.nist.gov\/pub//'`
if test ! -e $matrix; # unzipped_matrix=`echo $matrix | sed 's/.gz//'`
then # if test ! -e $matrix;
echo "Matrix $matrix is missing !!! Run the script 'get-matrices' first." # then
#echo "Matrix $matrix is missing !!! Run the script 'get-matrices' first." >> sparse-matrix-benchmark.log # echo "Matrix $matrix is missing !!! Run the script 'get-matrices' first."
else # #echo "Matrix $matrix is missing !!! Run the script 'get-matrices' first." >> sparse-matrix-benchmark.log
gunzip -c ${matrix} > ${unzipped_matrix} # else
echo "Benchmarking with the matrix $unzipped_matrix ..." # gunzip -c ${matrix} > ${unzipped_matrix}
export CUDA_PROFILE_LOG=$unzipped_matrix.float.log # echo "Benchmarking with the matrix $unzipped_matrix ..."
if test x$DEBUG = xyes; # export CUDA_PROFILE_LOG=$unzipped_matrix.float.log
then # if test x$DEBUG = xyes;
gdb --args ${BENCHMARK_DBG} --input-file $unzipped_matrix --log-file sparse-matrix-benchmark.log --verbose 1 # then
else # gdb --args ${BENCHMARK_DBG} --input-file $unzipped_matrix --log-file sparse-matrix-benchmark.log --verbose 1
$BENCHMARK --input-file $unzipped_matrix --log-file sparse-matrix-benchmark.log --verbose 1 # else
fi # $BENCHMARK --input-file $unzipped_matrix --log-file sparse-matrix-benchmark.log --verbose 1
#perl $PROCESS_CUDA_PROFILE $unzipped_matrix.float.log sparse-matrix-profiling-float.log # fi
fi # #perl $PROCESS_CUDA_PROFILE $unzipped_matrix.float.log sparse-matrix-profiling-float.log
done # fi
#done
for link in $FLORIDA_MM_MATRICES; for link in $FLORIDA_MM_MATRICES;
do do
...@@ -59,9 +60,9 @@ do ...@@ -59,9 +60,9 @@ do
echo "Benchmarking with the matrix $file ..." echo "Benchmarking with the matrix $file ..."
if test x$DEBUG = xyes; if test x$DEBUG = xyes;
then then
gdb --args $BENCHMARK --input-file $file --log-file sparse-matrix-benchmark.log --verbose 1 gdb --args $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$SUBDIRNAME.log --verbose 1
else else
$BENCHMARK --input-file $file --log-file sparse-matrix-benchmark.log --verbose 1 $BENCHMARK --input-file $file --log-file log-files/sparse-matrix-benchmark::$SUBDIRNAME.log --verbose 1
fi fi
done done
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment