Fix warnings in Kokkos package
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -289,6 +289,7 @@ class NPairSSAKokkosExecute
|
||||
h_new_maxneighs() = neigh_list.maxneighs;
|
||||
};
|
||||
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
~NPairSSAKokkosExecute() {neigh_list.copymode = 1;};
|
||||
|
||||
KOKKOS_FUNCTION
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user