用于GPU错误的LAMMPS - / usr / bin / ld:使用make命令时找不到-lmpi_stubs

问题描述 投票:0回答:1

我正在尝试在gpu中安装LAMMPS。按照http://lammps.sandia.gov/doc/accelerate_gpu.html中给出的步骤后,我完成了步骤(a)并获得了文件 - libgpu.a和Makefile.lammps。

当我尝试继续第二步(make yes-make后制作序列号)时,我得到一个错误 - /usr/bin/ld: cannot find -lmpi_stubs

linux ubuntu gpu lammps
1个回答
0
投票

该错误消息表明链接器无法找到构建所需的MPI库。通常,make serial在没有MPI支持的情况下构建lammps。来自make help(在lammps/src目录中调用):

# serial = RedHat Linux box, g++4, no MPI, no FFTs

但是,Lammps GPU封装需要MPI。从而,

  1. 确保安装了必要的MPI库。
  2. 使用以下命令之一构建lammps(有关更多选项,请参阅make help): make g++(编译:g ++ 4,MPI实现:MPICH2) make g++3(编译:g ++ 3,MPI实现:MPICH2) make linux(编译:icc,MPI实现:MPICH2) make openmpi(编译:mpic ++,MPI实现:OpenMPI-1.1)
© www.soinside.com 2019 - 2024. All rights reserved.