LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] problems of compiling with multiple gpu types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] problems of compiling with multiple gpu types

From: Chiang Yi <ckpccl1@...24...>
Date: Mon, 10 Jul 2017 17:08:32 +0800

Dear lammps-users:


There are two different gpu types in our super computer:


Tesla P100-PCIE-16GB (Compute capability: 6)

Tesla K40c (Compute capability: 3.5)


        Device 0: “Tesla P100-PCIE-16GB”

       Device 1: “Tesla P100-PCIE-16GB”

        Device 2: “Tesla K40c”

        Device 3: “Tesla K40c”

        Device 4: “Tesla P100-PCIE-16GB”

        Device 5: “Tesla P100-PCIE-16GB”

        Device 6: “Tesla K40c”

        Device 7: “Tesla K40c”

        Device 8: “Tesla K40c”


First time I chose CUDA_arch = sm_60. I found that compiling didn’t work with gpu 3 (Tesla K40c), but It’s OK with gpu 0 (Tesla P100).

However, If I changed CUDA_arch = sm_35, It couldn’t work with both P100 and K40c. The error messages are like this:


$ ./lmp_gpu -sf gpu -pk gpu 1 gpuID 3 3 -in in.lj

LAMMPS (31 Mar 2017)

ERROR: GPU library not compiled for this accelerator (../gpu_extra.h:40)

Last command: package gpu 1

Cuda driver error 4 in call at file 'geryon/nvd_device.h' in line 124.


So, I would like to ask:

  1. Does lammps not support different gpu types in one computer?
  2. Is it possible to pass the gpu 0, just compile with gpu 2?
  3. Or If there is any possible mistake I didn’t notice?


Thank you.



Chiang, Yi