| 1 | #!/bin/bash |
|---|
| 2 | |
|---|
| 3 | CURRENT_PATH=`pwd` |
|---|
| 4 | HOME_PATH="${CURRENT_PATH}/.." |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | echo "Choose the architecture to process (`ls $HOME_PATH/Target -I CVS`):" |
|---|
| 8 | read ARCHI |
|---|
| 9 | |
|---|
| 10 | echo "Enter the description of the architecture :" |
|---|
| 11 | read ARCHI_DESCR |
|---|
| 12 | |
|---|
| 13 | TEST_DIR=`ls $HOME_PATH/Target/$ARCHI -I GOTO -I ATLAS -I compilation.log -I report.xml| tail -n 1` |
|---|
| 14 | echo "Processing testing directory [$TEST_DIR]" |
|---|
| 15 | |
|---|
| 16 | TEST_PATH="$HOME_PATH/Target/$ARCHI/$TEST_DIR" |
|---|
| 17 | |
|---|
| 18 | PRIME=65521 |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | XML_FILE="$TEST_PATH/report.xml" |
|---|
| 22 | HTML_FILE="$CURRENT_PATH/report-${ARCHI}.html" |
|---|
| 23 | cd $TEST_PATH |
|---|
| 24 | |
|---|
| 25 | echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" > ${XML_FILE} |
|---|
| 26 | echo "<benchmark>" >> ${XML_FILE} |
|---|
| 27 | echo "<archi> $ARCHI_DESCR </archi>" >> ${XML_FILE} |
|---|
| 28 | echo "<prime> $PRIME </prime>" >> ${XML_FILE} |
|---|
| 29 | |
|---|
| 30 | ${CURRENT_PATH}/process.sh "Matrix Multiplication" timing-check-dgemm-${PRIME}.txt \ |
|---|
| 31 | timing-check-fgemm-${PRIME}.txt >> ${XML_FILE} |
|---|
| 32 | |
|---|
| 33 | ${CURRENT_PATH}/process.sh "Matrix Triangularization" timing-check-dgetrf-${PRIME}.txt \ |
|---|
| 34 | timing-check-lqup-${PRIME}.txt >> ${XML_FILE} |
|---|
| 35 | |
|---|
| 36 | ${CURRENT_PATH}/process.sh "Multiple Triangular System Solving" timing-check-dtrsm-${PRIME}.txt \ |
|---|
| 37 | timing-check-ftrsm-${PRIME}.txt >> ${XML_FILE} |
|---|
| 38 | |
|---|
| 39 | ${CURRENT_PATH}/process.sh "Matrix Inversion" timing-check-dgetri-${PRIME}.txt \ |
|---|
| 40 | timing-check-inverse-${PRIME}.txt >> ${XML_FILE} |
|---|
| 41 | |
|---|
| 42 | ${CURRENT_PATH}/process.sh "Triangular Matrix Inversion" timing-check-dtrtri-${PRIME}.txt \ |
|---|
| 43 | timing-check-ftrtri-${PRIME}.txt >> ${XML_FILE} |
|---|
| 44 | echo "</benchmark>" >> ${XML_FILE} |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | xsltproc -o ${HTML_FILE} $CURRENT_PATH/html_report.xsl ${XML_FILE} |
|---|