80 #ifndef END_POINT_ADIOS_H
81 #define END_POINT_ADIOS_H
92 #ifdef HAS_ADIOS_END_POINT
98 std::string fn_str, vn_str;
99 adios2_type adios2_data_element_type;
101 std::vector<size_t> adios_shape, adios_start, adios_count;
105 adios2_variable *rw_variable;
106 adios2_engine *rw_engine;
119 adios = adios2_init(MPI_COMM_WORLD, adios2_debug_mode_on);
122 printf(
"ERROR: invalid %s handler at line %d \n",
"adios2_init", __LINE__);
126 rw_io = adios2_declare_io(adios,
"SomeName");
129 printf(
"ERROR: invalid %s handler at line %d \n",
"adios2_declare_io", __LINE__);
140 adios2_finalize(adios);
178 int Read(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data)
override;
188 int Write(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data)
override;
195 int Close()
override;
213 std::cout <<
"EndpointADIOS is not configured and compiled ! \n";
250 int Read(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data)
override
255 int Write(std::vector<unsigned long long> start, std::vector<unsigned long long> end,
void *data)
override
Definition: ft_endpoint_adios.h:203
int Close() override
close the end-point
Definition: ft_endpoint_adios.h:260
int ParseEndpointInfo() override
parse endpoint_info to my own info
Definition: ft_endpoint_adios.h:221
int Create() override
create the endpoint
Definition: ft_endpoint_adios.h:236
int PrintInfo() override
print information about the endpoint
Definition: ft_endpoint_adios.h:231
int Write(std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data) override
write the data to the end-point
Definition: ft_endpoint_adios.h:255
int Open() override
open the endpoint
Definition: ft_endpoint_adios.h:241
int ExtractMeta() override
extracts metadata, possbile endpoint_ranks/endpoint_dim_size/other ep_type dependents ones
Definition: ft_endpoint_adios.h:226
~EndpointADIOS()
Definition: ft_endpoint_adios.h:216
EndpointADIOS(std::string endpoint_info_p)
Construct a new EndpointHDF5 object.
Definition: ft_endpoint_adios.h:211
void Map2MyType() override
call the finalize to close everything (like call Destractor)
Definition: ft_endpoint_adios.h:246
int Read(std::vector< unsigned long long > start, std::vector< unsigned long long > end, void *data) override
read the data from end-point
Definition: ft_endpoint_adios.h:250
Define the class for the Endpoint used by ArrayUDF to store the data. It contains basic infomation fo...
Definition: ft_endpoint.h:106
void SetCreateFlag(bool open_flag_p)
Definition: ft_endpoint.cpp:166
void SetOpenFlag(bool open_flag_p)
Definition: ft_endpoint.cpp:156
std::string endpoint_info
Definition: ft_endpoint.h:109
#define AU_EXIT(info)
Definition: ft_utility_macro.h:147