|
|
std::shared_ptr< py::object > | m_originalInstance |
| |
◆ assign()
Assign chunks to be loaded to reading processes.
To be defined by implementors.
- Parameters
-
| partialAssignment | Two chunktables, one of unassigned chunks and one of chunks that might have already been assigned previously. Merge the unassigned chunks into the partially assigned table. |
| in | Meta information on writing processes, e.g. hostnames. |
| out | Meta information on reading processes, e.g. hostnames. |
| my_rank | Rank identifier for the current process. Will be considered by some distribution strategies that may be called for only a subselection of the data space (e.g. for distributing data within processes on the same compute node in a cluster). |
| num_ranks | Number of processes among which chunks are to be distributed. Will be considered by some distribution strategies that may be called for only a subselection of the data space (e.g. for distributing data within processes on the same compute node in a cluster). |
- Returns
- Two chunktables, one of leftover chunks that were not assigned and one that assigns chunks to reading processes. Assigned chunks are sorted by the destination process ID (MPI rank). Distribution strategies will in general only need to fill the chunks for the current (calling) process ID. Chunks assigned to another destination processes may be silently dropped.
Implements openPMD::chunk_assignment::PartialStrategy.
◆ clone()
| std::unique_ptr< PartialStrategy > PyPartialStrategy::clone |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
The documentation for this struct was generated from the following file:
- /tmp/tmp.NhLRcLhrNZ/openPMD-api/src/binding/python/ChunkInfo.cpp