•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Search Results
TiledArray::detail::HashPmap Class Reference
Inheritance diagram for TiledArray::detail::HashPmap:

Collaboration diagram for TiledArray::detail::HashPmap:

Documentation
Hashed process map.
Definition at line 35 of file hash_pmap.h.
Public Types | |
typedef Pmap::size_type size_type | |
Size type. More... | |
![]() | |
typedef std::size_t size_type | |
Size type. More... | |
typedef Iterator const_iterator | |
Iterator type. More... | |
Public Member Functions | |
HashPmap (World &world, const size_type size, madness::hashT seed=0ul) | |
Construct a hashed process map. More... | |
virtual ~HashPmap () | |
virtual size_type owner (const size_type tile) const | |
Maps tile to the processor that owns it. More... | |
virtual bool is_local (const size_type tile) const | |
Check that the tile is owned by this process. More... | |
virtual bool known_local_size () const | |
Queries whether local size is known. More... | |
![]() | |
Pmap (World &world, const size_type size) | |
Process map constructor. More... | |
virtual ~Pmap () | |
size_type size () const | |
Size accessor. More... | |
size_type rank () const | |
Process rank accessor. More... | |
size_type procs () const | |
Process count accessor. More... | |
size_type local_size () const | |
Local size accessor. More... | |
bool empty () const | |
Check if there are any local elements. More... | |
virtual bool is_replicated () const | |
Replicated array status. More... | |
virtual const_iterator begin () const | |
Begin local element iterator. More... | |
virtual const_iterator end () const | |
End local element iterator. More... | |
const const_iterator cbegin () const | |
Begin local element iterator. More... | |
const const_iterator cend () const | |
End local element iterator. More... | |
Protected Attributes | |
const size_type procs_ | |
The number of processes. More... | |
const size_type rank_ | |
< The number of processes More... | |
const size_type size_ | |
< The rank of this process More... | |
![]() | |
const size_type rank_ | |
The rank of this process. More... | |
const size_type procs_ | |
The number of processes. More... | |
const size_type size_ | |
The number of tiles mapped among all processes. More... | |
std::vector< size_type > local_ | |
A list of local tiles (may be empty, if not needed) More... | |
size_type local_size_ | |
Member Typedef Documentation
◆ size_type
Size type.
Definition at line 46 of file hash_pmap.h.
Constructor & Destructor Documentation
◆ HashPmap()
|
inline |
Construct a hashed process map.
- Parameters
-
world The world where the tiles are mapped size The number of tiles to be mapped seed The hash seed used to generate different maps
Definition at line 53 of file hash_pmap.h.
◆ ~HashPmap()
|
inlinevirtual |
Definition at line 56 of file hash_pmap.h.
Member Function Documentation
◆ is_local()
|
inlinevirtual |
Check that the tile is owned by this process.
- Parameters
-
tile The tile to be checked
- Returns
true
iftile
is owned by this process, otherwisefalse
.
Implements TiledArray::Pmap.
Definition at line 73 of file hash_pmap.h.
Here is the call graph for this function:

◆ known_local_size()
|
inlinevirtual |
Queries whether local size is known.
- Returns
- true if the number of local elements is known
- Note
- Override if it is too expensive to precompute
Reimplemented from TiledArray::Pmap.
Definition at line 77 of file hash_pmap.h.
◆ owner()
Maps tile
to the processor that owns it.
- Parameters
-
tile The tile to be queried
- Returns
- Processor that logically owns
tile
Implements TiledArray::Pmap.
Definition at line 62 of file hash_pmap.h.
Here is the caller graph for this function:

Member Data Documentation
◆ procs_
|
protected |
◆ rank_
|
protected |
◆ size_
|
protected |
The documentation for this class was generated from the following file:
- TiledArray/pmap/hash_pmap.h