Compiling problems

Hi,
I've downloaded the 12/10/2011 lammps version.
My pc is formed by:

cpu: intel i7-2600k
gpu: nvidia geforce gtx 560Ti
OS: Ubuntu 11.04

I tried to compile lammps enabling USER-CUDA package, but I had the
follow error:

make -j2 openmpi dbg=1 verbose=1 precision=1 cufft=1 keep=1 arch=20

Error :

pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::deallocate()’:
pppm_cuda.cpp:1238: warning: unused variable ‘end’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::poisson(int, int)’:
pppm_cuda.cpp:1583: warning: unused variable ‘starttime2’
pppm_cuda.cpp:1584: warning: unused variable ‘endtime2’
pppm_cuda.cpp:1586: warning: unused variable ‘nprocs’
pppm_cuda.cpp: At global scope:
pppm_cuda.cpp:1670: warning: unused parameter ‘time1d’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::slabcorr(int)’:
pppm_cuda.cpp:1715: warning: comparison between signed and unsigned
integer expressions
pppm_cuda.cpp:1731: error: ‘PI’ was not declared in this scope
make[1]: *** [pppm_cuda.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
make[1]: uscita dalla directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
make: *** [openmpi] Errore 2
[email protected]:~/CUDA/lammps-12Oct11/src$ make -j2 openmpi dbg=1
verbose=1 precision=1 cufft=1 keep=1 arch=21
make[1]: ingresso nella directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c pppm_cuda.cpp
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c region_intersect.cpp
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pointers.h:25,
                 from region.h:17,
                 from region_intersect.h:23,
                 from region_intersect.cpp:16:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pppm_cuda.cpp:42:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
pppm_cuda.cpp: In constructor
‘LAMMPS_NS::PPPMCuda::PPPMCuda(LAMMPS_NS::LAMMPS*, int, char**)’:
pppm_cuda.cpp:112: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::init()’:
pppm_cuda.cpp:242: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:254: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:255: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:256: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:257: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:258: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::setup()’:
pppm_cuda.cpp:651: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp:629: warning: unused variable ‘i’
pppm_cuda.cpp:629: warning: unused variable ‘j’
pppm_cuda.cpp:629: warning: unused variable ‘k’
pppm_cuda.cpp:629: warning: unused variable ‘l’
pppm_cuda.cpp:629: warning: unused variable ‘m’
pppm_cuda.cpp:629: warning: unused variable ‘n’
pppm_cuda.cpp:743: warning: unused variable ‘sqk’
pppm_cuda.cpp:744: warning: unused variable ‘nx’
pppm_cuda.cpp:744: warning: unused variable ‘ny’
pppm_cuda.cpp:744: warning: unused variable ‘nz’
pppm_cuda.cpp:744: warning: unused variable ‘kper’
pppm_cuda.cpp:744: warning: unused variable ‘lper’
pppm_cuda.cpp:744: warning: unused variable ‘mper’
pppm_cuda.cpp:745: warning: unused variable ‘snx’
pppm_cuda.cpp:745: warning: unused variable ‘sny’
pppm_cuda.cpp:745: warning: unused variable ‘snz’
pppm_cuda.cpp:745: warning: unused variable ‘snx2’
pppm_cuda.cpp:745: warning: unused variable ‘sny2’
pppm_cuda.cpp:745: warning: unused variable ‘snz2’
pppm_cuda.cpp:746: warning: unused variable ‘argx’
pppm_cuda.cpp:746: warning: unused variable ‘argy’
pppm_cuda.cpp:746: warning: unused variable ‘argz’
pppm_cuda.cpp:746: warning: unused variable ‘wx’
pppm_cuda.cpp:746: warning: unused variable ‘wy’
pppm_cuda.cpp:746: warning: unused variable ‘wz’
pppm_cuda.cpp:746: warning: unused variable ‘sx’
pppm_cuda.cpp:746: warning: unused variable ‘sy’
pppm_cuda.cpp:746: warning: unused variable ‘sz’
pppm_cuda.cpp:746: warning: unused variable ‘qx’
pppm_cuda.cpp:746: warning: unused variable ‘qy’
pppm_cuda.cpp:746: warning: unused variable ‘qz’
pppm_cuda.cpp:747: warning: unused variable ‘sum1’
pppm_cuda.cpp:747: warning: unused variable ‘dot1’
pppm_cuda.cpp:747: warning: unused variable ‘dot2’
pppm_cuda.cpp:748: warning: unused variable ‘numerator’
pppm_cuda.cpp:748: warning: unused variable ‘denominator’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::deallocate()’:
pppm_cuda.cpp:1238: warning: unused variable ‘end’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::poisson(int, int)’:
pppm_cuda.cpp:1583: warning: unused variable ‘starttime2’
pppm_cuda.cpp:1584: warning: unused variable ‘endtime2’
pppm_cuda.cpp:1586: warning: unused variable ‘nprocs’
pppm_cuda.cpp: At global scope:
pppm_cuda.cpp:1670: warning: unused parameter ‘time1d’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::slabcorr(int)’:
pppm_cuda.cpp:1715: warning: comparison between signed and unsigned
integer expressions
pppm_cuda.cpp:1731: error: ‘PI’ was not declared in this scope
make[1]: *** [pppm_cuda.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
make[1]: uscita dalla directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
make: *** [openmpi] Errore 2
[email protected]:~/CUDA/lammps-12Oct11/src$ make -j2 openmpi dbg=1
verbose=1 precision=1 cufft=1 keep=1 arch=20
make[1]: ingresso nella directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c pppm_cuda.cpp
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c region_plane.cpp
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pointers.h:25,
                 from region.h:17,
                 from region_plane.h:23,
                 from region_plane.cpp:17:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pppm_cuda.cpp:42:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
pppm_cuda.cpp: In constructor
‘LAMMPS_NS::PPPMCuda::PPPMCuda(LAMMPS_NS::LAMMPS*, int, char**)’:
pppm_cuda.cpp:112: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::init()’:
pppm_cuda.cpp:242: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:254: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:255: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:256: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:257: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:258: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::setup()’:
pppm_cuda.cpp:651: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp:629: warning: unused variable ‘i’
pppm_cuda.cpp:629: warning: unused variable ‘j’
pppm_cuda.cpp:629: warning: unused variable ‘k’
pppm_cuda.cpp:629: warning: unused variable ‘l’
pppm_cuda.cpp:629: warning: unused variable ‘m’
pppm_cuda.cpp:629: warning: unused variable ‘n’
pppm_cuda.cpp:743: warning: unused variable ‘sqk’
pppm_cuda.cpp:744: warning: unused variable ‘nx’
pppm_cuda.cpp:744: warning: unused variable ‘ny’
pppm_cuda.cpp:744: warning: unused variable ‘nz’
pppm_cuda.cpp:744: warning: unused variable ‘kper’
pppm_cuda.cpp:744: warning: unused variable ‘lper’
pppm_cuda.cpp:744: warning: unused variable ‘mper’
pppm_cuda.cpp:745: warning: unused variable ‘snx’
pppm_cuda.cpp:745: warning: unused variable ‘sny’
pppm_cuda.cpp:745: warning: unused variable ‘snz’
pppm_cuda.cpp:745: warning: unused variable ‘snx2’
pppm_cuda.cpp:745: warning: unused variable ‘sny2’
pppm_cuda.cpp:745: warning: unused variable ‘snz2’
pppm_cuda.cpp:746: warning: unused variable ‘argx’
pppm_cuda.cpp:746: warning: unused variable ‘argy’
pppm_cuda.cpp:746: warning: unused variable ‘argz’
pppm_cuda.cpp:746: warning: unused variable ‘wx’
pppm_cuda.cpp:746: warning: unused variable ‘wy’
pppm_cuda.cpp:746: warning: unused variable ‘wz’
pppm_cuda.cpp:746: warning: unused variable ‘sx’
pppm_cuda.cpp:746: warning: unused variable ‘sy’
pppm_cuda.cpp:746: warning: unused variable ‘sz’
pppm_cuda.cpp:746: warning: unused variable ‘qx’
pppm_cuda.cpp:746: warning: unused variable ‘qy’
pppm_cuda.cpp:746: warning: unused variable ‘qz’
pppm_cuda.cpp:747: warning: unused variable ‘sum1’
pppm_cuda.cpp:747: warning: unused variable ‘dot1’
pppm_cuda.cpp:747: warning: unused variable ‘dot2’
pppm_cuda.cpp:748: warning: unused variable ‘numerator’
pppm_cuda.cpp:748: warning: unused variable ‘denominator’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::deallocate()’:
pppm_cuda.cpp:1238: warning: unused variable ‘end’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::poisson(int, int)’:
pppm_cuda.cpp:1583: warning: unused variable ‘starttime2’
pppm_cuda.cpp:1584: warning: unused variable ‘endtime2’
pppm_cuda.cpp:1586: warning: unused variable ‘nprocs’
pppm_cuda.cpp: At global scope:
pppm_cuda.cpp:1670: warning: unused parameter ‘time1d’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::slabcorr(int)’:
pppm_cuda.cpp:1715: warning: comparison between signed and unsigned
integer expressions
pppm_cuda.cpp:1731: error: ‘PI’ was not declared in this scope
make[1]: *** [pppm_cuda.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
make[1]: uscita dalla directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
make: *** [openmpi] Errore 2
[email protected]:~/CUDA/lammps-12Oct11/src$ make -j2 openmpi dbg=1
verbose=1 precision=1 cufft=1 keep=1 arch=20
make[1]: ingresso nella directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c pppm_cuda.cpp
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c region_prism.cpp
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pointers.h:25,
                 from region.h:17,
                 from region_prism.h:23,
                 from region_prism.cpp:21:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pppm_cuda.cpp:42:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
pppm_cuda.cpp: In constructor
‘LAMMPS_NS::PPPMCuda::PPPMCuda(LAMMPS_NS::LAMMPS*, int, char**)’:
pppm_cuda.cpp:112: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::init()’:
pppm_cuda.cpp:242: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:254: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:255: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:256: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:257: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:258: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::setup()’:
pppm_cuda.cpp:651: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp:629: warning: unused variable ‘i’
pppm_cuda.cpp:629: warning: unused variable ‘j’
pppm_cuda.cpp:629: warning: unused variable ‘k’
pppm_cuda.cpp:629: warning: unused variable ‘l’
pppm_cuda.cpp:629: warning: unused variable ‘m’
pppm_cuda.cpp:629: warning: unused variable ‘n’
pppm_cuda.cpp:743: warning: unused variable ‘sqk’
pppm_cuda.cpp:744: warning: unused variable ‘nx’
pppm_cuda.cpp:744: warning: unused variable ‘ny’
pppm_cuda.cpp:744: warning: unused variable ‘nz’
pppm_cuda.cpp:744: warning: unused variable ‘kper’
pppm_cuda.cpp:744: warning: unused variable ‘lper’
pppm_cuda.cpp:744: warning: unused variable ‘mper’
pppm_cuda.cpp:745: warning: unused variable ‘snx’
pppm_cuda.cpp:745: warning: unused variable ‘sny’
pppm_cuda.cpp:745: warning: unused variable ‘snz’
pppm_cuda.cpp:745: warning: unused variable ‘snx2’
pppm_cuda.cpp:745: warning: unused variable ‘sny2’
pppm_cuda.cpp:745: warning: unused variable ‘snz2’
pppm_cuda.cpp:746: warning: unused variable ‘argx’
pppm_cuda.cpp:746: warning: unused variable ‘argy’
pppm_cuda.cpp:746: warning: unused variable ‘argz’
pppm_cuda.cpp:746: warning: unused variable ‘wx’
pppm_cuda.cpp:746: warning: unused variable ‘wy’
pppm_cuda.cpp:746: warning: unused variable ‘wz’
pppm_cuda.cpp:746: warning: unused variable ‘sx’
pppm_cuda.cpp:746: warning: unused variable ‘sy’
pppm_cuda.cpp:746: warning: unused variable ‘sz’
pppm_cuda.cpp:746: warning: unused variable ‘qx’
pppm_cuda.cpp:746: warning: unused variable ‘qy’
pppm_cuda.cpp:746: warning: unused variable ‘qz’
pppm_cuda.cpp:747: warning: unused variable ‘sum1’
pppm_cuda.cpp:747: warning: unused variable ‘dot1’
pppm_cuda.cpp:747: warning: unused variable ‘dot2’
pppm_cuda.cpp:748: warning: unused variable ‘numerator’
pppm_cuda.cpp:748: warning: unused variable ‘denominator’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::deallocate()’:
pppm_cuda.cpp:1238: warning: unused variable ‘end’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::poisson(int, int)’:
pppm_cuda.cpp:1583: warning: unused variable ‘starttime2’
pppm_cuda.cpp:1584: warning: unused variable ‘endtime2’
pppm_cuda.cpp:1586: warning: unused variable ‘nprocs’
pppm_cuda.cpp: At global scope:
pppm_cuda.cpp:1670: warning: unused parameter ‘time1d’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::slabcorr(int)’:
pppm_cuda.cpp:1715: warning: comparison between signed and unsigned
integer expressions
pppm_cuda.cpp:1731: error: ‘PI’ was not declared in this scope
make[1]: *** [pppm_cuda.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
make[1]: uscita dalla directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
make: *** [openmpi] Errore 2
[email protected]:~/CUDA/lammps-12Oct11/src$ make -j2 openmpi dbg=1
verbose=1 precision=1 cufft=1 keep=1 arch=20
make[1]: ingresso nella directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c pppm_cuda.cpp
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -W
-Wno-uninitialized -DLAMMPS_GZIP -I../../lib/cuda -DLMP_USER_CUDA
-DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT
-DCUDA_PRECISION=1 -DCUDA_ARCH=20 -c region_sphere.cpp
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pointers.h:25,
                 from region.h:17,
                 from region_sphere.h:23,
                 from region_sphere.cpp:17:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
In file included from
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/mpicxx.h:288,
                 from /usr/lib/openmpi/include/mpi.h:1886,
                 from pppm_cuda.cpp:42:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘oldcomm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘extra_state’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_in’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:644:
warning: unused parameter ‘attribute_val_out’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘comm_keyval’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘attribute_val’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/comm_inln.h:671:
warning: unused parameter ‘extra_state’
pppm_cuda.cpp: In constructor
‘LAMMPS_NS::PPPMCuda::PPPMCuda(LAMMPS_NS::LAMMPS*, int, char**)’:
pppm_cuda.cpp:112: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::init()’:
pppm_cuda.cpp:242: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:254: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:255: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:256: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:257: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp:258: warning: deprecated conversion from string constant
to ‘char*’
pppm_cuda.cpp: In member function ‘virtual void LAMMPS_NS::PPPMCuda::setup()’:
pppm_cuda.cpp:651: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp:629: warning: unused variable ‘i’
pppm_cuda.cpp:629: warning: unused variable ‘j’
pppm_cuda.cpp:629: warning: unused variable ‘k’
pppm_cuda.cpp:629: warning: unused variable ‘l’
pppm_cuda.cpp:629: warning: unused variable ‘m’
pppm_cuda.cpp:629: warning: unused variable ‘n’
pppm_cuda.cpp:743: warning: unused variable ‘sqk’
pppm_cuda.cpp:744: warning: unused variable ‘nx’
pppm_cuda.cpp:744: warning: unused variable ‘ny’
pppm_cuda.cpp:744: warning: unused variable ‘nz’
pppm_cuda.cpp:744: warning: unused variable ‘kper’
pppm_cuda.cpp:744: warning: unused variable ‘lper’
pppm_cuda.cpp:744: warning: unused variable ‘mper’
pppm_cuda.cpp:745: warning: unused variable ‘snx’
pppm_cuda.cpp:745: warning: unused variable ‘sny’
pppm_cuda.cpp:745: warning: unused variable ‘snz’
pppm_cuda.cpp:745: warning: unused variable ‘snx2’
pppm_cuda.cpp:745: warning: unused variable ‘sny2’
pppm_cuda.cpp:745: warning: unused variable ‘snz2’
pppm_cuda.cpp:746: warning: unused variable ‘argx’
pppm_cuda.cpp:746: warning: unused variable ‘argy’
pppm_cuda.cpp:746: warning: unused variable ‘argz’
pppm_cuda.cpp:746: warning: unused variable ‘wx’
pppm_cuda.cpp:746: warning: unused variable ‘wy’
pppm_cuda.cpp:746: warning: unused variable ‘wz’
pppm_cuda.cpp:746: warning: unused variable ‘sx’
pppm_cuda.cpp:746: warning: unused variable ‘sy’
pppm_cuda.cpp:746: warning: unused variable ‘sz’
pppm_cuda.cpp:746: warning: unused variable ‘qx’
pppm_cuda.cpp:746: warning: unused variable ‘qy’
pppm_cuda.cpp:746: warning: unused variable ‘qz’
pppm_cuda.cpp:747: warning: unused variable ‘sum1’
pppm_cuda.cpp:747: warning: unused variable ‘dot1’
pppm_cuda.cpp:747: warning: unused variable ‘dot2’
pppm_cuda.cpp:748: warning: unused variable ‘numerator’
pppm_cuda.cpp:748: warning: unused variable ‘denominator’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::deallocate()’:
pppm_cuda.cpp:1238: warning: unused variable ‘end’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::poisson(int, int)’:
pppm_cuda.cpp:1583: warning: unused variable ‘starttime2’
pppm_cuda.cpp:1584: warning: unused variable ‘endtime2’
pppm_cuda.cpp:1586: warning: unused variable ‘nprocs’
pppm_cuda.cpp: At global scope:
pppm_cuda.cpp:1670: warning: unused parameter ‘time1d’
pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::slabcorr(int)’:
pppm_cuda.cpp:1715: warning: comparison between signed and unsigned
integer expressions
pppm_cuda.cpp:1731: error: ‘PI’ was not declared in this scope
make[1]: *** [pppm_cuda.o] Errore 1
make[1]: *** Attesa per i processi non terminati....
make[1]: uscita dalla directory
"/home/pierog/CUDA/lammps-12Oct11/src/Obj_openmpi"
make: *** [openmpi] Errore 2

I can resolve this issue only by declaring the variable PI in the
class PPPMCuda in the file pppm_cuda.h :

hi piero,

Hi,
I've downloaded the 12/10/2011 lammps version.
My pc is formed by:

cpu: intel i7-2600k
gpu: nvidia geforce gtx 560Ti
OS: Ubuntu 11.04

I tried to compile lammps enabling USER-CUDA package, but I had the
follow error:

make -j2 openmpi dbg=1 verbose=1 precision=1 cufft=1 keep=1 arch=20

Error :

pppm_cuda.cpp: In member function ‘virtual void
LAMMPS_NS::PPPMCuda::compute(int, int)’:
pppm_cuda.cpp:970: error: ‘PI’ was not declared in this scope

oh. that is my bad. we have started collecting
global constants like those in special header files,
but when files in KSPACE were updated i forgot
that there are derived classes in USER-CUDA.

can you try opening the file pppm_cuda.cpp
go to line 970 and replace PI with MY_PI
and see if it works then?

thanks,
    axel.

there are more of them that need to be changed.
try replacing pppm_cuda.cpp with the one attached,
and let me know if that works for you.

axel.

pppm_cuda.cpp.gz (13.7 KB)