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 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 ()


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().

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

Definition at line 113 of file cpath.c.

References size.

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

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

Definition at line 127 of file cpath.c.

References size.

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

int CPathMap ( CPath path,
int indices 
)

Definition at line 152 of file cpath.c.

References CPath::mapfn.

Referenced by CPathGetEltset(), and CPathRoot().

int CPathRoot ( CPath path,
int indices 
)

Definition at line 158 of file cpath.c.

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

Referenced by CPathSend().

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().

single CPathGetSingle ( CPath path,
int indices 
)

eltset CPathAllocEltset ( eltset  old,
int  nlocals 
)

Definition at line 207 of file cpath.c.

References realloc().

Referenced by CPathGetEltset().

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

Definition at line 212 of file cpath.c.

Referenced by CPathGetEltset().

eltset CPathGetEltset ( CPath path,
int indices 
)

void CPathSend ( int  key,
  ... 
)

void CPathSendHandler ( char *  decoded  ) 

void* CPathRecv ( int  key,
  ... 
)

Definition at line 467 of file cpath.c.

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

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

Definition at line 509 of file cpath.c.

References CPath::nsizes, reduction::ntags, and reduction::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 reduction::tags.

void CPathMsgFree ( void *  msg  ) 

Definition at line 535 of file cpath.c.

References CmiFree().

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

void CPathMergeReduction ( reduction  red,
void *  data 
)

void CPathReduceMismatch (  ) 

Definition at line 579 of file cpath.c.

References CmiError().

Referenced by CPathGetReduction().

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 (  ) 

Definition at line 792 of file cpath.c.

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


Generated on Fri May 25 08:00:44 2012 for Charm++ by  doxygen 1.5.5