PPL Logo

util/ckstandalone.C File Reference

Go to the source code of this file.

Enumerations

enum  { tc_global_max = 64 }

Functions

void CmiAbort (const char *why)
 "Standalone" version of all the Charm++ routines needed by simple libraries.
void CmiPrintf (const char *fmt,...)
void CmiError (const char *fmt,...)
void * CmiTmpAlloc (int size)
void CmiTmpFree (void *p)
void __cmi_assert (const char *errmsg)
CLINKAGE double CmiTimer (void)
CLINKAGE double CmiWallTimer (void)
CLINKAGE void TCHARM_Migrate (void)
void TCHARM_Set_global (int globalID, void *new_value, TCHARM_Pup_global_fn pup_or_NULL)
void * TCHARM_Get_global (int globalID)
CLINKAGE int TCHARM_Register (void *data, TCHARM_Pup_fn pfn)
 FORTRAN_AS_C_RETURN (int, TCHARM_REGISTER, TCHARM_Register, tcharm_register,(void *data, TCHARM_Pup_fn pfn),(data, pfn))
CLINKAGE void TCHARM_Done (int exitcode)
 FORTRAN_AS_C (TCHARM_DONE, TCHARM_Done, tcharm_done,(int *exitcode),(*exitcode)) CLINKAGE void TCHARM_Barrier(void)
 FORTRAN_AS_C (TCHARM_BARRIER, TCHARM_Barrier, tcharm_barrier,(void),())
 FORTRAN_AS_C_RETURN (int, TCHARM_ELEMENT, TCHARM_Element, tcharm_element,(void),())
 FORTRAN_AS_C_RETURN (int, TCHARM_NUM_ELEMENTS, TCHARM_Num_elements, tcharm_num_elements,(void),())
 FORTRAN_AS_C_RETURN (double, TCHARM_WALL_TIMER, TCHARM_Wall_timer, tcharm_wall_timer,(void),())
CLINKAGE int CmiGetArgIntDesc (char **argv, const char *arg, int *optDest, const char *desc)
 Find the given argument and integer option in argv.
FLINKAGE void FTN_NAME (TCHARM_GETARG, tcharm_getarg)

Variables

int _Cmi_mype = 0
int _Cmi_numpes = 1
int _Cmi_mynodesize = 1
int _Cmi_mynode = 0
int _Cmi_numnodes = 1
double _cpu_speed_factor = 0.0
void * tc_globals [tc_global_max]


Enumeration Type Documentation

anonymous enum

Enumerator:
tc_global_max 

Definition at line 62 of file ckstandalone.C.


Function Documentation

void CmiAbort ( const char *  why  ) 

"Standalone" version of all the Charm++ routines needed by simple libraries.

Serial version of common Charm++ routines:.

Currently only used for FEM_ALONE mode.

Orion Sky Lawlor, olawlor@acm.org, 2003/8/15

Definition at line 17 of file ckstandalone.C.

References abort(), and CmiAbortHelper().

