This example show how to deal with multiple file on a single processes in FasTensor .
#include <iostream>
#include <stdarg.h>
#include <vector>
#include <stdlib.h>
using namespace std;
{
double oDouble = iStencil(0, 0) * 1.0;
oStencil = oDouble;
return oStencil;
}
int main(
int argc,
char *argv[])
{
std::vector<int> chunk_size(2);
std::vector<int> overlap_size = {0, 0};
Array<short> *A = new Array<short>("EP_DIR:EP_TDMS:/Users/dbin/work/arrayudf-git-svn-test-on-bitbucket/examples/das/tdms-dir", chunk_size, overlap_size);
std::vector<std::string> aug_merge_index, aug_dir_sub_cmd, aug_input_search_rgx;
aug_merge_index.push_back("1");
aug_dir_sub_cmd.push_back("BINARY_ENABLE_TRANSPOSE_ON_READ");
aug_input_search_rgx.push_back("^(.*)[135]\\.tdms$");
Array<double> *B = new Array<double>("EP_DIR:EP_HDF5:./tdms-dir-dec/:/DataCT");
std::vector<std::string> aug_output_replace_arg;
aug_output_replace_arg.push_back("^(.*)\\.tdms$");
aug_output_replace_arg.push_back("$1.h5");
delete A;
delete B;
return 0;
}
Definition: ft_stencil.h:100
#define AU_Init(argc, argv)
Definition: ft.h:112
#define AU_Finalize()
Definition: ft.h:113
#define DIR_SUB_CMD_ARG
Definition: ft_endpoint_dir.h:84
#define DIR_OUPUT_REPLACE_RGX
Definition: ft_endpoint_dir.h:86
#define DIR_MERGE_INDEX
Definition: ft_endpoint_dir.h:83
#define DIR_INPUT_SEARCH_RGX
Definition: ft_endpoint_dir.h:85
int main(int argc, char *argv[])
Definition: ft_example_kf1p.cpp:112
int cols_chunk
Definition: ft_example_kf1p.cpp:101
Stencil< double > udf_kf1p(const Stencil< short > &iStencil)
Definition: ft_example_kf1p.cpp:104
int rows_chunk
Definition: ft_example_kf1p.cpp:100
Definition: ft_array.h:113