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
fba0e6fc
Commit
fba0e6fc
authored
Feb 28, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Feb 28, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #587 from bitwangyaoyao:2.4_fixHog
parents
4811988c
f12369a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
objdetect_hog.cl
modules/ocl/src/kernels/objdetect_hog.cl
+9
-0
No files found.
modules/ocl/src/kernels/objdetect_hog.cl
View file @
fba0e6fc
...
...
@@ -140,6 +140,10 @@ float reduce_smem(volatile __local float* smem, int size)
if
(
tid
<
32
)
{
if
(
size
>=
64
)
smem[tid]
=
sum
=
sum
+
smem[tid
+
32]
;
}
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
if
(
tid
<
16
)
{
if
(
size
>=
32
)
smem[tid]
=
sum
=
sum
+
smem[tid
+
16]
;
if
(
size
>=
16
)
smem[tid]
=
sum
=
sum
+
smem[tid
+
8]
;
if
(
size
>=
8
)
smem[tid]
=
sum
=
sum
+
smem[tid
+
4]
;
...
...
@@ -224,6 +228,11 @@ __kernel void classify_hists_kernel(const int cblock_hist_size, const int cdescr
{
volatile
__local
float*
smem
=
products
;
smem[tid]
=
product
=
product
+
smem[tid
+
32]
;
}
barrier
(
CLK_LOCAL_MEM_FENCE
)
;
if
(
tid
<
16
)
{
volatile
__local
float*
smem
=
products
;
smem[tid]
=
product
=
product
+
smem[tid
+
16]
;
smem[tid]
=
product
=
product
+
smem[tid
+
8]
;
smem[tid]
=
product
=
product
+
smem[tid
+
4]
;
...
...
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