Commit ce579ea4 authored by stamoor's avatar stamoor
Browse files

Adding Kokkos error check

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14588 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 707dee68
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -159,8 +159,8 @@ void KokkosLMP::accelerator(int narg, char **arg)
      else if (strcmp(arg[iarg+1],"n2") == 0) neighflag = N2;
      else if (strcmp(arg[iarg+1],"full/cluster") == 0) neighflag = FULLCLUSTER;
      else error->all(FLERR,"Illegal package kokkos command");
      if (neighflag == HALF && num_threads > 1 || ngpu > 0)
        error->all(FLERR,"Must use Kokkos half/thread or full neighbor list with threads or GPU");
      if (neighflag == HALF && (num_threads > 1 || ngpu > 0))
        error->all(FLERR,"Must use Kokkos half/thread or full neighbor list with threads or GPUs");
      iarg += 2;
    } else if (strcmp(arg[iarg],"binsize") == 0) {
      if (iarg+2 > narg) error->all(FLERR,"Illegal package kokkos command");
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ E: Kokkos has been compiled for CUDA but no GPUs are requested

One or more GPUs must be used when Kokkos is compiled for CUDA.

E: Must use Kokkos half/thread or full neighbor list with threads or GPU
E: Must use Kokkos half/thread or full neighbor list with threads or GPUs

Using Kokkos half neighbor list with threading is not allowed.