Hi there,
I’m trying to use CUDA 10.2 with LAMMPS for GPU accelerated computing. But when I submit a job I got following error:
LAMMPS (7 Aug 2019)
ERROR: Unable to initialize accelerator for use (…/gpu_extra.h:45)
Last command: package gpu 1
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 135.
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 135.
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 135.
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 135.
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 135.
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[40980,1],3]
Exit code: 1
I installed NVIDIA Driver first, the driver version is 440.44. Then I installed CUDA 10.2. Since the driver has already been installed so I did not install the driver implemented in the installation program of CUDA, which I think is 440.32 or something, different from the version I installed.
After that, I compiled LAMMPS-7Aug19(a recent stable release) with the installed CUDA 10.2 and the compilation was successful. I can run LAMMPS without using GPU but when I use GPU, I got the error above. OpenMPI used here is 4.0.2.
I’ve tried to run this with Nsights Compute 2019.4 but I got the same error.
Should I tried an older version of LAMMPS or install the driver implemented in CUDA installation program?
Following is my GPU and OS info:
OS: ubuntu 18.04
GPU: ASUS RTX 2080 Ti Turbo