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
543825f2
Commit
543825f2
authored
May 25, 2012
by
Anatoly Baksheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compilation with CUDA5.0 (#1982, thanks to Rodrigo)
parent
6c86cce2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
element_operations.cpp
modules/gpu/src/element_operations.cpp
+4
-0
matrix_reductions.cpp
modules/gpu/src/matrix_reductions.cpp
+4
-0
No files found.
modules/gpu/src/element_operations.cpp
View file @
543825f2
...
@@ -998,7 +998,11 @@ namespace
...
@@ -998,7 +998,11 @@ namespace
typedef
NppTypeTraits
<
CV_16U
>::
npp_t
npp_t
;
typedef
NppTypeTraits
<
CV_16U
>::
npp_t
npp_t
;
typedef
Npp32u
scalar_t
;
typedef
Npp32u
scalar_t
;
#if (CUDA_VERSION <= 4020)
typedef
NppStatus
(
*
func_t
)(
const
Npp16u
*
pSrc1
,
int
nSrc1Step
,
Npp16u
*
pDst
,
int
nDstStep
,
NppiSize
oSizeROI
,
Npp32u
nConstant
);
typedef
NppStatus
(
*
func_t
)(
const
Npp16u
*
pSrc1
,
int
nSrc1Step
,
Npp16u
*
pDst
,
int
nDstStep
,
NppiSize
oSizeROI
,
Npp32u
nConstant
);
#else
typedef
NppStatus
(
*
func_t
)(
const
Npp16u
*
pSrc1
,
int
nSrc1Step
,
Npp16u
*
pDst
,
int
nDstStep
,
NppiSize
oSizeROI
,
Npp16u
nConstant
);
#endif
};
};
template
<
int
DEPTH
,
typename
NppAbsDiffCFunc
<
DEPTH
>::
func_t
func
>
struct
NppAbsDiffC
template
<
int
DEPTH
,
typename
NppAbsDiffCFunc
<
DEPTH
>::
func_t
func
>
struct
NppAbsDiffC
...
...
modules/gpu/src/matrix_reductions.cpp
View file @
543825f2
...
@@ -128,7 +128,11 @@ void cv::gpu::meanStdDev(const GpuMat& src, Scalar& mean, Scalar& stddev, GpuMat
...
@@ -128,7 +128,11 @@ void cv::gpu::meanStdDev(const GpuMat& src, Scalar& mean, Scalar& stddev, GpuMat
DeviceBuffer
dbuf
(
2
);
DeviceBuffer
dbuf
(
2
);
int
bufSize
;
int
bufSize
;
#if (CUDA_VERSION <= 4020)
nppSafeCall
(
nppiMeanStdDev8uC1RGetBufferHostSize
(
sz
,
&
bufSize
)
);
nppSafeCall
(
nppiMeanStdDev8uC1RGetBufferHostSize
(
sz
,
&
bufSize
)
);
#else
nppSafeCall
(
nppiMeanStdDevGetBufferHostSize_8u_C1R
(
sz
,
&
bufSize
)
);
#endif
ensureSizeIsEnough
(
1
,
bufSize
,
CV_8UC1
,
buf
);
ensureSizeIsEnough
(
1
,
bufSize
,
CV_8UC1
,
buf
);
...
...
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