From 2ef8665efc41f0e5195a3db942acf4143a4f358b Mon Sep 17 00:00:00 2001 From: Jose Gracia Date: Thu, 29 Sep 2011 19:47:12 +0000 Subject: [PATCH] Added environment variable for compileer --- StarSs_testing_install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/StarSs_testing_install.sh b/StarSs_testing_install.sh index 8d7881f..5592395 100755 --- a/StarSs_testing_install.sh +++ b/StarSs_testing_install.sh @@ -36,7 +36,11 @@ if [ -z ${GIT_REPO} ]; then fi echo "Getting source for repository $GIT_REPO" -COMPILER=gnu-4.5 +# you *may* also specify a compiler +if [ -z ${COMPILER} ]; then + COMPILER=gnu-4.5 +fi + if [ ${TARGET} = "hermit_cray" ]; then COMPILER=cray TARGET=hermit @@ -59,7 +63,7 @@ fi # load modules if [ ${TARGET} = "laki" ]; then - module load compiler/gnu/4.5 + module load compiler/$(echo ${COMPILER} | sed "s,-,/,") module use /opt/amtopt/autotools/modulefiles module load local module load system/perfctr system/papi/4.1.2.1a