Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment