include/ff/stencilReduceOCL.hpp
// build the program from the mapf and reducef functions
build the program from the mapf and reducef functions
build the program from the mapf and reducef functions
ff_stencilReduceLoopOCL_2D(const std::string &mapf,			              
	                               const std::string &reducef = std::string(""),  
	                               const Tout &identityVal = Tout(),
	                               ff_oclallocator *allocator = nullptr,
	                               const size_t NACCELERATORS = 1,
								   const int stencil_width_half_ = 1,
								   const int stencil_height_half_ = 1) :
								   base_srl_t(mapf, reducef, identityVal, allocator, NACCELERATORS, 0),
								   stencil_width_half(stencil_width_half_), stencil_height_half(stencil_height_half_) {}
ff_stencilReduceLoopOCL_2D ( const std :: string & mapf , const std :: string & reducef = std :: string ( " " ) , const Tout & identityVal = Tout ( ) , ff_oclallocator * allocator = nullptr , const size_t NACCELERATORS = 1 , const int stencil_width_half_ = 1 , const int stencil_height_half_ = 1 ) : base_srl_t ( mapf , reducef , identityVal , allocator , NACCELERATORS , 0 ) , stencil_width_half ( stencil_width_half_ ) , stencil_height_half ( stencil_height_half_ ) { }
build the program from the mapf and reducef functions
build the program from the mapf and reducef functions
//OpenCL elemental function //OpenCL combinator function //init srl 1D with no halo (1D halo depends on 2D width)