HEBench
|
Static Public Member Functions | |
static void | readDataBlock (std::vector< std::vector< std::vector< T >>> &out_data, std::istream &is, const std::vector< std::string_view > &control_line_tokens, const std::filesystem::path &working_path, std::uint64_t &line_num) |
Reads the next data block as described by the control line from the specified stream. More... | |
Definition at line 67 of file hebench_dataset_loader.cpp.
|
static |
Reads the next data block as described by the control line from the specified stream.
[out] | out_data | Structure where to store the read data. |
is | Input data stream. | |
[in] | control_line_tokens | Control line defining the data block. |
[in] | working_path | The current working directory. Any relative paths will be resolved relative to this. |
[in,out] | line_num | Increases every time a line is extracted from the input stream is . |
Standard | C++ exception derived from std::exception on error describing the failure. |
This method returns the number of lines extracted from the input stream to complete the reading of the data block. Note that this counts empty lines and lines containing comments.
The stream reading pointer will be advanced to the next line after the data block.
Definition at line 204 of file hebench_dataset_loader.cpp.