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

offloaded and serialized tensor data More...

#include <offload.h>

Inheritance diagram for CTF_int::offload_tsr:
Collaboration diagram for CTF_int::offload_tsr:

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...
 

Detailed Description

offloaded and serialized tensor data

Definition at line 55 of file offload.h.

Constructor & Destructor Documentation

CTF_int::offload_tsr::offload_tsr ( algstrct const *  sr,
int64_t  size 
)

constructor allocates device buffer

Parameters
[in]sralgebraic structure
[in]sizenumber of elements

Member Function Documentation

void CTF_int::offload_tsr::set_zero ( )

Field Documentation

int64_t CTF_int::offload_tsr::size
algstrct const* CTF_int::offload_tsr::sr

algebraic structure

Definition at line 58 of file offload.h.


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