PPL Logo

libs/ck-libs/tcharm/tcharmc.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* TCHARM_Thread_start_fn )(void)
typedef void(* TCHARM_Thread_data_start_fn )(void *threadData)
typedef void(* TCHARM_Pup_fn )(pup_er p, void *data)
typedef void(* TCHARM_Pup_global_fn )(pup_er p)

Functions

void TCHARM_User_node_setup (void)
void TCHARM_User_setup (void)
void TCHARM_Call_fallback_setup (void)
void TCHARM_Set_stack_size (int newStackSize)
void TCHARM_Set_exit (void)
int TCHARM_Get_num_chunks (void)
void TCHARM_Create (int nThreads, int threadFn)
void TCHARM_Create_data (int nThreads, int threadFn, void *threadData, int threadDataLen)
int TCHARM_Register_thread_function (TCHARM_Thread_data_start_fn fn)
int TCHARM_Element (void)
int TCHARM_Num_elements (void)
void TCHARM_Barrier (void)
void TCHARM_Migrate (void)
void TCHARM_Async_Migrate (void)
void TCHARM_Allow_Migrate (void)
void TCHARM_Migrate_to (int destPE)
void TCHARM_Evacuate ()
int TCHARM_System (const char *shell_command)
void TCHARM_Done (int exitcode)
void TCHARM_Yield (void)
int TCHARM_Register (void *data, TCHARM_Pup_fn pfn)
void * TCHARM_Get_userdata (int id)
void TCHARM_Set_global (int globalID, void *new_value, TCHARM_Pup_global_fn pup_or_NULL)
void * TCHARM_Get_global (int globalID)
double TCHARM_Wall_timer (void)
void TCHARM_Init (int *argc, char ***argv)
void TCHARM_In_user_setup (void)


Typedef Documentation

typedef void(* TCHARM_Thread_start_fn)(void)

Definition at line 33 of file tcharmc.h.

typedef void(* TCHARM_Thread_data_start_fn)(void *threadData)

Definition at line 37 of file tcharmc.h.

typedef void(* TCHARM_Pup_fn)(pup_er p, void *data)

Definition at line 58 of file tcharmc.h.

typedef void(* TCHARM_Pup_global_fn)(pup_er p)

Definition at line 63 of file tcharmc.h.


Function Documentation

void TCHARM_User_node_setup ( void   ) 

Definition at line 3 of file compat_uns.c.

Referenced by TCharmMain::nodeInit().

Here is the caller graph for this function:

void TCHARM_User_setup ( void   ) 

Definition at line 3 of file compat_us.c.

References TCHARM_Call_fallback_setup().

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_Call_fallback_setup ( void   ) 

Definition at line 604 of file tcharm.C.

References g_fallbackSetup.

Referenced by TCHARM_User_setup().

Here is the caller graph for this function:

void TCHARM_Set_stack_size ( int  newStackSize  ) 

Definition at line 647 of file tcharm.C.

References g_tcharmOptions, and TCHARM_Thread_options::stackSize.

Referenced by FTN_NAME().

Here is the caller graph for this function:

void TCHARM_Set_exit ( void   ) 

Definition at line 656 of file tcharm.C.

References TCHARM_Thread_options::exitWhenDone, and g_tcharmOptions.

Referenced by TCharmMain::TCharmMain().

Here is the caller graph for this function:

int TCHARM_Get_num_chunks ( void   ) 

Definition at line 617 of file tcharm.C.

References argv, CkGetArgv(), Converse::CkMyPe(), Converse::CkNumPes(), CmiGetArgIntDesc(), and lastNumChunks.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_Create ( int  nThreads,
int  threadFn 
)

Definition at line 659 of file tcharm.C.

References TCHARM_Create_data().

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 673 of file tcharm.C.

References TCharmInitMsg::data, g_tcharmOptions, msg, TCharmInitMsg::numElements, TCHARM_Build_threads(), and TCHARM_Thread_options::TCHARM_Thread_options().

