GROMACS-2023.2 安装(GPU加速)

预装:

1,cmake3.25.2安装,路径加入到bashrc

2,gcc版本9.3,路径加入到bashrc

3,fftw版本3.3.10

4,Openmpi4.1.1 路径加入到bashrc

5,cuda12.1 路径加入到bashrc(bin、lib、include都要)

(注意bashrc路径要加入在最后一行,否则不生效,天知道什么bug)

gromacs下载及安装:

​
wget https://ftp.gromacs.org/gromacs/gromacs-2023.2.tar.gz
tar xfz gromacs-2023.2.tar.gz
cd gromacs-2023.2
mkdir build
cd build
​cmake .. -DCMAKE_INSTALL_PREFIX=/xx/xx/gromacs-2023 -DGMX_BUILD_OWN_FFTW=ON -DGMX_GPU=CUDA  -DGMX_MPI=ON -DCMAKE_C_COMPILER=/path/of/openmpi411/bin/mpicc -DCMAKE_CXX_COMPILER=/path/of/openmpi411/bin/mpic++
make
make install -j8
source /xx/xx/gromacs-2023/bin/GMXRC
gmx --version

cmake失败基本需要删掉build重新cmake。

最后输出结果:

(base) [root@lignin ~]# gmx --version
                         :-) GROMACS - gmx, 2023.2 (-:

Executable:   /opt/gromacs-2023/bin/gmx
Data prefix:  /opt/gromacs-2023
Working dir:  /root
Command line:
  gmx --version

GROMACS version:    2023.2
Precision:          mixed
Memory model:       64 bit
MPI library:        thread_mpi
OpenMP support:     enabled (GMX_OPENMP_MAX_THREADS = 128)
GPU support:        CUDA
NB cluster size:    8
SIMD instructions:  AVX_512
CPU FFT library:    fftw-3.3.8-sse2-avx-avx2-avx2_128-avx512
GPU FFT library:    cuFFT
Multi-GPU FFT:      none
RDTSCP usage:       enabled
TNG support:        enabled
Hwloc support:      disabled
Tracing support:    disabled
C compiler:         /opt/openmpi411/bin/mpicc GNU 9.3.0
C compiler flags:   -fexcess-precision=fast -funroll-all-loops -mavx512f -mfma -mavx512vl -mavx512dq -mavx512bw -Wno-missing-field-initializers -O3 -DNDEBUG
C++ compiler:       /opt/openmpi411/bin/mpic++ GNU 9.3.0
C++ compiler flags: -fexcess-precision=fast -funroll-all-loops -mavx512f -mfma -mavx512vl -mavx512dq -mavx512bw -Wno-missing-field-initializers -Wno-cast-function-type-strict -fopenmp -O3 -DNDEBUG
BLAS library:
LAPACK library:
CUDA compiler:      /usr/local/cuda-12.1/bin/nvcc nvcc: NVIDIA (R) Cuda compiler driver;Copyright (c) 2005-2023 NVIDIA Corporation;Built on Mon_Apr__3_17:16:06_PDT_2023;Cuda compilation tools, release 12.1, V12.1.105;Build cuda_12.1.r12.1/compiler.32688072_0
CUDA compiler flags:-std=c++17;--generate-code=arch=compute_50,code=sm_50;--generate-code=arch=compute_52,code=sm_52;--generate-code=arch=compute_60,code=sm_60;--generate-code=arch=compute_61,code=sm_61;--generate-code=arch=compute_70,code=sm_70;--generate-code=arch=compute_75,code=sm_75;--generate-code=arch=compute_80,code=sm_80;--generate-code=arch=compute_86,code=sm_86;--generate-code=arch=compute_89,code=sm_89;--generate-code=arch=compute_90,code=sm_90;-Wno-deprecated-gpu-targets;--generate-code=arch=compute_53,code=sm_53;--generate-code=arch=compute_80,code=sm_80;-use_fast_math;-Xptxas;-warn-double-usage;-Xptxas;-Werror;;-fexcess-precision=fast -funroll-all-loops -mavx512f -mfma -mavx512vl -mavx512dq -mavx512bw -Wno-missing-field-initializers -Wno-cast-function-type-strict -fopenmp -O3 -DNDEBUG
CUDA driver:        12.10
CUDA runtime:       12.10

踩过的坑:

报错1:standard error: 'nvcc fatal : Unsupported NVHPC compiler found. nvc++ is the only NVHPC compiler that is supported.

-- /opt/nvidia/nvhpc-23.3/Linux_x86_64/23.1/cuda/11.8/bin/nvcc standard output: ''
-- /opt/nvidia/nvhpc-23.3/Linux_x86_64/23.1/cuda/11.8/bin/nvcc standard error:  'nvcc fatal   : Unsupported NVHPC compiler found. nvc++ is the only NVHPC compiler that is supported.
'
CMake Error at cmake/gmxManageNvccConfig.cmake:105 (message):
  NVCC/C++ compiler combination does not seem to be supported.  CUDA
  frequently does not support the latest versions of the host compiler, so
  you might want to try an earlier C++ compiler version and make sure your
  CUDA compiler and driver are as recent as possible.  Set the GMX_NVCC_WORKS
  CMake cache variable to bypass this check if you know what you are doing.
Call Stack (most recent call first):
  cmake/gmxManageCuda.cmake:105 (include)
  CMakeLists.txt:649 (include)

解决办法:指定openmpi4.1以上的编译器mpicc,mpic++

  • 4
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
gromacs中文教程.pdf》是一本关于GROMACS分子动力学模拟软件的中文教程。GROMACS是一款用于模拟生物大分子系统的计算软件,它可以模拟分子的相互作用力、分子的结构和动力学等。该教程的目的是帮助读者了解GROMACS的基本原理、使用方法和模拟流程。 教程首先介绍了GROMACS的背景和应用领域,包括蛋白质、核酸和脂质等生物大分子的模拟。然后,教程详细介绍了GROMACS的安装过程和配置文件的设置。接着,教程介绍了GROMACS的输入文件格式,包括力场文件、分子拓扑文件和仿真参数文件等。 在教程的后半部分,教程详细介绍了GROMACS的模拟流程和常用命令,包括系统准备、能量最小化、平衡和长时间模拟等步骤。教程还包括了一些实例,帮助读者了解如何使用GROMACS进行不同类型的模拟。 《gromacs中文教程.pdf》对于想要学习和使用GROMACS的科研工作者和学生来说是一本非常有价值的教程。通过该教程,读者可以了解到GROMACS的基本原理和使用方法,掌握GROMACS的模拟流程和常用命令,从而能够进行生物大分子系统的模拟研究。同时,这本教程的中文版也方便了中文用户的学习和使用。 总之,通过《gromacs中文教程.pdf》这本中文教程,读者可以系统地学习和掌握GROMACS的基本知识和使用方法,进一步提高在生物大分子系统模拟研究中的能力和水平。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值