Commit c6f5640d authored by Stan Moore's avatar Stan Moore
Browse files

Simplify #ifdef

parent ed566bf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ KokkosLMP::KokkosLMP(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)

    } else if (strcmp(arg[iarg],"g") == 0 ||
               strcmp(arg[iarg],"gpus") == 0) {
#if !defined(KOKKOS_ENABLE_CUDA) && !defined(KOKKOS_ENABLE_HIP)
#ifndef LMP_KOKKOS_GPU
      error->all(FLERR,"GPUs are requested but Kokkos has not been compiled for CUDA or HIP");
#endif
      if (iarg+2 > narg) error->all(FLERR,"Invalid Kokkos command-line args");