trouble making lammps (serial)

Hello everyone,

I have been trying to build LAMMPS with a small modification. The file 'pair_coul_dsf.cpp' (without quotes) in the /src folder has had two lines changed to use the error function instead of an approximation. When I follow the instructions here: http://www.uvm.edu/~smanchu/lammps_installation.html, I get a bunch of errors and it fails when I try 'make serial'. Below is the relevant output.

In file included from ../fft3d_cuda.cpp:45:
../fft3d_cuda.h:51:26: error: cuda_runtime.h: No such file or directory
../fft3d_cuda.h:52:19: error: cufft.h: No such file or directory
In file included from ../fft3d_cuda.cpp:45:
../fft3d_cuda.h:57: error: ‘cufftComplex’ does not name a type
../fft3d_cuda.h:58: error: ‘cufftReal’ does not name a type
../fft3d_cuda.h:122: error: ISO C++ forbids declaration of ‘cufftData’ with no type
../fft3d_cuda.h:122: error: expected ‘;’ before ‘*’ token
../fft3d_cuda.h:123: error: ISO C++ forbids declaration of ‘cufftData’ with no type
../fft3d_cuda.h:123: error: expected ‘;’ before ‘*’ token
../fft3d_cuda.h:125: error: ‘cufftHandle’ does not name a type
../fft3d_cuda.h:126: error: ‘cufftHandle’ does not name a type
../fft3d_cuda.h:127: error: ‘cufftHandle’ does not name a type
../fft3d_cuda.h:128: error: ‘cufftHandle’ does not name a type
../fft3d_cuda.cpp: In function ‘void fft_3d_cuda(FFT_DATA*, FFT_DATA*, int, fft_plan_3d*)’:
../fft3d_cuda.cpp:116: error: ‘cufftResult’ was not declared in this scope
../fft3d_cuda.cpp:116: error: expected ‘;’ before ‘retvalc’
../fft3d_cuda.cpp:121: error: ‘struct fft_plan_3d’ has no member named ‘cudata2’
../fft3d_cuda.cpp:121: error: ‘cudaMemcpyHostToDevice’ was not declared in this scope
../fft3d_cuda.cpp:121: error: ‘cudaMemcpy’ was not declared in this scope
../fft3d_cuda.cpp:122: error: ‘struct fft_plan_3d’ has no member named ‘cudata2’
../fft3d_cuda.cpp:122: error: ‘cudaMemcpyHostToDevice’ was not declared in this scope
../fft3d_cuda.cpp:122: error: ‘cudaMemcpy’ was not declared in this scope
../fft3d_cuda.cpp:123: error: ‘struct fft_plan_3d’ has no member named ‘cudata2’
../fft3d_cuda.cpp:123: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:128: error: ‘retvalc’ was not declared in this scope
../fft3d_cuda.cpp:128: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:128: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:128: error: ‘struct fft_plan_3d’ has no member named ‘cudata2’
../fft3d_cuda.cpp:128: error: ‘CUFFT_FORWARD’ was not declared in this scope
../fft3d_cuda.cpp:128: error: ‘cufftExecC2C’ was not declared in this scope
../fft3d_cuda.cpp:132: error: ‘retvalc’ was not declared in this scope
../fft3d_cuda.cpp:132: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:132: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:132: error: ‘struct fft_plan_3d’ has no member named ‘cudata2’
../fft3d_cuda.cpp:132: error: ‘CUFFT_INVERSE’ was not declared in this scope
../fft3d_cuda.cpp:132: error: ‘cufftExecC2C’ was not declared in this scope
../fft3d_cuda.cpp:134: error: ‘retvalc’ was not declared in this scope
../fft3d_cuda.cpp:134: error: ‘CUFFT_SUCCESS’ was not declared in this scope
../fft3d_cuda.cpp: In function ‘fft_plan_3d* fft_3d_create_plan_cuda(int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int*, bool)’:
../fft3d_cuda.cpp:416: error: ‘cufftResult’ was not declared in this scope
../fft3d_cuda.cpp:416: error: expected ‘;’ before ‘retvalc’
../fft3d_cuda.cpp:439: error: ‘retvalc’ was not declared in this scope
../fft3d_cuda.cpp:439: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:439: error: ‘CUFFT_C2C’ was not declared in this scope
../fft3d_cuda.cpp:439: error: ‘cufftPlan3d’ was not declared in this scope
../fft3d_cuda.cpp:440: error: ‘CUFFT_SUCCESS’ was not declared in this scope
../fft3d_cuda.cpp: In function ‘void fft_3d_destroy_plan_cuda(fft_plan_3d*)’:
../fft3d_cuda.cpp:479: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:479: error: ‘cufftDestroy’ was not declared in this scope
../fft3d_cuda.cpp: In function ‘void fft_1d_only_cuda(FFT_DATA*, int, int, fft_plan_3d*)’:
../fft3d_cuda.cpp:591: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:591: error: ‘cudaMemcpyHostToDevice’ was not declared in this scope
../fft3d_cuda.cpp:591: error: ‘cudaMemcpy’ was not declared in this scope
../fft3d_cuda.cpp:593: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:593: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:593: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:593: error: ‘CUFFT_FORWARD’ was not declared in this scope
../fft3d_cuda.cpp:593: error: ‘cufftExecC2C’ was not declared in this scope
../fft3d_cuda.cpp:598: error: ‘struct fft_plan_3d’ has no member named ‘plan_3d’
../fft3d_cuda.cpp:598: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:598: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:598: error: ‘CUFFT_FORWARD’ was not declared in this scope
../fft3d_cuda.cpp:598: error: ‘cufftExecC2C’ was not declared in this scope
../fft3d_cuda.cpp:603: error: ‘struct fft_plan_3d’ has no member named ‘cudata’
../fft3d_cuda.cpp:603: error: ‘cudaMemcpyDeviceToHost’ was not declared in this scope
make[1]: *** [fft3d_cuda.o] Error 1
make[1]: Leaving directory `/scratch/conte/p/parks23/lammps-11Sep14/src/Obj_serial'
make: *** [serial] Error 2

Does anyone know the source of this problem?

Regards,
Nathan

Try compile again without the USER-CUDA package (by “make no-user-cuda”). Also make sure you can compile an original version of LAMMPS without any of your modifications.

Ray