|
请问下王老师,我之前在本地和singularity上成功编译了CP2K,现在想试试docker,遇到点问题。我在toolchain目录下运行"docker build cp2k/toolchain ."后输出以下内容:Done!
Now copy:
cp /opt/cp2k-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 /opt/cp2k-toolchain/install/setup
To build CP2K you should change directory:
cd cp2k/
make -j 48 ARCH=local VERSION="ssmp sdbg psmp pdbg"
arch files for GPU enabled CUDA versions are named "local_cuda.*"
arch files for coverage versions are named "local_coverage.*"
Note that these pre-built arch files are for the GNU compiler, users have to adapt them for other compilers.
It is possible to use the provided CP2K arch files as guidance.
Removing intermediate container a79becc429fb
---> ba5e84dea122
Successfully built ba5e84dea122
Successfully tagged cp2k/toolchain:latest
按照提示应该是还要编译CP2K本体吧?我尝试docker container run -it cp2k/toolchain bash进入容器后,发现无法按照以上提示进行make编译操作,因为会报错。查看后发现相对于源代码包里的完整文件,容器内少了很多文件,难道是要把完整的源代码文件复制到容器里进行编译?还是需要docker其他的Dockerfile呢(我看到CP2K源代码包里有很多其他的Dockerfile)?麻烦老师给个思路,谢谢~
|
|