|
本帖最后由 乐平 于 2021-2-19 12:49 编辑
用了 --with-openmpi=install 参数,过程中没有什么报错,但是……
- ==================== generating arch files ====================
- arch files can be found in the /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch subdirectory
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local.ssmp
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local.sdbg
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local.psmp
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local.pdbg
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local_warn.psmp
- Wrote /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/local_coverage.pdbg
- ========================== usage =========================
- Done!
- Now copy:
- cp /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/* to the cp2k/arch/ directory
- To use the installed tools and libraries and cp2k version
- compiled with it you will first need to execute at the prompt:
- source /public2/wanghuan/cp2k-8.1/tools/toolchain/install/setup
- To build CP2K you should change directory:
- cd cp2k/
- make -j 16 ARCH=local VERSION="ssmp sdbg psmp pdbg"
复制代码
发现居然没有 popt 版……
按上述步骤,
cp /public2/wanghuan/cp2k-8.1/tools/toolchain/install/arch/* ../../arch/
source /public2/wanghuan/cp2k-8.1/tools/toolchain/install/setup
然后在编译的时候加上 popt,感觉应该是不可能的……,因为上面 Wrote 那几行里没有 popt 版
make -j 16 ARCH=local VERSION="ssmp popt psmp"
编译过程中会有报错信息:
- 13 | USE dbcsr_types, ONLY: dbcsr_data_obj, &
- | 1
- Fatal Error: Cannot open module file ‘dbcsr_types.mod’ for reading at (1): No such file or directory
- compilation terminated.
- make[4]: *** [dbcsr_blas_operations.o] Error 1
- make[4]: *** Waiting for unfinished jobs....
- /public2/wanghuan/cp2k-8.1/exts/dbcsr/src/tas/dbcsr_tas_types.F:16:7:
- 16 | USE dbcsr_types, ONLY: &
- | 1
- Fatal Error: Cannot open module file ‘dbcsr_types.mod’ for reading at (1): No such file or directory
- compilation terminated.
- make[4]: *** [dbcsr_tas_types.o] Error 1
复制代码
果然,在 exe/local 目录中的结果如下:
cp2k_shell.ssmp cp2k.sopt
cp2k.ssmp
dumpdcd.ssmp
graph.ssmp
grid_miniapp.ssmp
grid_unittest.ssmp
libcp2k_unittest.ssmp
memory_utilities_unittest.ssmp
parallel_rng_types_unittest.ssmp
xyz2dcd.ssmp
没有 popt 版……
|
|