Make memory_kokkos its own class
This commit is contained in:
13
src/memory.h
13
src/memory.h
@ -16,9 +16,6 @@
|
||||
|
||||
#include "lmptype.h"
|
||||
#include "pointers.h"
|
||||
#ifdef LMP_KOKKOS
|
||||
#include "kokkos_type.h"
|
||||
#endif
|
||||
|
||||
namespace LAMMPS_NS {
|
||||
|
||||
@ -31,16 +28,6 @@ class Memory : protected Pointers {
|
||||
void sfree(void *);
|
||||
void fail(const char *);
|
||||
|
||||
// Kokkos memory allocation functions
|
||||
// provide a dummy prototpye for any Kokkos memory function
|
||||
// called in main LAMMPS even when not built with KOKKOS package
|
||||
|
||||
#ifdef LMP_KOKKOS
|
||||
#include "memory_kokkos.h"
|
||||
#else
|
||||
void grow_kokkos(tagint **, tagint **, int, int, const char*) {}
|
||||
#endif
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
create/grow/destroy vecs and multidim arrays with contiguous memory blocks
|
||||
only use with primitive data types, e.g. 1d vec of ints, 2d array of doubles
|
||||
|
||||
Reference in New Issue
Block a user