VTK
9.1.0
|
class to handle inter-process communication of pixel data from non-contiguous regions of a shared index space. More...
#include <vtkPPixelTransfer.h>
Public Member Functions | |
vtkPPixelTransfer () | |
vtkPPixelTransfer (int srcRank, const vtkPixelExtent &srcWholeExt, const vtkPixelExtent &srcExt, int destRank, const vtkPixelExtent &destWholeExt, const vtkPixelExtent &destExt, int id=0) | |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are different. | |
vtkPPixelTransfer (int srcRank, const vtkPixelExtent &srcWholeExt, const vtkPixelExtent &targetExt, int destRank, const vtkPixelExtent &destWholeExt, int id) | |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are the same. | |
vtkPPixelTransfer (int srcRank, int destRank, const vtkPixelExtent &wholeExt, const vtkPixelExtent &targetExt, int id=0) | |
Initialize a transaction from sub extent of source to sub extent of dest, both the whole and the subsets are the same. | |
vtkPPixelTransfer (int srcRank, int destRank, const vtkPixelExtent &ext, int id=0) | |
Initialize a transaction from sub extent of source to sub extent of dest, both the whole and the subsets are the same. | |
vtkPPixelTransfer (int srcRank, const vtkPixelExtent &srcWholeExt, int destRank, const vtkPixelExtent &destWholeExt, int id=0) | |
Initialize a transaction from whole extent of source to whole extent of dest, where source and destination have different whole extents. | |
vtkPPixelTransfer (const vtkPixelExtent &srcWholeExt, const vtkPixelExtent &srcExt, const vtkPixelExtent &destWholeExt, const vtkPixelExtent &destExt) | |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are different. | |
~vtkPPixelTransfer () | |
void | SetSourceRank (int rank) |
Set/Get the MPI rank of source and destination processes. | |
int | GetSourceRank () const |
void | SetDestinationRank (int rank) |
int | GetDestinationRank () const |
bool | Sender (int rank) const |
Tests to determine a given rank's role in this transaction. | |
bool | Receiver (int rank) const |
bool | Local (int rank) const |
void | SetSourceWholeExtent (vtkPixelExtent &srcExt) |
Set/Get the source extent. | |
vtkPixelExtent & | GetSourceWholeExtent () |
const vtkPixelExtent & | GetSourceWholeExtent () const |
void | SetSourceExtent (vtkPixelExtent &srcExt) |
Set/Get the source extent. | |
vtkPixelExtent & | GetSourceExtent () |
const vtkPixelExtent & | GetSourceExtent () const |
void | SetDestinationWholeExtent (vtkPixelExtent &destExt) |
Set/get the destination extent. | |
vtkPixelExtent & | GetDestinationWholeExtent () |
const vtkPixelExtent & | GetDestinationWholeExtent () const |
void | SetDestinationExtent (vtkPixelExtent &destExt) |
Set/get the destination extent. | |
vtkPixelExtent & | GetDestinationExtent () |
const vtkPixelExtent & | GetDestinationExtent () const |
void | SetTransactionId (int id) |
Set/get the transaction id. | |
int | GetTransactionId () const |
void | SetUseBlockingSend (int val) |
Enable/diasable non-blocking communication. | |
int | GetUseBlockingSend () const |
void | SetUseBlockingRecv (int val) |
int | GetUseBlockingRecv () const |
template<typename SOURCE_TYPE , typename DEST_TYPE > | |
int | Execute (MPI_Comm comm, int rank, int nComps, SOURCE_TYPE *srcData, DEST_TYPE *destData, std::vector< MPI_Request > &reqs, std::deque< MPI_Datatype > &types, int tag) |
Transfer data from source to destination. | |
int | Execute (MPI_Comm comm, int rank, int nComps, int srcType, void *srcData, int destType, void *destData, std::vector< MPI_Request > &reqs, std::deque< MPI_Datatype > &types, int tag) |
Transfer data from source to destination. | |
int | Blit (int nComps, int srcType, void *srcData, int destType, void *destData) |
Block transfer for local memory to memory transfers, without using mpi. | |
Public Member Functions inherited from vtkPixelTransfer | |
vtkPixelTransfer ()=default | |
Additional Inherited Members | |
Static Public Member Functions inherited from vtkPixelTransfer | |
static int | Blit (const vtkPixelExtent &ext, int nComps, int srcType, void *srcData, int destType, void *destData) |
for memory to memory transfers. | |
static int | Blit (const vtkPixelExtent &srcWhole, const vtkPixelExtent &srcSubset, const vtkPixelExtent &destWhole, const vtkPixelExtent &destSubset, int nSrcComps, int srcType, void *srcData, int nDestComps, int destType, void *destData) |
for memory to memory transfers. | |
template<typename SOURCE_TYPE , typename DEST_TYPE > | |
static int | Blit (const vtkPixelExtent &srcWhole, const vtkPixelExtent &srcSubset, const vtkPixelExtent &destWhole, const vtkPixelExtent &destSubset, int nSrcComps, SOURCE_TYPE *srcData, int nDestComps, DEST_TYPE *destData) |
for local memory to memory transfers | |
class to handle inter-process communication of pixel data from non-contiguous regions of a shared index space.
For example copying a subset of one image to a subset of another. The class can be used for purely local(no MPI) non-contigious data transfers by setting the source and destination ranks to the same id. In that case memcpy is used.
Definition at line 47 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 50 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are different.
Definition at line 62 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are the same.
Definition at line 80 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from sub extent of source to sub extent of dest, both the whole and the subsets are the same.
Definition at line 98 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from sub extent of source to sub extent of dest, both the whole and the subsets are the same.
Definition at line 116 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from whole extent of source to whole extent of dest, where source and destination have different whole extents.
Definition at line 133 of file vtkPPixelTransfer.h.
|
inline |
Initialize a transaction from sub extent of source to sub extent of dest, where the subsets are different.
This is a local operation there will be no communication.
Definition at line 152 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 166 of file vtkPPixelTransfer.h.
|
inline |
Set/Get the MPI rank of source and destination processes.
Definition at line 172 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 174 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 176 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 178 of file vtkPPixelTransfer.h.
|
inline |
Tests to determine a given rank's role in this transaction.
If both Sender and Receiver are true then the operation is local and no mpi calls are made.
Definition at line 185 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 186 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 187 of file vtkPPixelTransfer.h.
|
inline |
Set/Get the source extent.
This is the extent of the array that data will be copied from.
Definition at line 193 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 195 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 197 of file vtkPPixelTransfer.h.
|
inline |
Set/Get the source extent.
This is the subset extent in the array that data will be copied from.
Definition at line 203 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 205 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 207 of file vtkPPixelTransfer.h.
|
inline |
Set/get the destination extent.
This is the extent of array that will recveive the data.
Definition at line 213 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 215 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 217 of file vtkPPixelTransfer.h.
|
inline |
Set/get the destination extent.
This is the subset extent in the array that will recveive the data.
Definition at line 223 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 225 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 227 of file vtkPPixelTransfer.h.
|
inline |
Set/get the transaction id.
Definition at line 232 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 234 of file vtkPPixelTransfer.h.
|
inline |
Enable/diasable non-blocking communication.
Definition at line 239 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 241 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 243 of file vtkPPixelTransfer.h.
|
inline |
Definition at line 245 of file vtkPPixelTransfer.h.
int vtkPPixelTransfer::Execute | ( | MPI_Comm | comm, |
int | rank, | ||
int | nComps, | ||
SOURCE_TYPE * | srcData, | ||
DEST_TYPE * | destData, | ||
std::vector< MPI_Request > & | reqs, | ||
std::deque< MPI_Datatype > & | types, | ||
int | tag | ||
) |
Transfer data from source to destination.
Definition at line 301 of file vtkPPixelTransfer.h.
int vtkPPixelTransfer::Execute | ( | MPI_Comm | comm, |
int | rank, | ||
int | nComps, | ||
int | srcType, | ||
void * | srcData, | ||
int | destType, | ||
void * | destData, | ||
std::vector< MPI_Request > & | reqs, | ||
std::deque< MPI_Datatype > & | types, | ||
int | tag | ||
) |
Transfer data from source to destination.
convenience for working with vtk data type enum rather than c types.
int vtkPPixelTransfer::Blit | ( | int | nComps, |
int | srcType, | ||
void * | srcData, | ||
int | destType, | ||
void * | destData | ||
) |
Block transfer for local memory to memory transfers, without using mpi.