Make memory_kokkos its own class

This commit is contained in:
Stan Moore
2017-12-01 09:13:31 -07:00
parent 83ec9815fe
commit 15a3364c2c
87 changed files with 850 additions and 826 deletions

View File

@ -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