X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcore%2FCL%2Fkernels%2FCLGEMMMatrixAccumulateBiasesKernel.cpp;h=289873c23f8cf13086af3af2629543568e178e18;hb=a437638028c216a03572593b9d4e3532df2a308d;hp=d9c856c688443f681d96b7f750f57d07a65f45e7;hpb=68a98dc29106a4c8c34e8cac542fe0bdad4ad531;p=platform%2Fupstream%2Farmcl.git diff --git a/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp b/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp index d9c856c..289873c 100644 --- a/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp +++ b/src/core/CL/kernels/CLGEMMMatrixAccumulateBiasesKernel.cpp @@ -56,11 +56,15 @@ void CLGEMMMatrixAccumulateBiasesKernel::configure(ICLTensor *accum, const ICLTe _kernel = static_cast(CLKernelLibrary::get().create_kernel("gemm_accumulate_biases_" + data_type_name)); // Configure kernel window - const unsigned int processed_elements = max_cl_vector_width / data_size_from_type(accum->info()->data_type()); - Window win = calculate_max_window(*_accum->info(), Steps(processed_elements)); + const unsigned int num_elems_processed_per_iteration = max_cl_vector_width / data_size_from_type(accum->info()->data_type()); + + Window win = calculate_max_window(*_accum->info(), Steps(num_elems_processed_per_iteration)); + AccessWindowStatic biases_access(biases->info(), 0, 0, biases->info()->dimension(0), biases->info()->dimension(1)); - AccessWindowHorizontal accum_access(_accum->info(), 0, processed_elements); + AccessWindowHorizontal accum_access(_accum->info(), 0, num_elems_processed_per_iteration); + update_window_and_padding(win, biases_access, accum_access); + ICLKernel::configure(win); }