Fix warnings in Kokkos package

This commit is contained in:
Stan Moore
2022-05-06 08:23:45 -06:00
parent a35a2441ce
commit 6ec169fa9d
4 changed files with 6 additions and 6 deletions

View File

@ -37,6 +37,8 @@ class CommKokkos : public CommBrick {
~CommKokkos() override;
void init() override;
using CommBrick::forward_comm;
using CommBrick::reverse_comm;
void forward_comm(int dummy = 0) override; // forward comm of atom coords
void reverse_comm() override; // reverse comm of atom coords
void exchange() override; // move atoms to new procs

View File

@ -26,6 +26,8 @@ class CommTiledKokkos : public CommTiled {
CommTiledKokkos(class LAMMPS *, class Comm *);
~CommTiledKokkos() override;
using CommTiled::forward_comm;
using CommTiled::reverse_comm;
void forward_comm(int dummy = 0) override; // forward comm of atom coords
void reverse_comm() override; // reverse comm of forces
void exchange() override; // move atoms to new procs

View File

@ -289,6 +289,7 @@ class NPairSSAKokkosExecute
h_new_maxneighs() = neigh_list.maxneighs;
};
KOKKOS_INLINE_FUNCTION
~NPairSSAKokkosExecute() {neigh_list.copymode = 1;};
KOKKOS_FUNCTION

View File

@ -48,7 +48,6 @@ class RandPoolWrap : protected Pointers {
void destroy();
void init(RanMars*, int);
KOKKOS_INLINE_FUNCTION
RandWrap get_state() const
{
#ifdef LMP_KOKKOS_GPU
@ -68,11 +67,7 @@ class RandPoolWrap : protected Pointers {
return rand_wrap;
}
KOKKOS_INLINE_FUNCTION
void free_state(RandWrap) const
{
}
void free_state(RandWrap) const {}
private:
class RanMars **random_thr;