PPL Logo

conv-core/cpath.C File Reference

Go to the source code of this file.

Data Structures

struct  buffer
struct  eltset
struct  single
struct  reduction

Typedefs

typedef struct buffer buffer
typedef struct eltseteltset
typedef struct singlesingle
typedef struct reductionreduction

Functions

 CpvStaticDeclare (int *, PElist)
 CpvStaticDeclare (char *, PEflags)
 CpvStaticDeclare (int, seqno)
 CpvStaticDeclare (int, CPathSendIdx)
 CpvStaticDeclare (int, CPathReduceIdx)
 CpvStaticDeclare (eltset *, EltsetTable)
 CpvStaticDeclare (int, EltsetTabsize)
 CpvStaticDeclare (single *, SingleTable)
 CpvStaticDeclare (int, SingleTabsize)
 CpvStaticDeclare (reduction *, ReduceTable)
 CpvStaticDeclare (int, ReduceTabsize)
 CtvStaticDeclare (single, thisthread)
static void * bufalloc (buffer *b, int n)
unsigned int CPathIndicesToEltno (int nsizes, int *sizes, int *indices)
void CPathEltnoToIndices (int nsizes, int *sizes, unsigned int eltno, int *indices)
int CPathMap (CPath *path, int *indices)
int CPathRoot (CPath *path, int *indices)
void CPathExecute (single t)
single CPathGetSingle (CPath *path, int *indices)
eltset CPathAllocEltset (eltset old, int nlocals)
void CPathDecrementOdometer (int *odometer, int *sizes, int nvary, int *vary)
eltset CPathGetEltset (CPath *path, int *indices)
void CPathSend (int key,...)
void CPathSendHandler (char *decoded)
void * CPathRecv (int key,...)
void CPathMsgDecodeBytes (void *msg, int *len, void *bytes)
void CPathMsgDecodeReduction (void *msg, int *vecsize, int *eltsize, void *bytes)
void CPathMsgFree (void *msg)
void CPathMakeArray (CPath *path, int startfn, int mapfn,...)
void CPathMergeReduction (reduction red, void *data)
void CPathReduceMismatch (void)
void CPathCreateRedmsg (reduction red)
reduction CPathGetReduction (eltset set, int ntags, int *tags, int vecsize, int eltsize, int reducer, CPath *dest, int desteltno)
void CPathReduceHandler (void *decoded)
void CPathForwardReduction (reduction red)
void CPathReduce (int key,...)
void CPathModuleInit (void)


Typedef Documentation

typedef struct buffer buffer

Definition at line 14 of file cpath.C.

typedef struct eltset* eltset

Definition at line 15 of file cpath.C.

typedef struct single* single

Definition at line 16 of file cpath.C.

typedef struct reduction* reduction

Definition at line 17 of file cpath.C.


Function Documentation

CpvStaticDeclare ( int ,
PElist   
)

CpvStaticDeclare ( char *  ,
PEflags   
)

CpvStaticDeclare ( int  ,
seqno   
)

CpvStaticDeclare ( int  ,
CPathSendIdx   
)

CpvStaticDeclare ( int  ,
CPathReduceIdx   
)

CpvStaticDeclare ( eltset ,
EltsetTable   
)

CpvStaticDeclare ( int  ,
EltsetTabsize   
)

CpvStaticDeclare ( single ,
SingleTable   
)

CpvStaticDeclare ( int  ,
SingleTabsize   
)

CpvStaticDeclare ( reduction ,
ReduceTable   
)

CpvStaticDeclare ( int  ,
ReduceTabsize   
)

CtvStaticDeclare ( single  ,
thisthread   
)

static void* bufalloc ( buffer b,
int  n 
) [static]

Definition at line 86 of file cpath.C.

References CmiAlloc(), CmiFree(), buffer::data, buffer::fill, and buffer::size.

Referenced by CPathSend().

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned int CPathIndicesToEltno ( int  nsizes,
int sizes,
int indices 
)

Definition at line 113 of file cpath.C.

References index, and size.

Referenced by CPathGetEltset(), CPathGetSingle(), and CPathReduce().

Here is the caller graph for this function:

void CPathEltnoToIndices ( int  nsizes,
int sizes,
unsigned int  eltno,
int indices 
)

Definition at line 127 of file cpath.C.

References index, and size.

Referenced by CPathExecute(), CPathReduceHandler(), and CPathSend().

Here is the caller graph for this function:

int CPathMap ( CPath path,
int indices 
)

Definition at line 152 of file cpath.C.

References CPath::mapfn.

Referenced by CPathGetEltset(), and CPathRoot().

Here is the caller graph for this function:

int CPathRoot ( CPath path,
int indices 
)

Definition at line 158 of file cpath.C.

References CPathMap(), CPath::nsizes, and CPath::sizes.

Referenced by CPathSend().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathExecute ( single  t  ) 

Definition at line 169 of file cpath.C.

References CPathEltnoToIndices(), single::eltno, CPath::nsizes, single::path, CPath::sizes, and CPath::startfn.