Referenced by ampiCreateMain(), FTN_NAME(), and TCHARM_Create().

Here is the call graph for this function:

Here is the caller graph for this function:

int TCHARM_Register_thread_function ( TCHARM_Thread_data_start_fn  fn  ) 

Definition at line 145 of file tcharm.C.

References idx, CkVec< T >::push_back(), and CkVec< T >::size().

Referenced by ampiNodeInit(), and MBlockNodeInit().

Here is the call graph for this function:

Here is the caller graph for this function:

int TCHARM_Element ( void   ) 

Definition at line 759 of file tcharm.C.

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

Referenced by AMPI_Register_main(), ampiInit(), ARMCI_Init(), ARMCI_Myid(), FTN_NAME(), MBLK_Get_myblock(), MBLK_Init(), and MBLK_Print().

Here is the call graph for this function:

Here is the caller graph for this function:

int TCHARM_Num_elements ( void   ) 

Definition at line 764 of file tcharm.C.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_Barrier ( void   ) 

void TCHARM_Migrate ( void   ) 

Definition at line 834 of file tcharm.C.

References Converse::CkMyPe(), CthMigratable(), TCharm::get(), and TCharm::migrate().

Referenced by AMPI_Migrate(), and ARMCI_Migrate().

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_Async_Migrate ( void   ) 

Referenced by AMPI_Migrate(), and ARMCI_Async_Migrate().

Here is the caller graph for this function:

void TCHARM_Allow_Migrate ( void   ) 

void TCHARM_Migrate_to ( int  destPE  ) 

Referenced by AMPI_Migrate_to_pe().

Here is the caller graph for this function:

void TCHARM_Evacuate (  ) 

Definition at line 867 of file tcharm.C.

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

Referenced by AMPI_Evacuate().

Here is the call graph for this function:

Here is the caller graph for this function:

int TCHARM_System ( const char *  shell_command  ) 

Definition at line 1043 of file tcharm.C.

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

Referenced by AMPI_System().

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_Done ( int  exitcode  ) 

Definition at line 79 of file ckstandalone.C.

Referenced by AMPI_Exit(), and ARMCI_Finalize().

Here is the caller graph for this function:

void TCHARM_Yield ( void   ) 

int TCHARM_Register ( void *  data,
TCHARM_Pup_fn  pfn 
)

Definition at line 791 of file tcharm.C.

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

Referenced by AMPI_Register_pup(), and MBLK_Register().

Here is the call graph for this function:

Here is the caller graph for this function:

void* TCHARM_Get_userdata ( int  id  ) 

Definition at line 805 of file tcharm.C.

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

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 814 of file tcharm.C.

References TCharm::get(), TCharm::getThread(), TCharm::sud, and tc_globals.

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

Here is the call graph for this function:

Here is the caller graph for this function:

void* TCHARM_Get_global ( int  globalID  ) 

Definition at line 825 of file tcharm.C.

References TCharm::get(), CkVec< T >::length(), TCharm::sud, and tc_globals.

Referenced by FEM_Init(), FEM_chunk::get(), FEMchunk::get(), IDXL_Chunk::getNULL(), IDXL_Init(), pupFEM_Chunk(), and pupIDXL_Chunk().

Here is the call graph for this function:

Here is the caller graph for this function:

double TCHARM_Wall_timer ( void   ) 

Referenced by AMPI_API_IMPL(), and MBLK_Timer().

Here is the caller graph for this function:

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

Definition at line 936 of file tcharm.C.

References _initCharm(), ConverseInit(), and tcharm_initted.

Referenced by FTN_NAME().

Here is the call graph for this function:

Here is the caller graph for this function:

void TCHARM_In_user_setup ( void   ) 


Generated on Mon Sep 21 08:11:18 2020 for Charm++ by  doxygen 1.5.5