From 9e412bb7a661088a9bc7b43cf0585fb9c9fb25ae Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 31 Mar 2021 11:42:39 -0700 Subject: [PATCH] Fixing bug with GPU neighboring when using builds supporting CUDPP. ...introduced in Feb 2021 GPU package update. Manifests when GPU library is built with -DUSE_CUDPP and -DLAL_USE_OLD_NEIGHBOR (latter forced with CUDA 11.2). --- lib/gpu/lal_neighbor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gpu/lal_neighbor.cpp b/lib/gpu/lal_neighbor.cpp index aabba49575..a0d2eaa8c3 100644 --- a/lib/gpu/lal_neighbor.cpp +++ b/lib/gpu/lal_neighbor.cpp @@ -740,6 +740,7 @@ void Neighbor::build_nbor_list(double **x, const int inum, const int host_inum, // If binning on GPU, do this now if (_gpu_nbor==1) { + mn = _max_nbors; const numtyp i_cell_size=static_cast(1.0/_cell_size); const int neigh_block=_block_cell_id; const int GX=(int)ceil((float)nall/neigh_block);