Repository: opencv
Issue: opencv_test_imgproc fails on some test on OSX
Labels: duplicate,platform: ios/osx,category: ocl

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => 3.2.0-rc (github master version)
- Operating System / Platform => OSX 10.11.6
- Compiler => Apple LLVM version 8.0.0 (clang-800.0.42.1)

##### Detailed description

Some tests fails on OSX with OpenCL and Intel GPU. Perhaps, this is an OpenCL bug as I already see workaround in OpenCL code for Intel dev (for example in ocl_GaussianBlur_8UC1)

With OpenCL disabled : export OPENCV_OPENCL_DEVICE=disabled
all tests runs OK

With OpenCL enabled on GPU :
```
7 tests fails
[  FAILED  ] 7 tests, listed below:
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/8, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/1, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 1, true, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/2, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 2, false, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/3, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 2, true, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/4, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 3, false, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/5, where GetParam() = (8UC1, 0, 0x0, BORDER_CONSTANT, 3, true, 1)
[  FAILED  ] OCL_Filter/MorphFilter3x3_cols16_rows2.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 1, true, 1)
```

With OpenCL enabled on CPU : export OPENCV_OPENCL_DEVICE=:CPU:0
```
168 tests fails
[  FAILED  ] 168 tests, listed below:
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/0, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/1, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/2, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/3, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/4, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/5, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/6, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/8, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/9, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/10, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/11, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/12, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/13, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/14, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/15, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/16, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/17, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/18, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/19, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/20, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/21, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/22, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/23, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/24, where GetParam() = (8UC3, 3, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/25, where GetParam() = (8UC3, 3, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/26, where GetParam() = (8UC3, 3, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/27, where GetParam() = (8UC3, 3, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/28, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/29, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/30, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/31, where GetParam() = (8UC3, 3, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/32, where GetParam() = (8UC3, 5, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/33, where GetParam() = (8UC3, 5, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/34, where GetParam() = (8UC3, 5, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/35, where GetParam() = (8UC3, 5, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/36, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/37, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/38, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/39, where GetParam() = (8UC3, 5, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/40, where GetParam() = (8UC3, 7, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/41, where GetParam() = (8UC3, 7, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/42, where GetParam() = (8UC3, 7, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/43, where GetParam() = (8UC3, 7, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/44, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/45, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/46, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/47, where GetParam() = (8UC3, 7, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/48, where GetParam() = (8UC4, 3, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/49, where GetParam() = (8UC4, 3, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/50, where GetParam() = (8UC4, 3, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/51, where GetParam() = (8UC4, 3, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/52, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/53, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/54, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/55, where GetParam() = (8UC4, 3, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/56, where GetParam() = (8UC4, 5, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/57, where GetParam() = (8UC4, 5, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/58, where GetParam() = (8UC4, 5, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/59, where GetParam() = (8UC4, 5, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/60, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/61, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/62, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/63, where GetParam() = (8UC4, 5, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/64, where GetParam() = (8UC4, 7, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/65, where GetParam() = (8UC4, 7, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/66, where GetParam() = (8UC4, 7, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/67, where GetParam() = (8UC4, 7, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/68, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/69, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/70, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlurTest.Mat/71, where GetParam() = (8UC4, 7, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/1, where GetParam() = (8UC1, 3, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/3, where GetParam() = (8UC1, 3, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/5, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/7, where GetParam() = (8UC1, 3, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/9, where GetParam() = (8UC1, 5, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/11, where GetParam() = (8UC1, 5, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/13, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/15, where GetParam() = (8UC1, 5, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/16, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/17, where GetParam() = (8UC1, 7, 0x0, BORDER_CONSTANT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/18, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/19, where GetParam() = (8UC1, 7, 0x0, BORDER_REPLICATE, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/20, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/21, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT, 0, true, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/22, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, false, 1)
[  FAILED  ] OCL_Filter/GaussianBlur_multicols.Mat/23, where GetParam() = (8UC1, 7, 0x0, BORDER_REFLECT_101, 0, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/32, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/33, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/34, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/35, where GetParam() = (8UC1, 1.5, 0.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/40, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/41, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/42, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/43, where GetParam() = (8UC1, 1.5, 1.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/48, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/49, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/50, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/51, where GetParam() = (8UC1, 1.5, 2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/56, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/57, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/58, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/59, where GetParam() = (8UC1, 1.5, 0.2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/160, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/161, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/162, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/163, where GetParam() = (8UC4, 1.5, 0.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/168, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/169, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/170, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/171, where GetParam() = (8UC4, 1.5, 1.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/176, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/177, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/178, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/179, where GetParam() = (8UC4, 1.5, 2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/184, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/185, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/186, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/187, where GetParam() = (8UC4, 1.5, 0.2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/288, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/289, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/290, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/291, where GetParam() = (16UC2, 1.5, 0.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/296, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/297, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/298, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/299, where GetParam() = (16UC2, 1.5, 1.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/304, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/305, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/306, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/307, where GetParam() = (16UC2, 1.5, 2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/312, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/313, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/314, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/315, where GetParam() = (16UC2, 1.5, 0.2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/416, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/417, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/418, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/419, where GetParam() = (32FC1, 1.5, 0.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/424, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/425, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/426, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/427, where GetParam() = (32FC1, 1.5, 1.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/432, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/433, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/434, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/435, where GetParam() = (32FC1, 1.5, 2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/440, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/441, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/442, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/443, where GetParam() = (32FC1, 1.5, 0.2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/544, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/545, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/546, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/547, where GetParam() = (32FC4, 1.5, 0.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/552, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/553, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/554, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/555, where GetParam() = (32FC4, 1.5, 1.5, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/560, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/561, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/562, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/563, where GetParam() = (32FC4, 1.5, 2, INTER_NEAREST, true, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/568, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, false, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/569, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, false, 16)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/570, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, true, 1)
[  FAILED  ] OCL_ImgprocWarp/Resize.Mat/571, where GetParam() = (32FC4, 1.5, 0.2, INTER_NEAREST, true, 16)
```

##### Steps to reproduce

```
WARNING: IPP was disabled by OPENCV_IPP environment variable
CTEST_FULL_OUTPUT
OpenCV version: 3.2.0-rc
OpenCV VCS version: 3.2.0-rc-8-ga5955c9-dirty
Build type: release
Parallel framework: gcd
CPU features: popcnt mmx sse sse2 sse3 ssse3 sse4.1 sse4.2 avx avx2 fma3 fp16
OpenCL Platforms: 
    Apple
        CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz (OpenCL 1.2 )
        iGPU: HD Graphics 5000 (OpenCL 1.2 )
Current OpenCL device: 
    Type = iGPU
    Name = HD Graphics 5000
    Version = OpenCL 1.2 
    Compute units = 40
    Max work group size = 512
    Local memory size = 64 kB 
    Max memory allocation size = 384 MB 
    Double support = No
    Host unified memory = Yes
    Has AMD Blas = No
    Has AMD Fft = No
    Preferred vector width char = 1
    Preferred vector width short = 1
    Preferred vector width int = 1
    Preferred vector width long = 1
    Preferred vector width float = 1
    Preferred vector width double = 0
```