diff --git a/src/neigh_request.cpp b/src/neigh_request.cpp index 99f7be82c7..82c9f0b267 100644 --- a/src/neigh_request.cpp +++ b/src/neigh_request.cpp @@ -50,6 +50,7 @@ NeighRequest::NeighRequest(LAMMPS *lmp) : Pointers(lmp) special = 1; dnum = 0; ghost = 0; + cudable = 0; // default is no copy or skip @@ -99,6 +100,7 @@ int NeighRequest::identical(NeighRequest *other) if (special != other->special) same = 0; if (dnum != other->dnum) same = 0; if (ghost != other->ghost) same = 0; + if (cudable != other->cudable) same = 0; if (copy != other->copy) same = 0; if (same_skip(other) == 0) same = 0; @@ -126,6 +128,7 @@ int NeighRequest::same_kind(NeighRequest *other) if (half_from_full != other->half_from_full) same = 0; if (newton != other->newton) same = 0; if (ghost != other->ghost) same = 0; + if (cudable != other->cudable) same = 0; return same; } @@ -174,4 +177,5 @@ void NeighRequest::copy_request(NeighRequest *other) newton = other->newton; dnum = other->dnum; ghost = other->ghost; + cudable = other->cudable; } diff --git a/src/neigh_request.h b/src/neigh_request.h index d653307985..afff5966c0 100644 --- a/src/neigh_request.h +++ b/src/neigh_request.h @@ -72,6 +72,10 @@ class NeighRequest : protected Pointers { int ghost; + // 1 if neighbor list build will be done on GPU + + int cudable; + // set by neighbor and pair_hybrid after all requests are made // these settings do not change kind value