Hi,
Two gpus are installed on the machine: 1) M2000 with sm_50 and 2) C2075 with sm_21
So, I edited lib/gpu/Makefile.linux and set
CUDA_ARCH=-arch=sm_21
in order to create binary that is compatible with both GPUs.
The commands I ran after that are
cd lib/gpu
make -f Makefile.linux
cd …/…/src
make yes-gpu
make mpi
Now, I am able to run on cpu, but I cannot run on neither m2000 nor c2075. The commands I use are
CPU => PASS
mpirun -np 4 /opt/lammps-11Aug17/src/lmp_mpi -in in.sample
M2000 => FAIL
mpirun -np 4 ~/lammps-11Aug17/src/lmp_mpi -sf gpu -pk gpu 0 -in in.sample
C2075 => FAIL
mpirun -np 4 ~/lammps-11Aug17/src/lmp_mpi -sf gpu -pk gpu 1 -in in.sample
The error I get is
ERROR: GPU library not compiled for this accelerator (…/gpu_extra.h:40)
Last command: package gpu 1
Any idea?
Regards,
Mahmood