Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f74f1a94
Commit
f74f1a94
authored
Nov 09, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core(ocl): run "reduce" kernels in synchronous mode
parent
11eafca3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sum.cpp
modules/core/src/sum.cpp
+1
-1
umatrix.cpp
modules/core/src/umatrix.cpp
+1
-1
No files found.
modules/core/src/sum.cpp
View file @
f74f1a94
...
...
@@ -520,7 +520,7 @@ bool ocl_sum( InputArray _src, Scalar & res, int sum_op, InputArray _mask,
}
size_t
globalsize
=
ngroups
*
wgs
;
if
(
k
.
run
(
1
,
&
globalsize
,
&
wgs
,
fals
e
))
if
(
k
.
run
(
1
,
&
globalsize
,
&
wgs
,
tru
e
))
{
typedef
Scalar
(
*
part_sum
)(
Mat
m
);
part_sum
funcs
[
3
]
=
{
ocl_part_sum
<
int
>
,
ocl_part_sum
<
float
>
,
ocl_part_sum
<
double
>
},
...
...
modules/core/src/umatrix.cpp
View file @
f74f1a94
...
...
@@ -1168,7 +1168,7 @@ static bool ocl_dot( InputArray _src1, InputArray _src2, double & res )
k
.
args
(
src1arg
,
src1
.
cols
,
(
int
)
src1
.
total
(),
dbsize
,
dbarg
,
src2arg
);
size_t
globalsize
=
dbsize
*
wgs
;
if
(
k
.
run
(
1
,
&
globalsize
,
&
wgs
,
fals
e
))
if
(
k
.
run
(
1
,
&
globalsize
,
&
wgs
,
tru
e
))
{
res
=
sum
(
db
.
getMat
(
ACCESS_READ
))[
0
];
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment