include/ff/stencilReduceOCL.hpp
// the task is provided in the constructor -- one shot computation
the task is provided in the constructor -- one shot computation
the task is provided in the constructor -- one shot computation
ff_stencilReduceLoopOCL_2D(const T &task,
	                               const std::string &kernels_source,            
	                               const std::string &mapf_name,           
	                               const std::string &reducef_name,        
	                               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(task, kernels_source, mapf_name, reducef_name, identityVal, allocator, NACCELERATORS, 0),
	                            	   stencil_width_half(stencil_width_half_), stencil_height_half(stencil_height_half_) {}
ff_stencilReduceLoopOCL_2D ( const T & task , const std :: string & kernels_source , const std :: string & mapf_name , const std :: string & reducef_name , 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 ( task , kernels_source , mapf_name , reducef_name , identityVal , allocator , NACCELERATORS , 0 ) , stencil_width_half ( stencil_width_half_ ) , stencil_height_half ( stencil_height_half_ ) { }
the task is provided in the constructor -- one shot computation
the task is provided in the constructor -- one shot computation
// OpenCL source code path // name of the map kernel function // name of the reduce kernel function //init srl 1D with no halo (1D halo depends on 2D width)