Hi,
Is there anyone using Spack on Stampede2? I'm having trouble setting it up properly. My compilers.yaml and packages.yaml are shown below. I'm using system default modules if that's relevant. With these settings, `spack install intel-mpi` would err with:
==> inte...@2018.2.199 : has external module in impi/18.0.2
==> inte...@2018.2.199 : is actually installed in /opt/intel/compilers_and_libraries_2018.2.199/linux/mpi/intel64
==> inte...@2018.2.199 : generating module file
==> Error: Error: unterminated ${ in format:'() { if [ -z "${LMOD_SH_DBG_ON+x}" ]; then
case "$-" in
*v*x*)
__lmod_sh_dbg='vx'
;;
*v*)
__lmod_sh_dbg='v'
;;
*x*)
__lmod_sh_dbg='x'
;;
esac;
fi;
if [ -n "${__lmod_sh_dbg'
The only clue I have is that this piece of code is from an environment variable:
BASH_FUNC_module()=() { if [ -z "${LMOD_SH_DBG_ON+x}" ]; then
case "$-" in
*v*x*)
__lmod_sh_dbg='vx'
;;
*v*)
__lmod_sh_dbg='v'
;;
*x*)
__lmod_sh_dbg='x'
;;
esac;
fi;
if [ -n "${__lmod_sh_dbg:-}" ]; then
set +$__lmod_sh_dbg;
echo "Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output";
fi;
eval $($LMOD_CMD bash "$@") && eval $(${LMOD_SETTARG_CMD:-:} -s sh);
local _lmod_my_status=$?;
if [ -n "${__lmod_sh_dbg:-}" ]; then
echo "Shell debugging restarted";
set -$__lmod_sh_dbg;
unset __lmod_sh_dbg;
fi;
return $_lmod_my_status
}
There is another weird thing that when I do `spack install intel-mpi`, before `==> inte...@2018.2.199 ...`, there would be a large block of output showing all the environment variables set. I think it's from my compiler setting with `modules: [intel/18.0.2]`.
compilers.yaml
compilers:
- compiler:
environment: {}
extra_rpaths: []
flags: {}
modules: [intel/18.0.2]
operating_system: centos7
paths:
cc: /opt/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/icc
cxx: /opt/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/icpc
f77: /opt/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/ifort
fc: /opt/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/ifort
spec: in...@18.0.2
target: x86_64
packages.yaml
packages:
all:
compiler: [intel]
providers:
mpi: [intel-mpi]
intel-mpi:
buildable: False
modules:
inte...@2018.2.199: impi/18.0.2
In summary, I'm looking for someone with experience using Spack on Stampede2 to help me. Thanks a lot in advance!
Best,
Bili