building lammps-11Jul14 failed

Dear Lammps users,

I am tried to build the latest version of Lammps (11Jul14) with
Intel compiler, the compilation failed at kokkos module with the
following error messages:

mpiicc -O -DLAMMPS_GZIP -DLAMMPS_JPEG -I../../lib/qmmm -DLMP_USER_OMP -I../../lib/cuda -DLMP_USER_CUDA -I../../lib/colars -I../../lib/awpmd/ivutils/include -I../../lib/awpmd/systems/interact -I../../lib/atc -I../../src -I../../lib/reax -../../lib/poems -DLMP_MPIIO -I../../lib/meam -I../../lib/kokkos/core/src -I../../lib/kokkos/containers/src -DLMP_KOKKOS -DMPICH_SKIP_MPICXX -DFFT_FFTW -I/usr/local/cuda/include -DUNIX -DFFT_CUFFT -DCUDA_PRECISION=1 -DX_PRECISION=2 -D_PRECISION=2 -DCUDA_ARCH=20 -I/usr/local/include/voro++ -I../../lib/kokkos/core/src -I../../lib/kokkos/containers/rc -I../ -DDEVICE=1 -DKOKKOS_HAVE_OPENMP -fopenmp -I/usr/local/KIM/KIM_API -c ../atom.cpp
In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(113): error: invalid combination of type specifiers
  typedef double F_FLOAT;
                 ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(114): error: invalid redeclaration of type name "float2" (declared at line 46)
  typedef double2 F_FLOAT2;
                  ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(115): error: invalid redeclaration of type name "float4" (declared at line 52)
  typedef double4 F_FLOAT4;
                  ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(168): error: invalid combination of type specifiers
  typedef double X_FLOAT;
                 ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(169): error: invalid redeclaration of type name "X_FLOAT2" (declared at line 212 of "../../lib/cuda/cua_precision.h")
  typedef double2 X_FLOAT2;
                  ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(170): error: invalid redeclaration of type name "X_FLOAT4" (declared at line 221 of "../../lib/cuda/cua_precision.h")
  typedef double4 X_FLOAT4;
                  ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(182): error: invalid combination of type specifiers
  typedef double V_FLOAT;
                 ^

In file included from ../atom_vec_kokkos.h(18),
                 from ../atom_vec_atomic_kokkos.h(23),
                 from ../style_atom.h(5),
                 from ../atom.cpp(21):
../kokkos_type.h(184): error: invalid redeclaration of type name "V_FLOAT4" (declared at line 255 of "../../lib/cuda/cua_precision.h")
  typedef double4 V_FLOAT4;
                  ^

compilation aborted for ../atom.cpp (code 2)
make[1]: *** [atom.o] Error 2
make[1]: Leaving directory `/usr/local/lammps-11Jul14/src/Obj_linux'
make: *** [linux] Error 2

Any suggestion?

Regards

Jyh-Shyong Ho, Ph.D.
Research Scientist
National Center for High Performance Computing
Hsinchu, Taiwan, ROC

I don’t think you can have Kokkos and user-cuda installed at the same time. Unless you want to do Kokkos development, don’t install it.