|
|
本帖最后由 Hanio 于 2022-5-15 22:08 编辑
官方给的docker方式也挺适合初学者上手自用的~The only prerequisite is to install Docker.
在单人服务器上用的话,docker感觉还是挺省事的;用在超算或者集群上的话,可能还是singularity更方便一些。
官方目前提供的镜像只有psmp版本的镜像,测试了一下,还是OK的;如果不想根据dockerfile自己build独家镜像的话,直接用dockerhub上的cp2k/cp2k镜像就OK。
(由于众所周知的原因,从dockerhub需要一些科学精神才能够流畅使用;有些科学软件可能无法代理shell的流量,目前来说比较稳妥的办法是架一个软路由来进行透明代理。
下面是test的结果。
- $ docker run --rm -it --shm-size=1g cp2k/cp2k /bin/bash
- ## 因为只运行一次,所以这里在官方的基础上加了--rm参数
- # cd /opt/cp2k
- ## 进入容器内cp2k的安装目录
- # make -j 64 ARCH=psmp VERSION=psmp test
复制代码- ----------------------------- Settings ---------------------------------
- MPI ranks: 2
- OpenMP threads: 2
- GPU devices: 0
- Workers: 32
- Timeout [s]: 400
- Work base dir: /opt/cp2k/regtesting/TEST-local-psmp-2022-05-15_12-43-00
- MPI exec: ['mpiexec']
- Keepalive: False
- Debug: False
- ARCH: local
- VERSION: psmp
- Flags: omp,libint,fftw3,libxc,pexsi,elpa,parallel,mpi3,scalapack,cosma,quip,smm_dnn,smm,xsmm,plumed2,spglib,sirius,libvori,libbqb
- ------------------------------------------------------------------------
- ------------------------------- Summary --------------------------------
- Number of FAILED tests 0
- Number of WRONG tests 0
- Number of CORRECT tests 3694
- Total number of tests 3694
- Summary: correct: 3694 / 3694; 8min
- Status: OK
- *************************** Testing ended ******************************
复制代码
|
|