Referenced by CPathGetSingle().

Here is the call graph for this function:

Here is the caller graph for this function:

single CPathGetSingle ( CPath path,
int indices 
)

Definition at line 179 of file cpath.C.

References CmmNew(), CPathExecute(), CPathIndicesToEltno(), CPath::creator, CthAwaken(), CthCreate(), single::eltno, malloc(), single::mm, single::next, CPath::nsizes, single::path, CPath::seqno, CPath::sizes, single::thread, and single::waiting.

Referenced by CPathGetEltset().

Here is the call graph for this function:

Here is the caller graph for this function:

eltset CPathAllocEltset ( eltset  old,
int  nlocals 
)

Definition at line 207 of file cpath.C.

References realloc().

Referenced by CPathGetEltset().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathDecrementOdometer ( int odometer,
int sizes,
int  nvary,
int vary 
)

Definition at line 212 of file cpath.C.

Referenced by CPathGetEltset().

Here is the caller graph for this function:

eltset CPathGetEltset ( CPath path,
int indices 
)

void CPathSend ( int  key,
  ... 
)

Definition at line 347 of file cpath.C.

References buf, bufalloc(), CmiAlloc(), CmiError(), Converse::CmiSyncSendAndFree(), CPathEltnoToIndices(), CPathRoot(), buffer::data, reduction::eltsize, buffer::fill, idx, CPath::nsizes, reduction::ntags, p, root, buffer::size, size, CPath::sizes, src, tags, and reduction::vecsize.

Referenced by CPathForwardReduction().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathSendHandler ( char *  decoded  ) 

Definition at line 437 of file cpath.C.

References CmiMyPe(), Converse::CmiSyncSend(), CmmPut(), CPathGetEltset(), CthAwaken(), len, single::mm, CPath::nsizes, reduction::ntags, p, tags, single::thread, and single::waiting.

Referenced by CPathModuleInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void* CPathRecv ( int  key,
  ... 
)

Definition at line 467 of file cpath.C.

References CmiError(), CthSuspend(), single::mm, msg, reduction::ntags, p, PUP::t, tags, and single::waiting.

Here is the call graph for this function:

void CPathMsgDecodeBytes ( void *  msg,
int len,
void *  bytes 
)

Definition at line 509 of file cpath.C.

References CPath::nsizes, reduction::ntags, and tags.

void CPathMsgDecodeReduction ( void *  msg,
int vecsize,
int eltsize,
void *  bytes 
)

Definition at line 521 of file cpath.C.

References CPath::nsizes, reduction::ntags, size, and tags.

void CPathMsgFree ( void *  msg  ) 

Definition at line 535 of file cpath.C.

References CmiFree().

Here is the call graph for this function:

void CPathMakeArray ( CPath path,
int  startfn,
int  mapfn,
  ... 
)

Definition at line 545 of file cpath.C.

References CmiError(), CmiMyPe(), CPath::creator, CPath::mapfn, CPath::nsizes, p, CPath::seqno, size, CPath::sizes, and CPath::startfn.

Here is the call graph for this function:

void CPathMergeReduction ( reduction  red,
void *  data 
)

Definition at line 716 of file cpath.C.

References reduction::anydata, CPathForwardReduction(), reduction::eltsize, reduction::msg_data, reduction::reducer, reduction::vecsize, and reduction::waitcount.

Referenced by CPathReduce(), and CPathReduceHandler().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathReduceMismatch ( void   ) 

Definition at line 579 of file cpath.C.

References CmiError().

Referenced by CPathGetReduction().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathCreateRedmsg ( reduction  red  ) 

Definition at line 585 of file cpath.C.

References CmiAlloc(), reduction::dest, reduction::desteltno, eltset::eltno, reduction::eltsize, msg, reduction::msg_begin, reduction::msg_data, reduction::msg_end, reduction::ntags, reduction::over, eltset::path, reduction::reducer, PUP::t, reduction::tags, and reduction::vecsize.

Referenced by CPathGetReduction().

Here is the call graph for this function:

Here is the caller graph for this function:

reduction CPathGetReduction ( eltset  set,
int  ntags,
int tags,
int  vecsize,
int  eltsize,
int  reducer,
CPath dest,
int  desteltno 
)

void CPathReduceHandler ( void *  decoded  ) 

Definition at line 664 of file cpath.C.

References CPathEltnoToIndices(), CPathGetEltset(), CPathGetReduction(), CPathMergeReduction(), data, dest, reduction::desteltno, reduction::eltsize, CPath::nsizes, reduction::ntags, reduction::over, reduction::reducer, CPath::sizes, tags, and reduction::vecsize.

Referenced by CPathModuleInit().

Here is the call graph for this function:

Here is the caller graph for this function:

void CPathForwardReduction ( reduction  red  ) 

void CPathReduce ( int  key,
  ... 
)

void CPathModuleInit ( void   ) 

Definition at line 792 of file cpath.C.

References calloc(), CmiRegisterHandler(), CPathReduceHandler(), CPathSendHandler(), int, and malloc().

Here is the call graph for this function:


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