1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00

Merge pull request #16754 from alalek:issue_16752

* core(test): FP16 norm test

* core: norm()-FP16 disable OpenCL

* core(norm): fix 16f32f local buffer size
This commit is contained in:
Alexander Alekhin
2020-03-07 22:06:47 +03:00
committed by GitHub
parent 619180dffd
commit 198b5096aa
5 changed files with 18 additions and 5 deletions
+3
View File
@@ -46,6 +46,9 @@ bool ocl_sum( InputArray _src, Scalar & res, int sum_op, InputArray _mask,
if ( (!doubleSupport && depth == CV_64F) || cn > 4 )
return false;
if (depth >= CV_16F)
return false;
int ngroups = dev.maxComputeUnits(), dbsize = ngroups * (calc2 ? 2 : 1);
size_t wgs = dev.maxWorkGroupSize();