Go to the source code of this file.
Data Structures | |
struct | CldProcInfo_s |
Typedefs | |
typedef struct CldProcInfo_s * | CldProcInfo |
Functions | |
void | CldMultipleSendPrio (int pe, int numToSend, int rank, int immed) |
CpvStaticDeclare (CldProcInfo, CldData) | |
CpvStaticDeclare (int, CldAskLoadHandlerIndex) | |
CpvStaticDeclare (int, CldAckNoTaskHandlerIndex) | |
CpvStaticDeclare (int, isStealing) | |
const char * | CldGetStrategy (void) |
static void | StealLoad (void) |
void | LoadNotifyFn (int l) |
static void | CldBeginIdle (void *dummy) |
static void | CldAskLoadHandler (requestmsg *msg) |
void | CldAckNoTaskHandler (requestmsg *msg) |
void | CldHandler (void *msg) |
void | CldBalanceHandler (void *msg) |
void | CldEnqueueGroup (CmiGroup grp, void *msg, int infofn) |
void | CldEnqueueMulti (int npes, const int *pes, void *msg, int infofn) |
void | CldEnqueue (int pe, void *msg, int infofn) |
void | CldNodeEnqueue (int node, void *msg, int infofn) |
void | CldGraphModuleInit (char **argv) |
void | CldModuleInit (char **argv) |
void | CldCallback (void) |
Variables | |
static int | WS_Threshold = -1 |
static int | _steal_prio = 0 |
static int | _stealonly1 = 0 |
static int | _steal_immediate = 0 |
static int | workstealingproactive = 0 |
typedef struct CldProcInfo_s * CldProcInfo |
Definition at line 450 of file cldb.C.
References calloc(), CldGetTokenFromRankAt(), CldSwitchHandler(), CmiFree(), CmiMultipleIsend(), CmiMultipleSend(), Converse::CmiSyncSendAndFree(), count, free(), len, CldToken_s::pred, CldProcInfo_s::sentinel, and CldToken_s::succ.
Referenced by CldAskLoadHandler().
CpvStaticDeclare | ( | CldProcInfo | , | |
CldData | ||||
) |
CpvStaticDeclare | ( | int | , | |
CldAskLoadHandlerIndex | ||||
) |
CpvStaticDeclare | ( | int | , | |
CldAckNoTaskHandlerIndex | ||||
) |
CpvStaticDeclare | ( | int | , | |
isStealing | ||||
) |
const char* CldGetStrategy | ( | void | ) |
Definition at line 31 of file cldb.workstealing.C.
Referenced by CldModuleGeneralInit().
static void StealLoad | ( | void | ) | [static] |
Definition at line 37 of file cldb.workstealing.C.
References _steal_immediate, CmiMyPe(), Converse::CmiSyncSend(), CmiWallTimer(), CrnRand(), requestmsg_s::from_pe, msg, requestmsg_s::to_pe, and traceUserBracketEvent().
Referenced by CldBeginIdle(), and LoadNotifyFn().
void LoadNotifyFn | ( | int | l | ) |
Definition at line 75 of file cldb.workstealing.C.
References CldCountTokens(), StealLoad(), and WS_Threshold.
static void CldBeginIdle | ( | void * | dummy | ) | [static] |
Definition at line 82 of file cldb.workstealing.C.
References CldCountTokens(), and StealLoad().
static void CldAskLoadHandler | ( | requestmsg * | msg | ) | [static] |
Definition at line 91 of file cldb.workstealing.C.
References _steal_prio, _stealonly1, CldCountTokensRank(), CldMultipleSend(), CldMultipleSendPrio(), CldSimpleMultipleSend(), CmiFree(), CmiRankOf(), Converse::CmiSyncSendAndFree(), CmiWallTimer(), requestmsg_s::from_pe, rank, requestmsg_s::to_pe, and traceUserBracketEvent().
void CldAckNoTaskHandler | ( | requestmsg * | msg | ) |
Definition at line 140 of file cldb.workstealing.C.
References _steal_immediate, CmiMyPe(), Converse::CmiSyncSendAndFree(), CmiWallTimer(), CrnRand(), requestmsg_s::from_pe, requestmsg_s::to_pe, and traceUserBracketEvent().
Referenced by CldGraphModuleInit().
void CldHandler | ( | void * | msg | ) |
Definition at line 175 of file cldb.workstealing.C.
References CldRestoreHandler(), and len.
void CldBalanceHandler | ( | void * | msg | ) |
Definition at line 193 of file cldb.workstealing.C.
References CldRestoreHandler().
Definition at line 200 of file cldb.workstealing.C.
References CldSwitchHandler(), Converse::CmiSyncMulticastAndFree(), and len.
Referenced by _CldEnqueueGroup().
Definition at line 216 of file cldb.workstealing.C.
References CldSwitchHandler(), Converse::CmiSyncListSendAndFree(), and len.
Referenced by _CldEnqueueMulti().
Definition at line 231 of file cldb.workstealing.C.
References CldSwitchHandler(), CmiMyPe(), CmiNodeOf(), Converse::CmiSyncBroadcastAllAndFree(), Converse::CmiSyncBroadcastAndFree(), Converse::CmiSyncSendAndFree(), and len.
Referenced by _CldEnqueue().
Definition at line 270 of file cldb.workstealing.C.
References CldSwitchHandler(), CmiMyPe(), CmiNodeOf(), and len.
Referenced by _CldNodeEnqueue(), and CldEnqueue().
void CldGraphModuleInit | ( | char ** | argv | ) |
Definition at line 300 of file cldb.workstealing.C.
References _steal_immediate, _steal_prio, _stealonly1, CcdCallOnConditionKeep(), CldAckNoTaskHandler(), CldAskLoadHandler(), CldBalanceHandler(), CldBeginIdle(), CmiAlloc(), CmiGetArgFlagDesc(), CmiGetArgIntDesc(), CmiMyPe(), CmiMyRank(), CmiPrintf(), CmiRegisterHandler(), traceRegisterUserEvent(), and WS_Threshold.
void CldCallback | ( | void | ) |
Definition at line 368 of file cldb.workstealing.C.
int WS_Threshold = -1 [static] |
Definition at line 19 of file cldb.workstealing.C.
Referenced by CldGraphModuleInit(), and LoadNotifyFn().
int _steal_prio = 0 [static] |
Definition at line 20 of file cldb.workstealing.C.
Referenced by CldAskLoadHandler(), and CldGraphModuleInit().
int _stealonly1 = 0 [static] |
Definition at line 21 of file cldb.workstealing.C.
Referenced by CldAskLoadHandler(), and CldGraphModuleInit().
int _steal_immediate = 0 [static] |
Definition at line 22 of file cldb.workstealing.C.
Referenced by CldAckNoTaskHandler(), CldGraphModuleInit(), and StealLoad().
int workstealingproactive = 0 [static] |
Definition at line 23 of file cldb.workstealing.C.