Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
#include <strp_tsr.h>
Public Member Functions | |
void | run (int const dir) |
strips out part of tensor to be operated on More... | |
void | free_exp () |
deallocates buffer More... | |
int64_t | mem_fp () |
returns the number of bytes of buffer space we need More... | |
strp_tsr * | clone () |
copies strp_tsr object More... | |
strp_tsr (strp_tsr *o) | |
copies strp_tsr object More... | |
~strp_tsr () | |
strp_tsr () | |
Data Fields | |
int | alloced |
int | order |
int64_t | blk_sz |
int * | edge_len |
int * | strip_dim |
int * | strip_idx |
char * | A |
char * | buffer |
algstrct const * | sr_A |
Definition at line 14 of file strp_tsr.h.
CTF_int::strp_tsr::strp_tsr | ( | strp_tsr * | o | ) |
|
inline |
Definition at line 53 of file strp_tsr.h.
References CTF_int::cdealloc().
|
inline |
Definition at line 54 of file strp_tsr.h.
Referenced by clone().
strp_tsr * CTF_int::strp_tsr::clone | ( | ) |
copies strp_tsr object
Definition at line 19 of file strp_tsr.cxx.
References strp_tsr().
Referenced by CTF_int::strp_ctr::strp_ctr(), CTF_int::strp_scl::strp_scl(), and CTF_int::strp_sum::strp_sum().
void CTF_int::strp_tsr::free_exp | ( | ) |
deallocates buffer
Definition at line 94 of file strp_tsr.cxx.
References alloced, buffer, and CTF_int::cdealloc().
Referenced by CTF_int::strp_sum::run(), and CTF_int::strp_ctr::run().
int64_t CTF_int::strp_tsr::mem_fp | ( | ) |
returns the number of bytes of buffer space we need
Definition at line 23 of file strp_tsr.cxx.
References blk_sz, edge_len, CTF_int::accumulatable::el_size, order, sr_A, and strip_dim.
Referenced by run().
void CTF_int::strp_tsr::run | ( | int const | dir | ) |
strips out part of tensor to be operated on
[in] | dir | whether to strip or unstrip tensor |
Definition at line 33 of file strp_tsr.cxx.
References A, CTF_int::alloc(), CTF_int::alloc_ptr(), alloced, ASSERT, blk_sz, buffer, CTF_int::cdealloc(), CTF_int::algstrct::copy(), DPRINTF, edge_len, CTF_int::accumulatable::el_size, mem_fp(), order, sr_A, strip_dim, strip_idx, TAU_FSTART, and TAU_FSTOP.
Referenced by CTF_int::strp_scl::run(), CTF_int::strp_sum::run(), and CTF_int::strp_ctr::run().
char* CTF_int::strp_tsr::A |
Definition at line 22 of file strp_tsr.h.
Referenced by run(), CTF_int::strp_scl::run(), CTF_int::strp_sum::run(), CTF_int::strp_ctr::run(), and strp_tsr().
int CTF_int::strp_tsr::alloced |
Definition at line 16 of file strp_tsr.h.
Referenced by free_exp(), run(), CTF_int::strip_diag(), and strp_tsr().
int64_t CTF_int::strp_tsr::blk_sz |
Definition at line 18 of file strp_tsr.h.
Referenced by mem_fp(), run(), CTF_int::strip_diag(), CTF_int::strp_ctr::strp_ctr(), and strp_tsr().
char* CTF_int::strp_tsr::buffer |
Definition at line 23 of file strp_tsr.h.
Referenced by free_exp(), run(), CTF_int::strp_scl::run(), CTF_int::strp_sum::run(), CTF_int::strp_ctr::run(), CTF_int::strip_diag(), and strp_tsr().
int* CTF_int::strp_tsr::edge_len |
Definition at line 19 of file strp_tsr.h.
Referenced by mem_fp(), run(), CTF_int::strip_diag(), and strp_tsr().
int CTF_int::strp_tsr::order |
Definition at line 17 of file strp_tsr.h.
Referenced by ctf.core.tensor::__get__(), ctf.core.tensor::__getitem__(), ctf.core.tensor::__setitem__(), ctf.core.tensor::i(), mem_fp(), ctf.core.tensor::permute(), run(), CTF_int::strip_diag(), CTF_int::strp_ctr::strp_ctr(), strp_tsr(), and ctf.core.tensor::transpose().
algstrct const* CTF_int::strp_tsr::sr_A |
Definition at line 24 of file strp_tsr.h.
Referenced by mem_fp(), run(), and CTF_int::strip_diag().
int* CTF_int::strp_tsr::strip_dim |
Definition at line 20 of file strp_tsr.h.
Referenced by CTF_int::summation::estimate_time(), CTF_int::scaling::execute(), mem_fp(), run(), CTF_int::strip_diag(), and strp_tsr().
int* CTF_int::strp_tsr::strip_idx |
Definition at line 21 of file strp_tsr.h.
Referenced by run(), CTF_int::strip_diag(), and strp_tsr().