PPL Logo

libs/ck-libs/tcharm/tcharm.C File Reference

Go to the source code of this file.

Data Structures

class  TCharmTraceLibList

Functions

 CtvDeclare (TCharm *, _curTCharm)
 CkpvDeclare (int, mapCreated)
void TCHARM_Api_trace (const char *routineName, const char *libraryName)
int TCHARM_Register_thread_function (TCHARM_Thread_data_start_fn fn)
TCHARM_Thread_data_start_fn getTCharmThreadFunction (int idx)
static void startTCharmThread (TCharmInitMsg *msg)
void checkPupMismatch (PUP::er &p, int expected, const char *where)
CkArrayID TCHARM_Get_threads (void)
void TCHARM_Set_fallback_setup (TCHARM_Fallback_setup_fn f)
void TCHARM_Call_fallback_setup (void)
CDECL int TCHARM_Get_num_chunks (void)
FDECL int FTN_NAME (TCHARM_GET_NUM_CHUNKS, tcharm_get_num_chunks)
CDECL void TCHARM_Set_stack_size (int newStackSize)
FDECL void FTN_NAME (TCHARM_SET_STACK_SIZE, tcharm_set_stack_size)
CDECL void TCHARM_Set_exit (void)
CDECL void TCHARM_Create (int nThreads, int threadFn)
FDECL void FTN_NAME (TCHARM_CREATE, tcharm_create)
static CProxy_TCharm TCHARM_Build_threads (TCharmInitMsg *msg)
CDECL void TCHARM_Create_data (int nThreads, int threadFn, void *threadData, int threadDataLen)
FDECL void FTN_NAME (TCHARM_CREATE_DATA, tcharm_create_data)
CkGroupID CkCreatePropMap (void)
CkArrayOptions TCHARM_Attach_start (CkArrayID *retTCharmArray, int *retNumElts)
void TCHARM_Suspend (void)
 Suspend the current thread. Resume by calling thread->resume().
CDECL int TCHARM_Element (void)
CDECL int TCHARM_Num_elements (void)
FDECL int FTN_NAME (TCHARM_ELEMENT, tcharm_element)
FDECL int FTN_NAME (TCHARM_NUM_ELEMENTS, tcharm_num_elements)
static void checkAddress (void *data)
CDECL int TCHARM_Register (void *data, TCHARM_Pup_fn pfn)
FDECL int FTN_NAME (TCHARM_REGISTER, tcharm_register)
CDECL void * TCHARM_Get_userdata (int id)
FDECL void * FTN_NAME (TCHARM_GET_USERDATA, tcharm_get_userdata)
CDECL void TCHARM_Set_global (int globalID, void *new_value, TCHARM_Pup_global_fn pup_or_NULL)
CDECL void * TCHARM_Get_global (int globalID)
CDECL void TCHARM_Migrate (void)
 FORTRAN_AS_C (TCHARM_MIGRATE, TCHARM_Migrate, tcharm_migrate,(void),())
 FORTRAN_AS_C (TCHARM_ASYNC_MIGRATE, TCHARM_Async_Migrate, tcharm_async_migrate,(void),())
 FORTRAN_AS_C (TCHARM_ALLOW_MIGRATE, TCHARM_Allow_Migrate, tcharm_allow_migrate,(void),())
CDECL void TCHARM_Evacuate ()
 FORTRAN_AS_C (TCHARM_MIGRATE_TO, TCHARM_Migrate_to, tcharm_migrate_to,(int *destPE),(*destPE)) CDECL void TCHARM_Yield(void)
 FORTRAN_AS_C (TCHARM_YIELD, TCHARM_Yield, tcharm_yield,(void),())
 FORTRAN_AS_C (TCHARM_BARRIER, TCHARM_Barrier, tcharm_barrier,(void),())
 FORTRAN_AS_C (TCHARM_DONE, TCHARM_Done, tcharm_done,(void),())
FDECL int FTN_NAME (TCHARM_IARGC, tcharm_iargc)
FDECL void FTN_NAME (TCHARM_GETARG, tcharm_getarg)
void _initCharm (int argc, char **argv)
 This is the main charm setup routine.
CDECL void TCHARM_Init (int *argc, char ***argv)
FDECL void FTN_NAME (TCHARM_INIT, tcharm_init)
CDECL int TCHARM_System (const char *shell_command)

Variables

static int lastNumChunks = 0
static TCharmTraceLibList tcharm_tracelibs
static int tcharm_nomig = 0
static int tcharm_nothreads = 0
static int tcharm_stacksize = 1*1024*1024
static int tcharm_initted = 0
static CkGroupID mapID
static char * mapping = NULL
static CkVec
< TCHARM_Thread_data_start_fn
threadFnTable
int _vals [2] = {0,1}
static TCHARM_Fallback_setup_fn g_fallbackSetup = NULL
TCHARM_Thread_options g_tcharmOptions (1)


Function Documentation

CtvDeclare ( TCharm ,
_curTCharm   
)

