Protptype cray compiler detection and support

This commit is contained in:
Todd Gamblin
2015-10-05 01:30:25 -07:00
parent cc6252cdfa
commit d00314c621
9 changed files with 116 additions and 5 deletions

17
lib/spack/env/cc vendored
View File

@@ -70,6 +70,23 @@ for param in $parameters; do
fi
done
#
# Cray module environment-related stuff.
#
if [ ! -z "$SPACK_CRAYPE" ]; then
cur_pe=$(module list 2>&1 | grep PrgEnv | grep -o 'PrgEnv-[^/]*')
if [ ! -z "$cur_pe" ]; then
module swap $cur_pe $SPACK_CRAYPE
else
module load $SPACK_CRAYPE
fi
fi
if [ ! -z "$SPACK_COMP_MODULE" ]; then
module load $SPACK_COMP_MODULE
fi
#
# Figure out the type of compiler, the language, and the mode so that
# the compiler script knows what to do.