Referenced by __cmi_assert(), _callWhenIdle(), _cmiZeroHandler(), _exitHandler(), _handlePhase1(), _initCharm(), _initHandler(), _libExitHandler(), _nullFn(), _ObjectQHandler(), _parseCommandLineOpts(), _processHandler(), _receiveLocationHandler(), _roRdmaDoneHandler(), _TokenHandler(), LogPool::add(), CkReductionMgr::addContribution(), NetFEM_update::addElems(), LBDatabase::addLoadbalancer(), NetFEM_update::addNodes(), advanceNodes(), ARMCI_Wait(), CkDelegateMgr::ArraySectionSend(), TraceCounter::beginExecute(), TraceCounter::beginOverview(), CkMemCheckPT::BuddyPE(), GreedyAgentLB::BuildCpuArray(), CkReductionMsg::buildFromTuple(), GreedyAgentLB::BuildObjectArray(), PUP::fromTextFile::bytes(), PUP::toTextFile::bytes(), PUP::toTextUtil::bytes(), PUP_toNetwork4_unpack::bytes(), PUP_toNetwork4_pack::bytes(), PUP_toNetwork_unpack::bytes(), PUP_toNetwork_pack::bytes(), PUP_fromPagedDisk::bytes(), PUP_fmt::bytes(), call_mmap_anywhere(), call_mmap_fixed(), call_munmap(), ccs_killpe(), CcsBufferMessage(), CcsImpl_ccs2converse(), CcsReply(), CcsSendReply(), CcsSetMergeFn(), CentralLB::changeFreq(), CharmBeginInit(), CharmLibInit(), check_and_set_queue_parameters(), CheckAllAsyncMsgsSent(), CheckAsyncMsgSent(), CkNcpyBuffer::checkDeregModeIsValid(), chpt< StateType >::checkpoint(), CkNcpyBuffer::checkRegModeIsValid(), checkTSanOptions(), CkDiskCheckPTInfo::CkDiskCheckPTInfo(), CkFindObjectPtr(), CkGetSectionInfo(), CkHashFunction_pointer(), CkMessageWatcherInit(), CkRdmaEMAckHandler(), CkRdmaEMBcastPostAckHandler(), CkRdmaIssueRgets(), CkSendMsg(), CkSendMsgBranchGroup(), CldComputeNeighborData(), CldEnqueue(), CldEnqueueGroup(), CldReadNeighborData(), CmiAddCLA(), CmiAsyncBroadcastFn(), CmiCheckAffinity(), CmiCommLock(), CmiCommUnlock(), CmiCreatePartitions(), CmiDisplayCMAThresholds(), CmiFree(), CmiGetArgIntDesc(), CmiGetArgLongDesc(), CmiGetArgStringDesc(), CmiGetDynamicReduction(), CmiGetNonLocalNodeQ(), CmiGetReductionCreate(), CmiGroupInit(), CmiHandleMessage(), CmiInitCma(), CmiInitCPUAffinity(), CmiInitMemAffinity(), CmiInitPxshm(), CmiInitXpmem(), CmiIOInit(), CmiIsomallocBlockListFree(), CmiIsomallocPup(), CmiMemoryMarkBlock(), CmiNodeReduce(), CmiNodeReduceStruct(), CmiOnCore(), CmiOutOfMemory(), CmiPoolFree(), CmiProcessPriority(), CmiRdmaFree(), CmiSendMessageXpmem(), CmiSetCPUAffinity(), CmiSetMasterPartition(), CmiSetPartitionSizes(), CmiStartCounters(), CmiStopCounters(), CmiTLSInit(), CmiUsePersistentHandle(), CmmFree(), PUP::fromTextFile::comment(), eventQueue::CommitEvents(), TopoLB::computePartitions(), TopoCentLB::computePartitions(), CkMulticastMgr::contribute(), ConverseCommonInit(), ConverseInit(), cpd_memory_single_pup(), CpdConditional_SetupComm(), CpdGetNextMessageConditional(), CpdStartGdb(), cpuAffinityRecvHandler(), CQdCallWhenIdle(), CQdHandlePhase1(), RefinerTemp::create(), RefinerApprox::create(), Refiner::create(), create_partition_map(), createCtrlMsgIrecvBufs(), CkMemCheckPT::createEntry(), CreateLBFunc_Def(), LogPool::createRC(), LogPool::createSts(), TraceBluegene::creatFiles(), CtgFree(), CtgGlobalList::CtgGlobalList(), CtgPup(), CthAliasCreate(), CthAliasEnable(), CthCheckThreadSanity(), CthCreate(), CthCreateInner(), CthNoStrategy(), CthPup(), CthPupBase(), CthScheduledDecrement(), CthSuspend(), CthSuspendStealableThread(), CWeb_Invalid(), CWeb_Reduce(), CWebPerformanceRegisterFunction(), decompressLz4(), StringPool::dump(), CkLocMgr::emigrate(), TraceCounter::endExecute(), TraceCounter::endOverview(), TopoCentLB::extractMax(), FEM_Coarsen_Operation(), PUP_fmt::fieldHeader(), fillblock(), CkHashtable::findEntry(), TraceMemory::flush(), PUP::fromMemBuf(), gengraph(), CkCheckPTEntry::getCopy(), CkMemCheckPTInfo::getCopy(), MSA::MSA3D< ENTRY, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::getInitialAccum(), MSA::MSA3D< ENTRY, ENTRY_OPS_CLASS, ENTRIES_PER_PAGE >::getInitialWrite(), NetFEM_update::getItem(), getMeshCoord(), grab_slots(), Group::Group(), handleMsgOnChildPostCompletionForRecvBcast(), hostInfo(), liveVizConfig::init(), CkCheckPTEntry::init(), init_ranges(), initBigSimTrace(), initHandlerRec(), CkMemCheckPT::isMaster(), isomalloc_internal_alloc_block(), isomallocfn(), KLevelTree::KLevelTree(), liveVizInit(), LV3D_save_init(), LV3D_save_view(), main::main(), map_failed(), match(), matchTest(), memAbort(), mempool_malloc(), meta_free(), LBDB::Migrate(), MPISendOneMsg(), MPISendOrRecvOneBuffer(), ArmciVirtualProcessor::msgGop(), NborBaseLB::NborBaseLB(), node_gToLTranslate(), node_lToGTranslate(), ntohl(), ck::ObjID::ObjID(), on_timeout(), CountLogPool::openFile(), LogPool::openLog(), TraceLogger::openLogFiles(), _CkOStream::output(), PUP::fromTextFile::parseError(), GridMetisLB::Partition_ClusterObjects_Into_PEs(), pe_gToLTranslate(), performEmApiRget(), POSEreadCmdLine(), print_node0(), PumpMsgs(), PumpMsgsBlocking(), NetFEM_update::pup(), pup_checkMPIerr(), PUP_getRegEntry(), PUP::er::pupCmiAllocBuf(), CkHashtable::put(), read_randomflag(), readBlacklist(), readMHz(), readonlyGet(), readShmCma(), CentralLB::readStatsMsgs(), recursive_bisect(), CkMemCheckPT::recvArrayCheckpoint(), CkMemCheckPT::recvData(), CkMulticastMgr::recvRedMsg(), recvViaCtrlMsg(), CkMulticastMgr::reduceFragment(), TraceCounter::registerArg(), TraceLogger::RegisterLanguage(), ReleasePostedMessages(), CkCompactVec< T >::remove(), CkVec< CkZeroPtr< T, PUP_PTR > >::remove(), RefinerTemp::removeComputes(), Refiner::removeComputes(), chpt< StateType >::restore(), CkLocMgr::restore(), CkLocMgr::resume(), Chare::sanitycheck(), PUP::seekBlock::seek(), PUP::seekBlock::seekBlock(), CkCallback::send(), SendMsgBuf(), sendRemoveLogRequests(), CkMulticastMgr::sendToSection(), sendViaCtrlMsg(), FEM_Attribute::set(), PhaseTable::setEp(), PhaseEntry::setEp(), SumLogPool::setEp(), CountLogPool::setEp(), setReverseModeForNcpyOpInfo(), OrbLB::sort_partition(), LBDB::StartLB(), PhaseTable::startPhase(), TraceCore::startPtc(), NeighborCommLB::Strategy(), SumLogPool::SumLogPool(), CkMemCheckPT::syncFiles(), MSA::MSAHandle< MSA::MSA1D< ElemList, DefaultListEntry< ElemList, true >, MSA_DEFAULT_ENTRIES_PER_PAGE > >::syncRelease(), TempAwareRefineLB::TempAwareRefineLB(), PUP::toMemBuf(), TopologyAgent::TopologyAgent(), TopoManager_init(), traceCommonInit(), TraceCounter::traceInit(), TraceProjector::traceRegisterUserEvent(), parallelTransfer_c::transfer(), parallelSurfaceTransfer_c::transfer(), CkReduction::tupleReduction_fn(), BaseLB::turnOff(), BaseLB::turnOn(), ParFUMShadowArray::unlockSharedIdxls(), minHeap::update(), SumLogPool::updateSummaryDetail(), TramBroadcastInstance< CkArrayIndex >::value(), TopoLB::work(), TopoCentLB::work(), TempAwareCommLB::work(), RotateLB::work(), RefineTopoLB::work(), RandCentLB::work(), OrbLB::work(), GreedyLB::work(), GreedyCommLB::work(), CommLB::work(), BlockLB::work(), TraceSummaryBOC::write(), SumLogPool::write(), writeShmCma(), LogPool::writeStatis(), CentralLB::writeStatsMsgs(), TraceUtilization::writeSts(), SumLogPool::writeSts(), writeSts(), CountLogPool::writeSts(), and WSLB::WSLB().

