amber16在linux安装教程,在linux系统下怎么安装amber tools20呢?

Amber20和以前版本安装有很大差别,且自动生成安装目录amber20,安装文件采用cmake_run文件安装,每部安装要设置其中的参数,这两天刚装好,采用官方提供的benchmark验证成功:

tar xvf Amber20.tar.bz2

tar xvf AmberTools20.tar.bz2

export AMBERHOME=/home/user/amber2020/amber20_src

一、串行安装

cd amber20_src/build

# optional: edit the run_cmake script to make any needed changes;

# most users should not need to do this

./run_cmake

# Next, build and install the code:

make install

source /home/xzhfood/amber2020/amber20/amber.sh

cd $AMBERHOME

make test.serial

二、并行安装

#compile the parallel (MPI)

cd $AMBERHOME/AmberTools/src

./configure_mpich gnu

You must download MPICH and extract it here

(for example, type 'tar xvfz mpich-3.3.2.tar.gz')

tar xvf mpich-3.3.tar.gz

cd /home/user/amber2020/amber20_src/build

# edit the run_cmake script to set -DMPI=TRUE

./run_cmake

make install

source /home/user/amber2020/amber20/amber.sh

# To run tests: Note the value below may depend on your MPI implementation

export DO_PARALLEL="mpirun -np 28"

cd $AMBERHOME

source amber.sh

make test.parallel

# Note, some tests, like the replica exchange tests, require more

# than 2 threads, so we suggest that you test with either 4 or 8

# threads as well

export DO_PARALLEL="mpirun -np 4"

make test.parallel

三、单GPU安装

Building and Testing the GPU code

export CUDA_HOME=/usr/local/cuda-9.2

cd build

# edit the run_cmake script to set -DCUDA=TRUE (you should also be using the GNU compilers here)

./run_cmake

make install

cd $AMBERHOME

export CUDA_VISIBLE_DEVICES=0

make test.cuda.serial

(choose the GPU id you wish to test)

四、多GPU安装

Building pmemd.cuda.MPI

cd build

# edit the run_cmake script to have -DMPI=TRUE -DCUDA=TRUE

./run_cmake

make install

cd $AMBERHOME

export DO_PARALLEL="mpirun -np 28" # for bash/sh

make test.cuda.parallel

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值