Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
CTF_int::distribution Class Reference

#include <distribution.h>

Public Member Functions

 distribution ()
 
 ~distribution ()
 
 distribution (tensor const *tsr)
 create distribution object which defines a tensor's data decomposition More...
 
 distribution (char const *buffer)
 create distribution object by deserializing buffer More...
 
void serialize (char **buffer, int *size)
 serialize object into contiguous data buffer More...
 

Data Fields

int order
 
int * phase
 
int * virt_phase
 
int * phys_phase
 
int * pe_lda
 
int * pad_edge_len
 
int * padding
 
int * perank
 
int is_cyclic
 
int64_t size
 

Detailed Description

Definition at line 18 of file distribution.h.

Constructor & Destructor Documentation

CTF_int::distribution::distribution ( )

Definition at line 8 of file distribution.cxx.

References order.

CTF_int::distribution::~distribution ( )

Definition at line 84 of file distribution.cxx.

CTF_int::distribution::distribution ( char const *  buffer)

create distribution object by deserializing buffer

Parameters
[in]bufferserialized distribution data

Definition at line 49 of file distribution.cxx.

References CTF_int::alloc_ptr(), ASSERT, CTF_int::get_distribution_size(), is_cyclic, order, pad_edge_len, padding, pe_lda, perank, phase, phys_phase, size, and virt_phase.

Member Function Documentation

void CTF_int::distribution::serialize ( char **  buffer,
int *  size 
)

serialize object into contiguous data buffer

Parameters
[out]bufferunallocated array into which to serialize
[out]sizelength of serialized array

Definition at line 88 of file distribution.cxx.

References CTF_int::alloc_ptr(), ASSERT, CTF_int::cdealloc(), CTF_int::get_distribution_size(), is_cyclic, order, pad_edge_len, padding, pe_lda, perank, phase, phys_phase, size, and virt_phase.

Referenced by CTF_int::tensor::orient_subworld().

Field Documentation

int CTF_int::distribution::is_cyclic

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