Unverified Commit 4157ab3b authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warnings about unused parameters

parent dc484f06
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ void CommKokkos::forward_comm(int dummy)
/* ---------------------------------------------------------------------- */

template<class DeviceType>
void CommKokkos::forward_comm_device(int dummy)
void CommKokkos::forward_comm_device(int)
{
  int n;
  MPI_Request request;
@@ -529,13 +529,12 @@ struct BuildExchangeListFunctor {
      typename AT::tdual_int_scalar nsend,
      typename AT::tdual_int_1d sendflag,int nlocal, int dim,
                X_FLOAT lo, X_FLOAT hi):
                _lo(lo),_hi(hi),
                _x(x.template view<DeviceType>()),
                _sendlist(sendlist.template view<DeviceType>()),
                _nsend(nsend.template view<DeviceType>()),
                _sendflag(sendflag.template view<DeviceType>()),
                _nlocal(nlocal),_dim(dim),
                _lo(lo),_hi(hi){
  }
                _nsend(nsend.template view<DeviceType>()),
                _sendlist(sendlist.template view<DeviceType>()),
                _sendflag(sendflag.template view<DeviceType>()) { }

  KOKKOS_INLINE_FUNCTION
  void operator() (int i) const {
@@ -782,11 +781,10 @@ struct BuildBorderListFunctor {
                         int _nlast, int _dim,
                         X_FLOAT _lo, X_FLOAT _hi, int _iswap,
                         int _maxsendlist):
    x(_x.template view<DeviceType>()),
    lo(_lo),hi(_hi),x(_x.template view<DeviceType>()),iswap(_iswap),
    maxsendlist(_maxsendlist),nfirst(_nfirst),nlast(_nlast),dim(_dim),
    sendlist(_sendlist.template view<DeviceType>()),
    nsend(_nsend.template view<DeviceType>()),
    nfirst(_nfirst),nlast(_nlast),dim(_dim),
    lo(_lo),hi(_hi),iswap(_iswap),maxsendlist(_maxsendlist){}
    nsend(_nsend.template view<DeviceType>()) {}


  KOKKOS_INLINE_FUNCTION
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ void FixEnforce2DKokkos<DeviceType>::setup(int vflag)


template <class DeviceType>
void FixEnforce2DKokkos<DeviceType>::post_force(int vflag)
void FixEnforce2DKokkos<DeviceType>::post_force(int /*vflag*/)
{
  atomKK->sync(execution_space,datamask_read);

+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ void FixNVEKokkos<DeviceType>::init()
------------------------------------------------------------------------- */

template<class DeviceType>
void FixNVEKokkos<DeviceType>::initial_integrate(int vflag)
void FixNVEKokkos<DeviceType>::initial_integrate(int /*vflag*/)
{
  atomKK->sync(execution_space,datamask_read);
  atomKK->modified(execution_space,datamask_modify);
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ void FixNVESphereKokkos<DeviceType>::init()
/* ---------------------------------------------------------------------- */

template<class DeviceType>
void FixNVESphereKokkos<DeviceType>::initial_integrate(int vflag)
void FixNVESphereKokkos<DeviceType>::initial_integrate(int /*vflag*/)
{
  atomKK->sync(execution_space,datamask_read);
  atomKK->modified(execution_space,datamask_modify);
+2 −2
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class FixQEqReaxKokkos : public FixQEqReax {
    KOKKOS_INLINE_FUNCTION
    params_qeq(){chi=0;eta=0;gamma=0;};
    KOKKOS_INLINE_FUNCTION
    params_qeq(int i){chi=0;eta=0;gamma=0;};
    params_qeq(int /*i*/){chi=0;eta=0;gamma=0;};
    F_FLOAT chi, eta, gamma;
  };

@@ -283,7 +283,7 @@ struct FixQEqReaxKokkosComputeHFunctor {
    c.template compute_h_team<NEIGHFLAG>(team, atoms_per_team, vector_length);
  }

  size_t team_shmem_size(int team_size) const {
  size_t team_shmem_size(int /*team_size*/) const {
    size_t shmem_size =
        Kokkos::View<int *, scratch_space, Kokkos::MemoryUnmanaged>::shmem_size(
            atoms_per_team) + // s_ilist
Loading