CkpvDeclare ( int  ,
mapCreated   
)

void TCHARM_Api_trace ( const char *  routineName,
const char *  libraryName 
)

int TCHARM_Register_thread_function ( TCHARM_Thread_data_start_fn  fn  ) 

TCHARM_Thread_data_start_fn getTCharmThreadFunction ( int  idx  ) 

Definition at line 143 of file tcharm.C.

Referenced by startTCharmThread().

static void startTCharmThread ( TCharmInitMsg msg  )  [static]

void checkPupMismatch ( PUP::er p,
int  expected,
const char *  where 
)

Definition at line 212 of file tcharm.C.

Referenced by TCharm::pup(), and TCharm::pupThread().

CkArrayID TCHARM_Get_threads ( void   ) 

Definition at line 592 of file tcharm.C.

References TCharm::get(), and TCharm::getProxy().

void TCHARM_Set_fallback_setup ( TCHARM_Fallback_setup_fn  f  ) 

Definition at line 650 of file tcharm.C.

References g_fallbackSetup.

Referenced by ampiNodeInit(), armciProcInit(), and MBlockProcInit().

void TCHARM_Call_fallback_setup ( void   ) 

Definition at line 654 of file tcharm.C.

References g_fallbackSetup.

Referenced by TCHARM_User_setup().

CDECL int TCHARM_Get_num_chunks ( void   ) 

FDECL int FTN_NAME ( TCHARM_GET_NUM_CHUNKS  ,
tcharm_get_num_chunks   
)

Definition at line 678 of file tcharm.C.

References TCHARM_Get_num_chunks().

CDECL void TCHARM_Set_stack_size ( int  newStackSize  ) 

Definition at line 697 of file tcharm.C.

References g_tcharmOptions, and TCHARM_Thread_options::stackSize.

Referenced by FTN_NAME().

FDECL void FTN_NAME ( TCHARM_SET_STACK_SIZE  ,
tcharm_set_stack_size   
)

Definition at line 702 of file tcharm.C.

References TCHARM_Set_stack_size().

CDECL void TCHARM_Set_exit ( void   ) 

Definition at line 706 of file tcharm.C.

References TCHARM_Thread_options::exitWhenDone, and g_tcharmOptions.

Referenced by TCharmMain::TCharmMain().

CDECL void TCHARM_Create ( int  nThreads,
int  threadFn 
)

Definition at line 709 of file tcharm.C.

References TCHARM_Create_data().

Referenced by ArmciDefaultSetup(), FTN_NAME(), and MBlockFallbackSetup().

FDECL void FTN_NAME ( TCHARM_CREATE  ,
tcharm_create   
)

Definition at line 716 of file tcharm.C.

References TCHARM_Create().

static CProxy_TCharm TCHARM_Build_threads ( TCharmInitMsg msg  )  [static]

CDECL void TCHARM_Create_data ( int  nThreads,
int  threadFn,
void *  threadData,
int  threadDataLen 
)

FDECL void FTN_NAME ( TCHARM_CREATE_DATA  ,
tcharm_create_data   
)

Definition at line 738 of file tcharm.C.

References TCHARM_Create_data().

CkGroupID CkCreatePropMap ( void   ) 

CkArrayOptions TCHARM_Attach_start ( CkArrayID retTCharmArray,
int retNumElts 
)

void TCHARM_Suspend ( void   ) 

Suspend the current thread. Resume by calling thread->resume().

Definition at line 797 of file tcharm.C.

References TCharm::get(), and TCharm::suspend().

CDECL int TCHARM_Element ( void   ) 

CDECL int TCHARM_Num_elements ( void   ) 

Definition at line 810 of file tcharm.C.

References TCharm::get(), and TCharm::getNumElements().

Referenced by ARMCI_Procs(), FTN_NAME(), and MBLK_Get_nblocks().

FDECL int FTN_NAME ( TCHARM_ELEMENT  ,
tcharm_element   
)

Definition at line 816 of file tcharm.C.

References TCHARM_Element().

FDECL int FTN_NAME ( TCHARM_NUM_ELEMENTS  ,
tcharm_num_elements   
)

Definition at line 818 of file tcharm.C.

References TCHARM_Num_elements().

static void checkAddress ( void *  data  )  [static]

CDECL int TCHARM_Register ( void *  data,
TCHARM_Pup_fn  pfn 
)

Definition at line 837 of file tcharm.C.

Referenced by AMPI_Register(), and MBLK_Register().

FDECL int FTN_NAME ( TCHARM_REGISTER  ,
tcharm_register   
)

Definition at line 843 of file tcharm.C.

References TCharm::add(), checkAddress(), data, and TCharm::get().

CDECL void* TCHARM_Get_userdata ( int  id  ) 

Definition at line 851 of file tcharm.C.

References TCharm::get(), and TCharm::lookupUserData().

Referenced by FTN_NAME(), MBLK_Get_registered(), and MPI_Get_userdata().

