LAMMPS Build - pppm_cuda.cpp error

Hello,

I get the following messages when I try to build LAMMPS.

pppm_cuda.cpp(941): error: class “LAMMPS_NS::FFT3dCuda” has no member “set_cudata”
fft1c->set_cudata(cu_work2->dev_data(),cu_work1->dev_data());
^

pppm_cuda.cpp(942): error: class “LAMMPS_NS::FFT3dCuda” has no member “set_cudata”
fft2c->set_cudata(cu_work2->dev_data(),cu_work3->dev_data());
^

compilation aborted for pppm_cuda.cpp (code 2)

Please let me know how to fix the problem. I’m using the most recent branch from the repository.

  • Mo Zhang

Hi

this looks like you have some incompatible settings for what FFT libraries to use. Can you post your lammps/lib/cuda/Makefile.lammps and your MAKE/Makefile.WHATEVERYOUAREUSING? The former should contain "-DFFT_CUFFT" and the latter should have a "-DFFT_FFTW" or "-DFFT_FFTW3". I did not test with other choices for fft libraries.

Christian

-------- Original-Nachricht --------

Hello,

I used the flags you mentioned. I now get,

pppm_cuda.h(101): warning #1125: function “LAMMPS_NS::PPPMOld::poisson()” is hidden by “LAMMPS_NS::PPPMCuda::poisson” – virtual function override intended?
void poisson(int, int);

pppm_cuda.cpp(1301): error: name followed by “::” must be a class or namespace name
PPPM::poisson(eflag,vflag);

  • Mo Zhang