Skip to content

Commit

Permalink
Re-enable Kokkos OpenMP and Serial code paths for SNAP
Browse files Browse the repository at this point in the history
  • Loading branch information
stanmoore1 committed Dec 16, 2024
1 parent e3b991c commit 8daad30
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/KOKKOS/pair_snap_kokkos_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ PairSNAPKokkos<DeviceType, real_type, vector_length>::~PairSNAPKokkos()
template<class DeviceType, typename real_type, int vector_length>
void PairSNAPKokkos<DeviceType, real_type, vector_length>::init_style()
{
if constexpr (host_flag) {
if (lmp->kokkos->nthreads > 1)
error->all(FLERR,"Pair style snap/kk can currently only run on a single "
"CPU thread");

PairSNAP::init_style();
return;
}

if (force->newton_pair == 0)
error->all(FLERR,"Pair style SNAP requires newton pair on");

Expand Down Expand Up @@ -131,13 +122,6 @@ struct FindMaxNumNeighs {
template<class DeviceType, typename real_type, int vector_length>
void PairSNAPKokkos<DeviceType, real_type, vector_length>::compute(int eflag_in, int vflag_in)
{
if constexpr (host_flag) {
atomKK->sync(Host,X_MASK|F_MASK|TYPE_MASK);
PairSNAP::compute(eflag_in,vflag_in);
atomKK->modified(Host,F_MASK);
return;
}

eflag = eflag_in;
vflag = vflag_in;

Expand Down

0 comments on commit 8daad30

Please sign in to comment.