寻找缺失模块的 Shell 脚本

寻找缺失模块的 Shell 脚本

我想在计算集群上运行 shell 脚本,但收到错误,因为在某些时候它正在寻找自几个月前集群重大更新以来不存在的模块。该模块未加载到我的脚本中,因此我的脚本不是问题的直接原因。一种假设是 lmod 缓存已过时,但我不知道该缓存在哪里。或者源文件中加载了相关模块“intel/2018a”。

以下是错误的完整消息:


> # User specific environment and startup programs

> PATH=$PATH:$HOME/.local/bin:$HOME/bin
> + PATH=/node/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/cluster/bin:/cluster/home/sbarthelemy/.local/bin:/cluster/home/sbarthelemy/bin:/cluster/home/sbarthelemy/.local/bin:/cluster/home/sbarthelemy/bin

> export PATH
> + export PATH
> # NIRD settings 
> if [ `uname -n | head -3c` == 'tos' ]
> then
>  # intel compiler
>  source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh -arch intel64 -platform linux

>  # NCL 
>  export NCARG_ROOT=/opt/ncl64
>  export PATH=/opt/ncl64/bin/:${PATH}
> fi
> ++ uname -n
> ++ head -3c
> + '[' log == tos ']'

> module --force purge
> + module --force purge
> + '[' -z '' ']'
> + case "$-" in
> + __lmod_sh_dbg=vx
> + '[' -n vx ']'
> + set +vx
> Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output
> Shell debugging restarted
> + unset __lmod_sh_dbg
> + return 0
> module load StdEnv
> + module load StdEnv
> + '[' -z '' ']'
> + case "$-" in
> + __lmod_sh_dbg=vx
> + '[' -n vx ']'
> + set +vx
> Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output
> Shell debugging restarted
> + unset __lmod_sh_dbg
> + return 0
> module load intel/2018a
> + module load intel/2018a
> + '[' -z '' ']'
> + case "$-" in
> + __lmod_sh_dbg=vx
> + '[' -n vx ']'
> + set +vx
> Shell debugging temporarily silenced: export LMOD_SH_DBG_ON=1 for Lmod's output
Lmod has detected the following error:  The following module(s) are unknown: "intel/2018a"

> Please check the spelling or version number. Also try "module spider ..."
> It is also possible your cache file is out-of-date; it may help to try:
>   $ module --ignore_cache load "intel/2018a"

相关内容