work around ACML being so terrible by reducing memory usage in HPL
Jason D. Clinton [Fri, 11 Jul 2008 21:48:42 +0000 (16:48 -0500)]
etc/breakin/burnin/hpl

index fe367aa..be8ae0b 100755 (executable)
@@ -11,11 +11,21 @@ fi
 BINARY="xhpl.amd"
 RUNNING_JOB=""
 
+echo "${CPU_MODEL}" | grep "Intel" > /dev/null 2>&1
+if [ "$?" = "0" ]
+then
+       BINARY="xhpl.intel"
+fi
+
 # the top template
 cat /usr/local/breakin/hpl/HPL-top.txt > /usr/local/breakin/hpl/HPL.dat
 
 # we first figure out our N based on the ammount of RAM we have
 N_SIZE=`/usr/local/bin/hpl_calc_n ${MEM_TOTAL}`
+if [ ${BINARY} = "xhpl.amd"]
+then
+       N_SIZE=$(($((N_SIZE / 3)) * 2))
+fi
 
 echo "${N_SIZE}         Ns" >> /usr/local/breakin/hpl/HPL.dat
 
@@ -57,12 +67,6 @@ then
 fi
 cat /usr/local/breakin/hpl/HPL-bottom.txt >> /usr/local/breakin/hpl/HPL.dat
 
-echo "${CPU_MODEL}" | grep "Intel" > /dev/null 2>&1
-if [ "$?" = "0" ]
-then
-       BINARY="xhpl.intel"
-fi
-
 
 OMP_NUM_THREADS=1
 GOTO_NUM_THREADS=1