Cyclops Tensor Framework
parallel arithmetic on multidimensional arrays
|
offloaded and serialized tensor data More...
#include <offload.h>
Public Member Functions | |
offload_tsr (algstrct const *sr, int64_t size) | |
constructor allocates device buffer More... | |
void | set_zero () |
set device data to zero More... | |
Public Member Functions inherited from CTF_int::offload_arr | |
offload_arr (int64_t nbytes) | |
constructor allocates device buffer More... | |
~offload_arr () | |
destructor allocates device buffer More... | |
void | download (char *host_spr) |
read data from device to host pointer More... | |
void | upload (char const *host_spr) |
write data from host to device More... | |
Data Fields | |
algstrct const * | sr |
algebraic structure More... | |
int64_t | size |
number of elements More... | |
Data Fields inherited from CTF_int::offload_arr | |
char * | dev_spr |
device pointer More... | |
int64_t | nbytes |
number of bytes More... | |
CTF_int::offload_tsr::offload_tsr | ( | algstrct const * | sr, |
int64_t | size | ||
) |
constructor allocates device buffer
[in] | sr | algebraic structure |
[in] | size | number of elements |
void CTF_int::offload_tsr::set_zero | ( | ) |
set device data to zero
Referenced by ctf.core.tensor::__idiv__(), ctf.core.tensor::__imul__(), ctf.core.tensor::__itruediv__(), and ctf.core.tensor::__setitem__().
int64_t CTF_int::offload_tsr::size |
number of elements
Definition at line 60 of file offload.h.
Referenced by ctf.core.tensor::__float__(), ctf.core.tensor::__get__(), ctf.core.tensor::__int__(), and ctf.core.tensor::__nonzero__().
algstrct const* CTF_int::offload_tsr::sr |