include/ff/stencilReduceOCL.hpp
// build the program from source code file,
// first attempts to load a cached binary file (kernels_source in this case is the path to the binary file)
// ff that file is not available, then it creates the program from source and store the binary for future use
// with the extention ".bin"
build the program from source code file,
first attempts to load a cached binary file (kernels_source in this case is the path to the binary file)
ff that file is not available, then it creates the program from source and store the binary for future use
with the extention ".bin"
build the program from source code file first attempts to load a cached binary file ( kernels_source in this case is the path to the binary file ) ff that file is not available then it creates the program from source and store the binary for future use with the extention " . bin "
ff_stencilReduceLoopOCL_2D(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(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 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 ( kernels_source , mapf_name , reducef_name , identityVal , allocator , NACCELERATORS , 0 ) , stencil_width_half ( stencil_width_half_ ) , stencil_height_half ( stencil_height_half_ ) { }
build the program from source code file,
first attempts to load a cached binary file (kernels_source in this case is the path to the binary file)
ff that file is not available, then it creates the program from source and store the binary for future use
with the extention ".bin"
build the program from source code file first attempts to load a cached binary file ( kernels_source in this case is the path to the binary file ) ff that file is not available then it creates the program from source and store the binary for future use with the extention " . bin "
// OpenCL source code path // name of the map function // name of the reduce function //init srl 1D with no halo (1D halo depends on 2D width)