diff --git a/lib/cuda/cuda_shared.h b/lib/cuda/cuda_shared.h index 978a277712..a11c57dc22 100644 --- a/lib/cuda/cuda_shared.h +++ b/lib/cuda/cuda_shared.h @@ -81,6 +81,7 @@ struct cuda_shared_atom // relevent data from atom class int update_nlocal; int update_nmax; + int update_neigh; dev_array xhold; // position at last neighboring X_FLOAT triggerneighsq; // maximum square movement before reneighboring diff --git a/lib/cuda/pair_manybody_const.h b/lib/cuda/pair_manybody_const.h new file mode 100644 index 0000000000..69bf32aead --- /dev/null +++ b/lib/cuda/pair_manybody_const.h @@ -0,0 +1,16 @@ +/* + * pair_manybody_const.h + * + * Created on: Oct 11, 2011 + * Author: chmu-tph + */ + +#define MANYBODY_NPAIR 3 + +__device__ __constant__ int elem2param[(MANYBODY_NPAIR+1)*(MANYBODY_NPAIR+1)*(MANYBODY_NPAIR+1)]; +__device__ __constant__ int nelements; +__device__ __constant__ int map[MANYBODY_NPAIR+2]; +__device__ __constant__ int* _glob_numneigh_red; //number of neighbors within force cutoff (as opposed to neighbor cutoff) +__device__ __constant__ int* _glob_neighbors_red; //indices of neighbors within force cutoff +__device__ __constant__ int* _glob_neightype_red; //type of neighbors within force cutoff +