我正在尝试在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
。
该错误消息表明链接器无法找到构建所需的MPI库。通常,make serial
在没有MPI支持的情况下构建lammps。来自make help
(在lammps/src
目录中调用):
# serial = RedHat Linux box, g++4, no MPI, no FFTs
但是,Lammps GPU封装需要MPI。从而,
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)