# 2007-11-27: use of `bacol' PDE solver for comparison # of numerical behaviour on various CPUs and compiler # options. Some results are at the bottom, with the # results file summarised by its md5sum. d="`dirname "$0"`" d="`realpath "$d"`" l="diagsim:nocona: magsim:nocona: gnu:athlon64: cecill:pentium4: one:pentium4: pdlabsim:pentium4:" N="`echo "$l" | wc -l`" for (( n=1; n<=N; n++ )) do REPLY="`echo "$l" | head -n $n | tail -n 1 `" h="`echo "$REPLY" | cut -d: -f1`" a="`echo "$REPLY" | cut -d: -f2`" # ssh -x $h "cd $d && gfortran -o $h -mieee-fp -march=$a -O0 -mfpmath=387 bacol.f burger.f && ./$h >>$h.log" ssh -x $h "cd $d && /pkg/intel/fce/9.1.043/bin/ifort -O2 -mieee-fp -fp-model strict -o $h bacol.f burger.f && ./$h >>$h.log" done exit # Results (from the above script's logs): # O0 or O2 is optimisation -ON # ifort with ieeefp means: -mieee-fp -fp-model-strict # 387 means -mfpmath=387 with gfortran ==> md5_ifort_O0_ieeefp <== 6ff03a4b4b2a0530e50c502dc3d6442b diagsim.log 21c2648d9c7095e1c22b72057e6c8cfe gnu.log 6ff03a4b4b2a0530e50c502dc3d6442b magsim.log ==> md5_ifort_O2_ieeefp <== 6ff03a4b4b2a0530e50c502dc3d6442b diagsim.log 21c2648d9c7095e1c22b72057e6c8cfe gnu.log 6ff03a4b4b2a0530e50c502dc3d6442b magsim.log ==> md5_O0 <== ab3900a8f449bf8830b9c823b2e55c92 cecill.log 88846146366f78354f8d2d473c0828eb diagsim.log 88846146366f78354f8d2d473c0828eb gnu.log 88846146366f78354f8d2d473c0828eb magsim.log ab3900a8f449bf8830b9c823b2e55c92 one.log ab3900a8f449bf8830b9c823b2e55c92 pdlabsim.log ==> md5_O0_387 <== ab3900a8f449bf8830b9c823b2e55c92 cecill.log 839b0e34efea9305e50b4ee1c47e5b39 diagsim.log 839b0e34efea9305e50b4ee1c47e5b39 gnu.log 839b0e34efea9305e50b4ee1c47e5b39 magsim.log ab3900a8f449bf8830b9c823b2e55c92 one.log ab3900a8f449bf8830b9c823b2e55c92 pdlabsim.log ==> md5_O2 <== 6f4746887d147b6eb0acec4be05c3e71 cecill.log 88846146366f78354f8d2d473c0828eb diagsim.log 88846146366f78354f8d2d473c0828eb gnu.log 88846146366f78354f8d2d473c0828eb magsim.log 6f4746887d147b6eb0acec4be05c3e71 one.log 6f4746887d147b6eb0acec4be05c3e71 pdlabsim.log ==> md5_O2_387 <== 6f4746887d147b6eb0acec4be05c3e71 cecill.log 65178a4175295cd8950adb2a7312f81c diagsim.log 65178a4175295cd8950adb2a7312f81c gnu.log 65178a4175295cd8950adb2a7312f81c magsim.log 6f4746887d147b6eb0acec4be05c3e71 one.log 6f4746887d147b6eb0acec4be05c3e71 pdlabsim.log