FasTensor
1.0.0
Transform Supercomputing for AI
|
Define the class for the Endpoint used by ArrayUDF to store the data. It contains basic infomation for the endpoint as well as the operations supported by the endpoint. More...
#include <src/ft_endpoint.h>
Public Member Functions | |
Endpoint () | |
virtual | ~Endpoint () |
std::vector< unsigned long long > | GetDimensions () |
Get the Dimensions of the data. More... | |
void | SetDimensions (std::vector< unsigned long long > endpoint_dim_size_p) |
Set the Dimensions. More... | |
void | SetDataElementType (AuEndpointDataType data_element_type_p) |
set the type of data element More... | |
AuEndpointDataType | GetDataElementType () |
Get the Type of Data Element. More... | |
int | GetDataElementTypeSize () |
Get the size of the type for the element. More... | |
void | SetEndpointType (AuEndpointType endpoint_type_p) |
Set the Endpoint Type object. More... | |
AuEndpointType | GetEndpointType () |
Get the Endpoint Type object. More... | |
bool | GetOpenFlag () |
void | SetOpenFlag (bool open_flag_p) |
bool | GetCreateFlag () |
void | SetCreateFlag (bool open_flag_p) |
void | SetRwFlag (unsigned read_write_flag_p) |
unsigned | GetRwFlag () |
std::vector< AuEndpointDataTypeUnion > | Void2Union (void *vp, size_t n_elements) |
convert my data in (void *) type to Union type More... | |
void * | Union2Void (std::vector< AuEndpointDataTypeUnion > &data_vector_in_union_type) |
convert data from union to void type More... | |
void | SetEndpointInfo (std::string endpoint_info_p) |
set the endpoint_info string More... | |
std::string | GetEndpointInfo () |
Get the endpoint_info string. More... | |
virtual int | ParseEndpointInfo ()=0 |
parse endpoint_info to my own info More... | |
virtual int | ExtractMeta ()=0 |
extracts metadata, possbile endpoint_ranks/endpoint_dim_size/other ep_type dependents ones More... | |
virtual int | PrintInfo ()=0 |
print information about the endpoint More... | |
virtual int | Create ()=0 |
create the endpoint More... | |
virtual int | Open ()=0 |
open the endpoint More... | |
virtual int | Read (std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data)=0 |
read the data from end-point More... | |
virtual int | Write (std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data)=0 |
write the data to the end-point More... | |
virtual int | WriteAttribute (const std::string &name, const void *data, FTDataType data_type_p, const size_t &data_length_p=0) |
Set the Attribute object Do not need to be pure virtual method. More... | |
virtual int | ReadAttribute (const std::string &name, void *data, FTDataType data_type_p, const size_t &data_length_p=0) |
Get the Attribute object Do not need to be pure virtual method. More... | |
virtual int | GetAttributeSize (const std::string &name, FTDataType data_type_p) |
virtual int | Close ()=0 |
close the end-point More... | |
virtual void | Map2MyType ()=0 |
call the finalize to close everything (like call Destractor) More... | |
virtual void | EnableCollectiveIO () |
virtual void | DisableCollectiveIO () |
virtual std::vector< std::string > | GetDirFileVector () |
Get the Dir File Vector object. More... | |
virtual void | SetDirFileVector (std::vector< std::string > &file_list) |
Set the Dir File Vector object. More... | |
virtual std::vector< int > | GetDirChunkSize () |
Get the Dir Chunk Size object. More... | |
virtual void | SetDirChunkSize (std::vector< int > &dir_chunk_size_p) |
Set the Dir Chunk Size object. More... | |
virtual int | Control (int opt_code, std::vector< std::string > ¶meter_v) |
call a special operator on endpoint such as, enable collective I/O for HDF5 dump file from MEMORY to HDF5 More... | |
virtual int | MapOpStr2Int (std::string op_cmd_str) |
map a op_cmd_str to int as input of SpecialOperator More... | |
virtual std::string | MapOpInt2Str (int op_int) |
map op_int to string More... | |
Protected Attributes | |
AuEndpointType | endpoint_type |
std::string | endpoint_info |
std::vector< unsigned long long > | endpoint_size |
int | endpoint_ranks |
AuEndpointDataType | data_element_type |
std::string | data_endpoint_orig |
bool | set_endpoint_dim_size_flag = false |
bool | open_flag = false |
bool | create_flag = false |
unsigned | read_write_flag |
Define the class for the Endpoint used by ArrayUDF to store the data. It contains basic infomation for the endpoint as well as the operations supported by the endpoint.
|
inline |
|
inlinevirtual |
|
pure virtual |
close the end-point
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
call a special operator on endpoint such as, enable collective I/O for HDF5 dump file from MEMORY to HDF5
opt_code,specially | defined code |
call a special operator on endpoint such as, enable collective I/O for HDF5 dump file from MEMORY to HDF5
opt_code,specially | defined code |
parameter_v,vector | of argument |
Reimplemented in EndpointHDF5, EndpointDIR, and EndpointBinary.
|
pure virtual |
create the endpoint
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
Reimplemented in EndpointHDF5, EndpointDIR, and EndpointMEMORY.
|
virtual |
Reimplemented in EndpointHDF5, EndpointDIR, and EndpointMEMORY.
|
pure virtual |
extracts metadata, possbile endpoint_ranks/endpoint_dim_size/other ep_type dependents ones
Implemented in EndpointTDMS, EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
Reimplemented in EndpointHDF5, and EndpointDIR.
bool Endpoint::GetCreateFlag | ( | ) |
AuEndpointDataType Endpoint::GetDataElementType | ( | ) |
Get the Type of Data Element.
int Endpoint::GetDataElementTypeSize | ( | ) |
Get the size of the type for the element.
std::vector< unsigned long long > Endpoint::GetDimensions | ( | ) |
Get the Dimensions of the data.
Author: Bin Dong dbin@ Web: lbl. govhttps://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory
|
virtual |
|
virtual |
std::string Endpoint::GetEndpointInfo | ( | ) |
Get the endpoint_info string.
AuEndpointType Endpoint::GetEndpointType | ( | ) |
Get the Endpoint Type object.
bool Endpoint::GetOpenFlag | ( | ) |
unsigned Endpoint::GetRwFlag | ( | ) |
|
pure virtual |
call the finalize to close everything (like call Destractor)
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
|
virtual |
map a op_cmd_str to int as input of SpecialOperator
op_cmd_str | cmd string |
Reimplemented in EndpointBinary.
|
pure virtual |
open the endpoint
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
pure virtual |
parse endpoint_info to my own info
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
pure virtual |
print information about the endpoint
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
pure virtual |
read the data from end-point
start,coordinates | of the cell to start (including) |
end,coordinates | of the cell to end (including) |
data,store | the result data |
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
Get the Attribute object Do not need to be pure virtual method.
Get the Attribute object.
name | |
data |
Reimplemented in EndpointHDF5, and EndpointDIR.
void Endpoint::SetCreateFlag | ( | bool | open_flag_p | ) |
void Endpoint::SetDataElementType | ( | AuEndpointDataType | data_element_type_p | ) |
set the type of data element
data_element_type_p |
void Endpoint::SetDimensions | ( | std::vector< unsigned long long > | endpoint_dim_size_p | ) |
Set the Dimensions.
|
virtual |
|
virtual |
void Endpoint::SetEndpointInfo | ( | std::string | endpoint_info_p | ) |
set the endpoint_info string
endpoint_info |
void Endpoint::SetEndpointType | ( | AuEndpointType | endpoint_type_p | ) |
Set the Endpoint Type object.
endpoint_type_p |
void Endpoint::SetOpenFlag | ( | bool | open_flag_p | ) |
void Endpoint::SetRwFlag | ( | unsigned | read_write_flag_p | ) |
void * Endpoint::Union2Void | ( | std::vector< AuEndpointDataTypeUnion > & | data_vector_in_union_type | ) |
convert data from union to void type
data_vector_in_union_type | : vector of data in union type |
std::vector< AuEndpointDataTypeUnion > Endpoint::Void2Union | ( | void * | vp, |
size_t | n_elements | ||
) |
convert my data in (void *) type to Union type
vp | : pointer to data (after read) |
|
pure virtual |
write the data to the end-point
start,coordinates | of the cell to start (including) |
end,coordinates | of the cell to end (including) |
data,store | the result data |
Implemented in EndpointPnetCDF, EndpointHDF5, EndpointDIR, EndpointBinary, EndpointADIOS, and EndpointMEMORY.
|
virtual |
Set the Attribute object Do not need to be pure virtual method.
Set the Attribute object.
name | |
data |
Reimplemented in EndpointHDF5, and EndpointDIR.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |