Kokkos enhancements
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14804 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -364,7 +364,7 @@ void CommKokkos::exchange()
|
||||
if(atom->nextra_grow + atom->nextra_border) {
|
||||
if(!exchange_comm_classic) {
|
||||
static int print = 1;
|
||||
if(print) {
|
||||
if(print && comm->me==0) {
|
||||
error->warning(FLERR,"Fixes cannot send data in Kokkos communication, "
|
||||
"switching to classic communication");
|
||||
print = 0;
|
||||
@ -995,4 +995,3 @@ void CommKokkos::grow_swap(int n)
|
||||
memory->grow(maxsendlist,n,"comm:maxsendlist");
|
||||
for (int i=0;i<maxswap;i++) maxsendlist[i]=size;
|
||||
}
|
||||
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#include "neighbor_kokkos.h"
|
||||
#include "atom.h"
|
||||
#include "pair.h"
|
||||
#include "fix.h"
|
||||
#include "neigh_request.h"
|
||||
#include "memory.h"
|
||||
#include "update.h"
|
||||
@ -136,6 +137,10 @@ int NeighborKokkos::init_lists_kokkos()
|
||||
Pair *pair = (Pair *) requests[i]->requestor;
|
||||
pair->init_list(requests[i]->id,lists_host[i]);
|
||||
}
|
||||
if (requests[i]->fix) {
|
||||
Fix *fix = (Fix *) requests[i]->requestor;
|
||||
fix->init_list(requests[i]->id,lists_host[i]);
|
||||
}
|
||||
}
|
||||
|
||||
lists_device = new NeighListKokkos<LMPDeviceType>*[nrequest];
|
||||
@ -156,6 +161,10 @@ int NeighborKokkos::init_lists_kokkos()
|
||||
Pair *pair = (Pair *) requests[i]->requestor;
|
||||
pair->init_list(requests[i]->id,lists_device[i]);
|
||||
}
|
||||
if (requests[i]->fix) {
|
||||
Fix *fix = (Fix *) requests[i]->requestor;
|
||||
fix->init_list(requests[i]->id,lists_device[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// 1st time allocation of xhold
|
||||
@ -598,4 +607,3 @@ void NeighborKokkos::build_topology_kokkos() {
|
||||
// include to trigger instantiation of templated functions
|
||||
|
||||
#include "neigh_full_kokkos.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user