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
e6b1ccdc
Commit
e6b1ccdc
authored
Nov 12, 2012
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed old reduce implementation
parent
e8f9762e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
24 deletions
+0
-24
reduction_detail.hpp
...pu/include/opencv2/gpu/device/detail/reduction_detail.hpp
+0
-0
utility.hpp
modules/gpu/include/opencv2/gpu/device/utility.hpp
+0
-24
No files found.
modules/gpu/include/opencv2/gpu/device/detail/reduction_detail.hpp
deleted
100644 → 0
View file @
e8f9762e
This diff is collapsed.
Click to expand it.
modules/gpu/include/opencv2/gpu/device/utility.hpp
View file @
e6b1ccdc
...
...
@@ -45,7 +45,6 @@
#include "saturate_cast.hpp"
#include "datamov_utils.hpp"
#include "detail/reduction_detail.hpp"
namespace
cv
{
namespace
gpu
{
namespace
device
{
...
...
@@ -156,29 +155,6 @@ namespace cv { namespace gpu { namespace device
}
};
///////////////////////////////////////////////////////////////////////////////
// Reduction
template
<
int
n
,
typename
T
,
typename
Op
>
__device__
__forceinline__
void
reduce_old
(
volatile
T
*
data
,
T
&
partial_reduction
,
int
tid
,
const
Op
&
op
)
{
StaticAssert
<
n
>=
8
&&
n
<=
512
>::
check
();
utility_detail
::
ReductionDispatcher
<
n
<=
64
>::
reduce
<
n
>
(
data
,
partial_reduction
,
tid
,
op
);
}
template
<
int
n
,
typename
T
,
typename
V
,
typename
Pred
>
__device__
__forceinline__
void
reducePredVal
(
volatile
T
*
sdata
,
T
&
myData
,
V
*
sval
,
V
&
myVal
,
int
tid
,
const
Pred
&
pred
)
{
StaticAssert
<
n
>=
8
&&
n
<=
512
>::
check
();
utility_detail
::
PredValReductionDispatcher
<
n
<=
64
>::
reduce
<
n
>
(
myData
,
myVal
,
sdata
,
sval
,
tid
,
pred
);
}
template
<
int
n
,
typename
T
,
typename
V1
,
typename
V2
,
typename
Pred
>
__device__
__forceinline__
void
reducePredVal2
(
volatile
T
*
sdata
,
T
&
myData
,
V1
*
sval1
,
V1
&
myVal1
,
V2
*
sval2
,
V2
&
myVal2
,
int
tid
,
const
Pred
&
pred
)
{
StaticAssert
<
n
>=
8
&&
n
<=
512
>::
check
();
utility_detail
::
PredVal2ReductionDispatcher
<
n
<=
64
>::
reduce
<
n
>
(
myData
,
myVal1
,
myVal2
,
sdata
,
sval1
,
sval2
,
tid
,
pred
);
}
///////////////////////////////////////////////////////////////////////////////
// Solve linear system
...
...
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