Unverified Commit 20ad924a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer Committed by GitHub
Browse files

Merge pull request #2082 from stanmoore1/kk_bigint

Fix 32-bit integer overflow in Kokkos neighlist build on GPUs
parents 040cbe37 b1ac51f7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ class AtomNeighbors
  num_neighs(_num_neighs), _firstneigh(firstneigh), _stride(stride) {};
  KOKKOS_INLINE_FUNCTION
  int& operator()(const int &i) const {
    return _firstneigh[i*_stride];
    return _firstneigh[(bigint) i*_stride];
  }

 private:
@@ -51,7 +51,7 @@ class AtomNeighborsConst
  _firstneigh(firstneigh), num_neighs(_num_neighs), _stride(stride) {};
  KOKKOS_INLINE_FUNCTION
  const int& operator()(const int &i) const {
    return _firstneigh[i*_stride];
    return _firstneigh[(bigint) i*_stride];
  }

 private: