detect HPL variant not available and report to user
Jason D. Clinton [Mon, 14 Jul 2008 18:52:47 +0000 (13:52 -0500)]
etc/breakin/burnin/hpl

index b4d3b4c..6827cc0 100755 (executable)
@@ -72,12 +72,19 @@ OMP_NUM_THREADS=1
 GOTO_NUM_THREADS=1
 export OMP_NUM_THREADS GOTO_NUM_THREADS
 
-#export LD_LIBRARY_PATH=/opt/hpl/libs
+LD_LIBRARY_PATH=/usr/local/lib
+export LD_LIBRARY_PATH
+
 cd /usr/local/breakin/hpl
-/usr/local/bootimage-mpich/bin/mpirun -np ${CPU_QTY} /usr/local/bin/${BINARY} > /tmp/hpl.log 2>&1
+if [ -x /usr/local/bin/${BINARY} ]
+then
+       /usr/local/bootimage-mpich/bin/mpirun -np ${CPU_QTY} /usr/local/bin/${BINARY} > /tmp/hpl.log 2>&1
+else
+       echo "Binary for this host CPU variant is not available."
+fi
 
 sleep 1
-killall ${BINARY}
+killall ${BINARY} > /dev/null 2>&1
 
 if [ "$?" -ne 0 ]
 then