FDECL void* FTN_NAME ( TCHARM_GET_USERDATA  ,
tcharm_get_userdata   
)

Definition at line 856 of file tcharm.C.

References TCHARM_Get_userdata().

CDECL void TCHARM_Set_global ( int  globalID,
void *  new_value,
TCHARM_Pup_global_fn  pup_or_NULL 
)

Definition at line 860 of file tcharm.C.

Referenced by FEM_Init(), IDXL_Init(), pupFEM_Chunk(), and pupIDXL_Chunk().

CDECL void* TCHARM_Get_global ( int  globalID  ) 

CDECL void TCHARM_Migrate ( void   ) 

Definition at line 880 of file tcharm.C.

Referenced by AMPI_Migrate(), and ARMCI_Migrate().

FORTRAN_AS_C ( TCHARM_MIGRATE  ,
TCHARM_Migrate  ,
tcharm_migrate  ,
(void)  ,
()   
)

Definition at line 890 of file tcharm.C.

References TCharm::async_migrate(), and TCharm::get().

FORTRAN_AS_C ( TCHARM_ASYNC_MIGRATE  ,
TCHARM_Async_Migrate  ,
tcharm_async_migrate  ,
(void)  ,
()   
)

Definition at line 897 of file tcharm.C.

References TCharm::allow_migrate(), and TCharm::get().

FORTRAN_AS_C ( TCHARM_ALLOW_MIGRATE  ,
TCHARM_Allow_Migrate  ,
tcharm_allow_migrate  ,
(void)  ,
()   
)

Definition at line 904 of file tcharm.C.

References TCharm::get(), and TCharm::migrateTo().

CDECL void TCHARM_Evacuate (  ) 

Definition at line 912 of file tcharm.C.

References TCharm::evacuate(), and TCharm::get().

Referenced by AMPI_Evacuate().

FORTRAN_AS_C ( TCHARM_MIGRATE_TO  ,
TCHARM_Migrate_to  ,
tcharm_migrate_to  ,
(int *destPE)  ,
destPE 
)

Definition at line 918 of file tcharm.C.

References TCharm::get(), and TCharm::schedule().

FORTRAN_AS_C ( TCHARM_YIELD  ,
TCHARM_Yield  ,
tcharm_yield  ,
(void)  ,
()   
)

Definition at line 926 of file tcharm.C.

References TCharm::barrier(), and TCharm::get().

FORTRAN_AS_C ( TCHARM_BARRIER  ,
TCHARM_Barrier  ,
tcharm_barrier  ,
(void)  ,
()   
)

Definition at line 933 of file tcharm.C.

References c, CkExit(), TCharm::done(), and TCharm::getNULL().

FORTRAN_AS_C ( TCHARM_DONE  ,
TCHARM_Done  ,
tcharm_done  ,
(void)  ,
()   
)

Definition at line 942 of file tcharm.C.

References c, TCharm::getNULL(), and TCharm::getTimeOffset().

FDECL int FTN_NAME ( TCHARM_IARGC  ,
tcharm_iargc   
)

Definition at line 959 of file tcharm.C.

References CkGetArgc().

FDECL void FTN_NAME ( TCHARM_GETARG  ,
tcharm_getarg   
)

Definition at line 964 of file tcharm.C.

References CkGetArgc(), and CkGetArgv().

CDECL void TCHARM_Init ( int argc,
char ***  argv 
)

Definition at line 980 of file tcharm.C.

References _initCharm(), and ConverseInit().

Referenced by FTN_NAME().

FDECL void FTN_NAME ( TCHARM_INIT  ,
tcharm_init   
)

Definition at line 987 of file tcharm.C.

References TCHARM_Init().

CDECL int TCHARM_System ( const char *  shell_command  ) 

Definition at line 1087 of file tcharm.C.

References TCharm::get(), and TCharm::system().

Referenced by AMPI_System().


Variable Documentation

int lastNumChunks = 0 [static]

Definition at line 23 of file tcharm.C.

Definition at line 55 of file tcharm.C.

int tcharm_nomig = 0 [static]

Definition at line 56 of file tcharm.C.

int tcharm_nothreads = 0 [static]

Definition at line 56 of file tcharm.C.

Referenced by checkAddress(), TCharm::procInit(), TCharm::run(), TCharm::stop(), and TCharm::TCharm().

int tcharm_stacksize = 1*1024*1024 [static]

Definition at line 57 of file tcharm.C.

int tcharm_initted = 0 [static]

Definition at line 58 of file tcharm.C.

CkGroupID mapID [static]

Definition at line 60 of file tcharm.C.

char* mapping = NULL [static]

Definition at line 134 of file tcharm.C.

int _vals[2] = {0,1}

Definition at line 600 of file tcharm.C.

Definition at line 649 of file tcharm.C.

Referenced by TCHARM_Call_fallback_setup(), and TCHARM_Set_fallback_setup().


Generated on Sat May 26 08:08:11 2012 for Charm++ by  doxygen 1.5.5