diff --git a/src/KOKKOS/kokkos.cpp b/src/KOKKOS/kokkos.cpp index 3153e9a752..67202612a4 100644 --- a/src/KOKKOS/kokkos.cpp +++ b/src/KOKKOS/kokkos.cpp @@ -266,7 +266,7 @@ KokkosLMP::KokkosLMP(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp) #if defined(MPICH) && defined(MVAPICH2_VERSION) char* str; gpu_aware_flag = 0; - if ((str = getenv("MV2_ENABLE_CUDA"))) + if ((str = getenv("MV2_USE_CUDA"))) if ((strcmp(str,"1") == 0)) gpu_aware_flag = 1;