Here is the call graph for this function:

CLINKAGE void TCHARM_Migrate ( void   ) 

Definition at line 60 of file ckstandalone.C.

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

Here is the call graph for this function:

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

Definition at line 64 of file ckstandalone.C.

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

Here is the call graph for this function:

void* TCHARM_Get_global ( int  globalID  ) 

Definition at line 67 of file ckstandalone.C.

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

Here is the call graph for this function:

CLINKAGE int TCHARM_Register ( void *  data,
TCHARM_Pup_fn  pfn 
)

Definition at line 73 of file ckstandalone.C.

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

Here is the call graph for this function:

FORTRAN_AS_C_RETURN ( int  ,
TCHARM_REGISTER  ,
TCHARM_Register  ,
tcharm_register  ,
(void *data, TCHARM_Pup_fn pfn)  ,
(data, pfn)   
)

Definition at line 74 of file ckstandalone.C.

CLINKAGE 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:

FORTRAN_AS_C ( TCHARM_DONE  ,
TCHARM_Done  ,
tcharm_done  ,
(int *exitcode)  ,
exitcode 
)

Definition at line 80 of file ckstandalone.C.

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

Definition at line 83 of file ckstandalone.C.

FORTRAN_AS_C_RETURN ( int  ,
TCHARM_ELEMENT  ,
TCHARM_Element  ,
tcharm_element  ,
(void)  ,
()   
)

Definition at line 86 of file ckstandalone.C.

FORTRAN_AS_C_RETURN ( int  ,
TCHARM_NUM_ELEMENTS  ,
TCHARM_Num_elements  ,
tcharm_num_elements  ,
(void)  ,
()   
)

Definition at line 89 of file ckstandalone.C.

FORTRAN_AS_C_RETURN ( double  ,
TCHARM_WALL_TIMER  ,
TCHARM_Wall_timer  ,
tcharm_wall_timer  ,
(void)  ,
()   
)

Definition at line 92 of file ckstandalone.C.

References saved_argv.

FLINKAGE void FTN_NAME ( TCHARM_GETARG  ,
tcharm_getarg   
)

Definition at line 133 of file ckstandalone.C.

References saved_argv, and src.


Variable Documentation

Definition at line 45 of file ckstandalone.C.

Definition at line 46 of file ckstandalone.C.

Definition at line 47 of file ckstandalone.C.

Definition at line 48 of file ckstandalone.C.

Definition at line 49 of file ckstandalone.C.

void* tc_globals[tc_global_max]

Definition at line 63 of file ckstandalone.C.

Referenced by TCHARM_Get_global(), and TCHARM_Set_global().


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