Lammps KOKKOS Compile Error

You are using the default makefile /src/MAKE/Options/Makefile.kokkos_cuda, correct? Can you try setting “omp=no” in the Makefile (line 23) and trying again?

Stan

Just to make sure I was at a completely standard state I reverted everything. I had to add -Xcompiler to KOKKOS_LINK for avx and openmp, but then I was able to build with these:

OMP=no PTHREADS=yes CUDA=yes CUDA_PATH=/apps/cuda/7.0.28 make -j 24 kokkos_cuda
OMP=yes PTHREADS=no CUDA=yes CUDA_PATH=/apps/cuda/7.0.28 make -j 24 kokkos_cuda
OMP=yes PTHREADS=no CUDA=yes CUDA_PATH=/apps/cuda/7.0.28 AVX=yes make -j 24 kokkos_cuda

But these fail at the spot I have previously reported:

OMP=yes PTHREADS=no CUDA=yes CUDA_PATH=/apps/cuda/7.0.28 CUDA_UVM=yes make -j 24 kokkos_cuda
OMP=yes PTHREADS=no CUDA=yes CUDA_PATH=/apps/cuda/7.0.28 CUDA_UVM=yes AVX=yes make -j 24 kokkos_cuda

It seems there is some issue with CUDA_UVM — I don’t even recall setting this option but it would seem I was.

Thanks to everyone for your help.