GPU installation

Dear users,

I am trying to install GPU version with 15MAY15.

I used CUDA_ARCH = -arch=sm_21 and getting following error

ERROR: GPU library not compiled for this accelerator (…/gpu_extra.h:40)
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 124.

Can anyone help me, Is CUDA_ARCH = -arch=sm_21 should be changed or anything
else going wrong?

GPU information

Dear users,

I am trying to install GPU version with 15MAY15.

I used CUDA_ARCH = -arch=sm_21 and getting following error

ERROR: GPU library not compiled for this accelerator (…/gpu_extra.h:40)
Cuda driver error 4 in call at file ‘geryon/nvd_device.h’ in line 124.

Can anyone help me, Is CUDA_ARCH = -arch=sm_21 should be changed or anything
else going wrong?

There is not enough information here to give specific advice. Most of what could be said is documented in the manual and in the README files. You find out the architecture from nvidia’s tools and you can also use the nvc_get_devices tool.

Hi Karthik,

according to the GPU information you seem to have a Tesla K40m, which has compute capability of 3.5. Can you try change CUDA_ARCH to -arch=sm_35, rebuild libgpu.a from clean, and then build LAMMPS with the new libgpu.a?

-Trung