must pass pointer to Error class as argument since static functions don't have access to "this"
This commit is contained in:
@ -189,7 +189,7 @@ KokkosLMP::KokkosLMP(LAMMPS *lmp, int narg, char **arg) : Pointers(lmp)
|
|||||||
args.num_numa = numa;
|
args.num_numa = numa;
|
||||||
args.device_id = device;
|
args.device_id = device;
|
||||||
|
|
||||||
initialize(args);
|
KokkosLMP::initialize(args,error);
|
||||||
|
|
||||||
// default settings for package kokkos command
|
// default settings for package kokkos command
|
||||||
|
|
||||||
@ -304,7 +304,7 @@ KokkosLMP::~KokkosLMP()
|
|||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void KokkosLMP::initialize(Kokkos::InitArguments args)
|
void KokkosLMP::initialize(Kokkos::InitArguments args, Error *error)
|
||||||
{
|
{
|
||||||
if (!Kokkos::is_initialized()) {
|
if (!Kokkos::is_initialized()) {
|
||||||
if (is_finalized)
|
if (is_finalized)
|
||||||
|
|||||||
@ -53,7 +53,7 @@ class KokkosLMP : protected Pointers {
|
|||||||
|
|
||||||
KokkosLMP(class LAMMPS *, int, char **);
|
KokkosLMP(class LAMMPS *, int, char **);
|
||||||
~KokkosLMP();
|
~KokkosLMP();
|
||||||
static void initialize(Kokkos::InitArguments);
|
static void initialize(Kokkos::InitArguments, Error *);
|
||||||
static void finalize();
|
static void finalize();
|
||||||
void accelerator(int, char **);
|
void accelerator(int, char **);
|
||||||
int neigh_count(int);
|
int neigh_count(int);
|
||||||
|
|||||||
Reference in New Issue
Block a user