Commit b3e8e675 authored by Pillai, Himanshu's avatar Pillai, Himanshu
Browse files

Kokkos fixed built without UVM

parent c165e8f7
#ifndef _DECL_CanopyHydrology_kern1_multiple_H_
#define _DECL_CanopyHydrology_kern1_multiple_H_
#include "charm++.h"
#include "envelope.h"
#include <memory>
#include "sdag.h"
#include "utils.hh"
#include "readers.hh"
#include "CanopyHydrology.hh"
/* DECLS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
class main;
class CkIndex_main;
class CProxy_main;
/* --------------- index object ------------------ */
class CkIndex_main:public CkIndex_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
static int __idx;
static void __register(const char *s, size_t size);
/* DECLS: main(CkArgMsg* impl_msg);
*/
// Entry point registration at startup
static int reg_main_CkArgMsg();
// Entry point index lookup
inline static int idx_main_CkArgMsg() {
static int epidx = reg_main_CkArgMsg();
return epidx;
}
static int ckNew(CkArgMsg* impl_msg) { return idx_main_CkArgMsg(); }
static void _call_main_CkArgMsg(void* impl_msg, void* impl_obj);
static void _call_sdag_main_CkArgMsg(void* impl_msg, void* impl_obj);
};
/* --------------- element proxy ------------------ */
class CProxy_main:public CProxy_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
CProxy_main(void) {};
CProxy_main(CkChareID __cid) : CProxy_Chare(__cid){ }
CProxy_main(const Chare *c) : CProxy_Chare(c){ }
int ckIsDelegated(void) const
{ return CProxy_Chare::ckIsDelegated(); }
inline CkDelegateMgr *ckDelegatedTo(void) const
{ return CProxy_Chare::ckDelegatedTo(); }
inline CkDelegateData *ckDelegatedPtr(void) const
{ return CProxy_Chare::ckDelegatedPtr(); }
CkGroupID ckDelegatedIdx(void) const
{ return CProxy_Chare::ckDelegatedIdx(); }
inline void ckCheck(void) const
{ CProxy_Chare::ckCheck(); }
const CkChareID &ckGetChareID(void) const
{ return CProxy_Chare::ckGetChareID(); }
operator const CkChareID &(void) const
{ return ckGetChareID(); }
void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL)
{ CProxy_Chare::ckDelegate(dTo,dPtr); }
void ckUndelegate(void)
{ CProxy_Chare::ckUndelegate(); }
void pup(PUP::er &p)
{ CProxy_Chare::pup(p);
}
void ckSetChareID(const CkChareID &c)
{ CProxy_Chare::ckSetChareID(c); }
main *ckLocal(void) const
{ return (main *)CkLocalChare(&ckGetChareID()); }
/* DECLS: main(CkArgMsg* impl_msg);
*/
static CkChareID ckNew(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
static void ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int onPE=CK_PE_ANY);
CProxy_main(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
};
PUPmarshall(CProxy_main)
#define main_SDAG_CODE
typedef CBaseT1<Chare, CProxy_main>CBase_main;
/* ---------------- method closures -------------- */
class Closure_main {
public:
};
extern void _registerCanopyHydrology_kern1_multiple(void);
extern "C" void CkRegisterMainModule(void);
#endif
/* ---------------- method closures -------------- */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
/* DEFS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
#ifndef CK_TEMPLATES_ONLY
int CkIndex_main::__idx=0;
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
/* DEFS: main(CkArgMsg* impl_msg);
*/
CkChareID CProxy_main::ckNew(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
return impl_ret;
}
void CProxy_main::ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int impl_onPE)
{
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, pcid, impl_onPE);
}
CProxy_main::CProxy_main(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
ckSetChareID(impl_ret);
}
// Entry point registration function
int CkIndex_main::reg_main_CkArgMsg() {
int epidx = CkRegisterEp("main(CkArgMsg* impl_msg)",
_call_main_CkArgMsg, CMessage_CkArgMsg::__idx, __idx, 0);
CkRegisterMessagePupFn(epidx, (CkMessagePupFn)CkArgMsg::ckDebugPup);
return epidx;
}
void CkIndex_main::_call_main_CkArgMsg(void* impl_msg, void* impl_obj_void)
{
main* impl_obj = static_cast<main*>(impl_obj_void);
new (impl_obj_void) main((CkArgMsg*)impl_msg);
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void CkIndex_main::__register(const char *s, size_t size) {
__idx = CkRegisterChare(s, size, TypeMainChare);
CkRegisterBase(__idx, CkIndex_Chare::__idx);
// REG: main(CkArgMsg* impl_msg);
idx_main_CkArgMsg();
CkRegisterMainChare(__idx, idx_main_CkArgMsg());
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void _registerCanopyHydrology_kern1_multiple(void)
{
static int _done = 0; if(_done) return; _done = 1;
/* REG: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
CkIndex_main::__register("main", sizeof(main));
}
extern "C" void CkRegisterMainModule(void) {
_registerCanopyHydrology_kern1_multiple();
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
template <>
void CBase_main::virtual_pup(PUP::er &p) {
recursive_pup<main>(dynamic_cast<main*>(this), p);
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef _DECL_CanopyHydrology_kern1_single_H_
#define _DECL_CanopyHydrology_kern1_single_H_
#include "charm++.h"
#include "envelope.h"
#include <memory>
#include "sdag.h"
#include "utils.hh"
#include "readers.hh"
#include "CanopyHydrology.hh"
/* DECLS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
class main;
class CkIndex_main;
class CProxy_main;
/* --------------- index object ------------------ */
class CkIndex_main:public CkIndex_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
static int __idx;
static void __register(const char *s, size_t size);
/* DECLS: main(CkArgMsg* impl_msg);
*/
// Entry point registration at startup
static int reg_main_CkArgMsg();
// Entry point index lookup
inline static int idx_main_CkArgMsg() {
static int epidx = reg_main_CkArgMsg();
return epidx;
}
static int ckNew(CkArgMsg* impl_msg) { return idx_main_CkArgMsg(); }
static void _call_main_CkArgMsg(void* impl_msg, void* impl_obj);
static void _call_sdag_main_CkArgMsg(void* impl_msg, void* impl_obj);
};
/* --------------- element proxy ------------------ */
class CProxy_main:public CProxy_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
CProxy_main(void) {};
CProxy_main(CkChareID __cid) : CProxy_Chare(__cid){ }
CProxy_main(const Chare *c) : CProxy_Chare(c){ }
int ckIsDelegated(void) const
{ return CProxy_Chare::ckIsDelegated(); }
inline CkDelegateMgr *ckDelegatedTo(void) const
{ return CProxy_Chare::ckDelegatedTo(); }
inline CkDelegateData *ckDelegatedPtr(void) const
{ return CProxy_Chare::ckDelegatedPtr(); }
CkGroupID ckDelegatedIdx(void) const
{ return CProxy_Chare::ckDelegatedIdx(); }
inline void ckCheck(void) const
{ CProxy_Chare::ckCheck(); }
const CkChareID &ckGetChareID(void) const
{ return CProxy_Chare::ckGetChareID(); }
operator const CkChareID &(void) const
{ return ckGetChareID(); }
void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL)
{ CProxy_Chare::ckDelegate(dTo,dPtr); }
void ckUndelegate(void)
{ CProxy_Chare::ckUndelegate(); }
void pup(PUP::er &p)
{ CProxy_Chare::pup(p);
}
void ckSetChareID(const CkChareID &c)
{ CProxy_Chare::ckSetChareID(c); }
main *ckLocal(void) const
{ return (main *)CkLocalChare(&ckGetChareID()); }
/* DECLS: main(CkArgMsg* impl_msg);
*/
static CkChareID ckNew(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
static void ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int onPE=CK_PE_ANY);
CProxy_main(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
};
PUPmarshall(CProxy_main)
#define main_SDAG_CODE
typedef CBaseT1<Chare, CProxy_main>CBase_main;
/* ---------------- method closures -------------- */
class Closure_main {
public:
};
extern void _registerCanopyHydrology_kern1_single(void);
extern "C" void CkRegisterMainModule(void);
#endif
/* ---------------- method closures -------------- */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
/* DEFS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
#ifndef CK_TEMPLATES_ONLY
int CkIndex_main::__idx=0;
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
/* DEFS: main(CkArgMsg* impl_msg);
*/
CkChareID CProxy_main::ckNew(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
return impl_ret;
}
void CProxy_main::ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int impl_onPE)
{
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, pcid, impl_onPE);
}
CProxy_main::CProxy_main(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
ckSetChareID(impl_ret);
}
// Entry point registration function
int CkIndex_main::reg_main_CkArgMsg() {
int epidx = CkRegisterEp("main(CkArgMsg* impl_msg)",
_call_main_CkArgMsg, CMessage_CkArgMsg::__idx, __idx, 0);
CkRegisterMessagePupFn(epidx, (CkMessagePupFn)CkArgMsg::ckDebugPup);
return epidx;
}
void CkIndex_main::_call_main_CkArgMsg(void* impl_msg, void* impl_obj_void)
{
main* impl_obj = static_cast<main*>(impl_obj_void);
new (impl_obj_void) main((CkArgMsg*)impl_msg);
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void CkIndex_main::__register(const char *s, size_t size) {
__idx = CkRegisterChare(s, size, TypeMainChare);
CkRegisterBase(__idx, CkIndex_Chare::__idx);
// REG: main(CkArgMsg* impl_msg);
idx_main_CkArgMsg();
CkRegisterMainChare(__idx, idx_main_CkArgMsg());
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void _registerCanopyHydrology_kern1_single(void)
{
static int _done = 0; if(_done) return; _done = 1;
/* REG: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
CkIndex_main::__register("main", sizeof(main));
}
extern "C" void CkRegisterMainModule(void) {
_registerCanopyHydrology_kern1_single();
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
template <>
void CBase_main::virtual_pup(PUP::er &p) {
recursive_pup<main>(dynamic_cast<main*>(this), p);
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef _DECL_CanopyHydrology_module_H_
#define _DECL_CanopyHydrology_module_H_
#include "charm++.h"
#include "envelope.h"
#include <memory>
#include "sdag.h"
#include "utils.hh"
#include "readers.hh"
#include "CanopyHydrology.hh"
/* DECLS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
class main;
class CkIndex_main;
class CProxy_main;
/* --------------- index object ------------------ */
class CkIndex_main:public CkIndex_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
static int __idx;
static void __register(const char *s, size_t size);
/* DECLS: main(CkArgMsg* impl_msg);
*/
// Entry point registration at startup
static int reg_main_CkArgMsg();
// Entry point index lookup
inline static int idx_main_CkArgMsg() {
static int epidx = reg_main_CkArgMsg();
return epidx;
}
static int ckNew(CkArgMsg* impl_msg) { return idx_main_CkArgMsg(); }
static void _call_main_CkArgMsg(void* impl_msg, void* impl_obj);
static void _call_sdag_main_CkArgMsg(void* impl_msg, void* impl_obj);
};
/* --------------- element proxy ------------------ */
class CProxy_main:public CProxy_Chare{
public:
typedef main local_t;
typedef CkIndex_main index_t;
typedef CProxy_main proxy_t;
typedef CProxy_main element_t;
CProxy_main(void) {};
CProxy_main(CkChareID __cid) : CProxy_Chare(__cid){ }
CProxy_main(const Chare *c) : CProxy_Chare(c){ }
int ckIsDelegated(void) const
{ return CProxy_Chare::ckIsDelegated(); }
inline CkDelegateMgr *ckDelegatedTo(void) const
{ return CProxy_Chare::ckDelegatedTo(); }
inline CkDelegateData *ckDelegatedPtr(void) const
{ return CProxy_Chare::ckDelegatedPtr(); }
CkGroupID ckDelegatedIdx(void) const
{ return CProxy_Chare::ckDelegatedIdx(); }
inline void ckCheck(void) const
{ CProxy_Chare::ckCheck(); }
const CkChareID &ckGetChareID(void) const
{ return CProxy_Chare::ckGetChareID(); }
operator const CkChareID &(void) const
{ return ckGetChareID(); }
void ckDelegate(CkDelegateMgr *dTo,CkDelegateData *dPtr=NULL)
{ CProxy_Chare::ckDelegate(dTo,dPtr); }
void ckUndelegate(void)
{ CProxy_Chare::ckUndelegate(); }
void pup(PUP::er &p)
{ CProxy_Chare::pup(p);
}
void ckSetChareID(const CkChareID &c)
{ CProxy_Chare::ckSetChareID(c); }
main *ckLocal(void) const
{ return (main *)CkLocalChare(&ckGetChareID()); }
/* DECLS: main(CkArgMsg* impl_msg);
*/
static CkChareID ckNew(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
static void ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int onPE=CK_PE_ANY);
CProxy_main(CkArgMsg* impl_msg, int onPE=CK_PE_ANY);
};
PUPmarshall(CProxy_main)
#define main_SDAG_CODE
typedef CBaseT1<Chare, CProxy_main>CBase_main;
/* ---------------- method closures -------------- */
class Closure_main {
public:
};
extern void _registerCanopyHydrology_module(void);
extern "C" void CkRegisterMainModule(void);
#endif
/* ---------------- method closures -------------- */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
/* DEFS: mainchare main: Chare{
main(CkArgMsg* impl_msg);
};
*/
#ifndef CK_TEMPLATES_ONLY
int CkIndex_main::__idx=0;
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
/* DEFS: main(CkArgMsg* impl_msg);
*/
CkChareID CProxy_main::ckNew(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
return impl_ret;
}
void CProxy_main::ckNew(CkArgMsg* impl_msg, CkChareID* pcid, int impl_onPE)
{
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, pcid, impl_onPE);
}
CProxy_main::CProxy_main(CkArgMsg* impl_msg, int impl_onPE)
{
CkChareID impl_ret;
CkCreateChare(CkIndex_main::__idx, CkIndex_main::idx_main_CkArgMsg(), impl_msg, &impl_ret, impl_onPE);
ckSetChareID(impl_ret);
}
// Entry point registration function
int CkIndex_main::reg_main_CkArgMsg() {
int epidx = CkRegisterEp("main(CkArgMsg* impl_msg)",
_call_main_CkArgMsg, CMessage_CkArgMsg::__idx, __idx, 0);
CkRegisterMessagePupFn(epidx, (CkMessagePupFn)CkArgMsg::ckDebugPup);
return epidx;
}
void CkIndex_main::_call_main_CkArgMsg(void* impl_msg, void* impl_obj_void)
{
main* impl_obj = static_cast<main*>(impl_obj_void);
new (impl_obj_void) main((CkArgMsg*)impl_msg);
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void CkIndex_main::__register(const char *s, size_t size) {
__idx = CkRegisterChare(s, size, TypeMainChare);
CkRegisterBase(__idx, CkIndex_Chare::__idx);
// REG: main(CkArgMsg* impl_msg);
idx_main_CkArgMsg();
CkRegisterMainChare(__idx, idx_main_CkArgMsg());
}
#endif /* CK_TEMPLATES_ONLY */
#ifndef CK_TEMPLATES_ONLY
void _registerCanopyHydrology_module(void)