slurm 系统,cnvnator 报错: ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
原因:gcc 版本不兼容
解决方法::在cnv 脚本前,添加更换gcc命令行
查看当前加载的模块
module list
Currently Loaded Modulefiles:
1) compiler/devtoolset/7.3.1 2) compiler/rocm/3.3 3) compiler/intel/2017.5.239 4) mpi/intelmpi/2018.4.274
查看可用的模块
module avail
----------------------------------------------------------------- /public/software/modules ------------------------------------------------------------------
anaconda3/5.2.0 apps/pwdft-dcu/hpcx-v2.4.1-gcc-7.3.1 compiler/test/gcc/12.2.0
apps/abacus/2.1.0-impi-2017 apps/python/2.7.10 compiler/test/gcc/9.3.0
apps/abinit/intelmpi/8.6.1 apps/python/2.7.12 compiler/test/intel/2017.5.239
apps/arps/intelmpi/5.3.4 apps/python/3.7.11 compiler/test/intel/2018.5.274
清除当前加载的模块
module purge
查看清除效果
module list
No Modulefiles Currently Loaded.
加载适合的gcc 版本
module load compiler/gcc/12.2.0
检查加载效果
module list
Currently Loaded Modulefiles:
1) compiler/gcc/12.2.0
### gcc版本更换成功,cnvnator正常运行