Fix non-Kokkos build

This commit is contained in:
Stan Moore
2024-09-03 15:56:57 -06:00
parent 1e9f91a393
commit 261eb725d6
2 changed files with 16 additions and 9 deletions

View File

@ -19,14 +19,15 @@
#ifdef LMP_KOKKOS
#include "atom_kokkos.h" // IWYU pragma: export
#include "comm_brick_kokkos.h" // IWYU pragma: export
#include "comm_tiled_kokkos.h" // IWYU pragma: export
#include "domain_kokkos.h" // IWYU pragma: export
#include "kokkos.h" // IWYU pragma: export
#include "memory_kokkos.h" // IWYU pragma: export
#include "modify_kokkos.h" // IWYU pragma: export
#include "neighbor_kokkos.h" // IWYU pragma: export
#include "atom_kokkos.h" // IWYU pragma: export
#include "comm_brick_kokkos.h" // IWYU pragma: export
#include "comm_brick_direct_kokkos.h" // IWYU pragma: export
#include "comm_tiled_kokkos.h" // IWYU pragma: export
#include "domain_kokkos.h" // IWYU pragma: export
#include "kokkos.h" // IWYU pragma: export
#include "memory_kokkos.h" // IWYU pragma: export
#include "modify_kokkos.h" // IWYU pragma: export
#include "neighbor_kokkos.h" // IWYU pragma: export
#define LAMMPS_INLINE KOKKOS_INLINE_FUNCTION
@ -37,6 +38,7 @@
#include "atom.h"
#include "comm_brick.h"
#include "comm_brick_direct.h"
#include "comm_tiled.h"
#include "domain.h"
#include "memory.h"
@ -74,6 +76,12 @@ class CommBrickKokkos : public CommBrick {
CommBrickKokkos(class LAMMPS *lmp) : CommBrick(lmp) {}
};
class CommBrickDirectKokkos : public CommBrickDirect {
public:
CommBrickDirectKokkos(class LAMMPS *lmp) : CommBrickDirect(lmp) {}
CommBrickDirectKokkos(class LAMMPS *lmp, Comm *oldcomm) : CommBrickDirect(lmp, oldcomm) {}
};
class CommTiledKokkos : public CommTiled {
public:
CommTiledKokkos(class LAMMPS *lmp) : CommTiled(lmp) {}

View File

@ -22,7 +22,6 @@
#include "comm.h"
#include "comm_brick.h"
#include "comm_brick_direct.h"
#include "comm_brick_direct_kokkos.h"
#include "comm_tiled.h"
#include "command.h"
#include "compute.h"