This example show how to use 1f1p pattern EP_DIR.
Author: Bin Dong dbin@.nosp@m.lbl..nosp@m.gov Web: https://crd.lbl.gov/bin-dong Scientific Data Management Research Group Lawrence Berkeley National Laboratory
- Author
- Bin Dong (dbin@.nosp@m.lbl..nosp@m.gov)
- Version
- 0.1
- Date
- 2021-05-28
- Copyright
- Copyright (c) 2021
#include <iostream>
#include <stdarg.h>
#include <vector>
#include <stdlib.h>
using namespace std;
{
oStencil = iStencil(0, 0) * 2.0;
return oStencil;
}
int main(
int argc,
char *argv[])
{
std::vector<int> chunk_size = {16, 16};
std::vector<int> overlap_size = {0, 0};
Array<float> *A = new Array<float>("EP_DIR:EP_HDF5:./test-data/test_1f1p_dir:/testg/testd", chunk_size, overlap_size);
Array<float> *B = new Array<float>("EP_DIR:EP_HDF5:./test-data/test_1f1p_dir_output:/testg/testd");
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
int main(int argc, char *argv[])
show how to use 1f1p pattern in FT
Definition: ft_example_1f1p.cpp:115
Stencil< float > udf_1f1p(const Stencil< float > &iStencil)
Definition: ft_example_1f1p.cpp:101
Definition: ft_array.h:113