1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #13120 from dbudniko:dbudniko/gapi_opencl_kernel_example

* custom OpenCL G-API kernel draft

* clean up and warnings fix

* more warnings

* white space

* new blank line at the EOF removed

* HAVE_OPENCL guard

* remove unnecessary ocl API call

* remove sum test workaround

* check if opencl activated

* fix std::str warning

* CPU fall back for symm7x7

* gpu test kernel draft

* adjust have opencl guard

* more guards

* one more attempt to adjust guards

* empty stub files and kernel source files creation in the test directory

* try to force auto generation

* one more attempt to force build

* remove symm7x7 custom from gapi module

* looks like that this version works properly on Win desktop

* clean up

* more clean up

* address some suggestions from Dmitry's review

* const kernel coefficients

* CV_Error in kernel + try to fix cpu fallback

* CV_Error_ instead CV_Error

* everything in one gapi_gpu_test.cpp

* fix warning

* remove kernel generation, add kernel string

* avoid generated code and ocl internal namespace

* fix misprint

* c_str
This commit is contained in:
Dmitry Budnikov
2018-11-23 17:51:15 +03:00
committed by Alexander Alekhin
parent 02cc1cd6e6
commit a518e7063d
3 changed files with 468 additions and 2 deletions
@@ -684,8 +684,7 @@ TEST_P(SumTest, AccuracyTest)
cv::Size sz_in = std::get<1>(param);
auto tolerance = std::get<3>(param);
auto compile_args = std::get<4>(param);
//initMatrixRandU(std::get<0>(param), sz_in, std::get<2>(param));
initMatsRandN(std::get<0>(param), sz_in, std::get<2>(param)); //TODO: workaround trying to fix SumTest failures
initMatrixRandU(std::get<0>(param), sz_in, std::get<2>(param));
cv::Scalar out_sum;