PPL Logo

CkSectionID Class Reference

A class that holds complete info about an array/group section. More...

#include <cksection.h>

Collaboration diagram for CkSectionID:

Collaboration graph
[legend]

Public Member Functions

 CkSectionID ()
 CkSectionID (const CkSectionID &sid)
 CkSectionID (CkSectionInfo &c, const CkArrayIndex *e, int n, const int *_pelist, int _npes, int factor=USE_DEFAULT_BRANCH_FACTOR)
 CkSectionID (CkSectionInfo &c, const std::vector< CkArrayIndex > &e, const std::vector< int > &_pelist, int factor=USE_DEFAULT_BRANCH_FACTOR)
 CkSectionID (const CkGroupID &gid, const int *_pelist, const int _npes, int factor=USE_DEFAULT_BRANCH_FACTOR)
 CkSectionID (const CkGroupID &gid, const std::vector< int > &_pelist, int factor=USE_DEFAULT_BRANCH_FACTOR)
 CKSECTIONID_CONSTRUCTOR (1D) CKSECTIONID_CONSTRUCTOR(2D) CKSECTIONID_CONSTRUCTOR(3D) CKSECTIONID_CONSTRUCTOR(4D) CKSECTIONID_CONSTRUCTOR(5D) CKSECTIONID_CONSTRUCTOR(6D) CKSECTIONID_CONSTRUCTOR(Max) inline CkGroupID get_aid() const
int nElems () const
int nPes () const
void operator= (const CkSectionID &)
 ~CkSectionID ()
void pup (PUP::er &p)

Data Fields

CkSectionInfo _cookie
 Minimal section info (cookie).
std::vector< CkArrayIndex > _elems
 The list of array indices that are section members (array sections).
std::vector< intpelist
 A list of PEs that host section members.
int bfactor
 Branching factor in the spanning tree, can be negative.

Detailed Description

A class that holds complete info about an array/group section.

Describes section members, host PEs, current section status etc.

Definition at line 138 of file cksection.h.


Constructor & Destructor Documentation

CkSectionID::CkSectionID (  )  [inline]

Definition at line 154 of file cksection.h.

CkSectionID::CkSectionID ( const CkSectionID sid  ) 

Definition at line 436 of file ck.C.

References _cookie, _elems, bfactor, and pelist.

CkSectionID::CkSectionID ( CkSectionInfo c,
const CkArrayIndex *  e,
int  n,
const int _pelist,
int  _npes,
int  factor = USE_DEFAULT_BRANCH_FACTOR 
) [inline]

Definition at line 156 of file cksection.h.

References _elems, and pelist.

CkSectionID::CkSectionID ( CkSectionInfo c,
const std::vector< CkArrayIndex > &  e,
const std::vector< int > &  _pelist,
int  factor = USE_DEFAULT_BRANCH_FACTOR 
) [inline]

Definition at line 162 of file cksection.h.

CkSectionID::CkSectionID ( const CkGroupID gid,
const int _pelist,
const int  _npes,
int  factor = USE_DEFAULT_BRANCH_FACTOR 
)

CkSectionID::CkSectionID ( const CkGroupID gid,
const std::vector< int > &  _pelist,
int  factor = USE_DEFAULT_BRANCH_FACTOR 
)

Definition at line 432 of file ck.C.

References _cookie, and CkSectionInfo::get_aid().

Here is the call graph for this function:

CkSectionID::~CkSectionID (  ) 


Member Function Documentation

CkSectionID::CKSECTIONID_CONSTRUCTOR ( 1D   )  const [inline]

Definition at line 169 of file cksection.h.

References _cookie, and CkSectionInfo::get_aid().

Here is the call graph for this function:

int CkSectionID::nElems (  )  const [inline]

Definition at line 178 of file cksection.h.

References _elems.

int CkSectionID::nPes (  )  const [inline]

Definition at line 179 of file cksection.h.

References pelist.

void CkSectionID::operator= ( const CkSectionID sid  ) 

Definition at line 443 of file ck.C.

References _cookie, _elems, bfactor, and pelist.

void CkSectionID::pup ( PUP::er p  ) 

Definition at line 450 of file ck.C.

References _cookie, _elems, bfactor, and pelist.


Field Documentation

std::vector<CkArrayIndex> CkSectionID::_elems

The list of array indices that are section members (array sections).

Definition at line 143 of file cksection.h.

Referenced by CkCallback::CkCallback(), CkSectionID(), nElems(), operator=(), pup(), CkMulticastMgr::resetSection(), and CkMulticastMgr::SimpleSend().

std::vector<int> CkSectionID::pelist

A list of PEs that host section members.

  • For group sections these point to the PEs in the section
  • For array sections these point to the processors the array elements are on
    Note:
    For array sections, currently not saved when pupped across processors

Definition at line 150 of file cksection.h.

Referenced by CkCallback::CkCallback(), CkSectionID(), CkDelegateMgr::GroupSectionSend(), CkDelegateMgr::NodeGroupSectionSend(), nPes(), operator=(), and pup().

Branching factor in the spanning tree, can be negative.

Definition at line 152 of file cksection.h.

Referenced by CkSectionID(), operator=(), CkMulticastMgr::prepareCookie(), CkMulticastMgr::prepareGrpCookie(), and pup().


The documentation for this class was generated from the following files:

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