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
c48d7f86
Commit
c48d7f86
authored
Dec 04, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7786 from alalek:cuda_warnings
parents
fefc3480
0724d13b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
42 deletions
+10
-42
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+5
-1
reduce.hpp
modules/core/include/opencv2/core/cuda/reduce.hpp
+4
-0
test_filters.cpp
modules/cudafilters/test/test_filters.cpp
+0
-5
generalized_hough.cpp
modules/cudaimgproc/src/generalized_hough.cpp
+0
-22
CMakeLists.txt
modules/cudev/test/CMakeLists.txt
+1
-14
No files found.
cmake/OpenCVDetectCUDA.cmake
View file @
c48d7f86
...
...
@@ -164,7 +164,7 @@ if(CUDA_FOUND)
mark_as_advanced
(
CUDA_BUILD_CUBIN CUDA_BUILD_EMULATION CUDA_VERBOSE_BUILD CUDA_SDK_ROOT_DIR
)
macro
(
ocv_cuda_
compile VAR
)
macro
(
ocv_cuda_
filter_options
)
foreach
(
var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG
)
set
(
${
var
}
_backup_in_cuda_compile_
"
${${
var
}}
"
)
...
...
@@ -190,6 +190,10 @@ if(CUDA_FOUND)
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
endforeach
()
endmacro
()
macro
(
ocv_cuda_compile VAR
)
ocv_cuda_filter_options
()
if
(
BUILD_SHARED_LIBS
)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
-Xcompiler -DCVAPI_EXPORTS
)
...
...
modules/core/include/opencv2/core/cuda/reduce.hpp
View file @
c48d7f86
...
...
@@ -43,6 +43,10 @@
#ifndef OPENCV_CUDA_REDUCE_HPP
#define OPENCV_CUDA_REDUCE_HPP
#ifndef THRUST_DEBUG // eliminate -Wundef warning
#define THRUST_DEBUG 0
#endif
#include <thrust/tuple.h>
#include "detail/reduce.hpp"
#include "detail/reduce_key_val.hpp"
...
...
modules/cudafilters/test/test_filters.cpp
View file @
c48d7f86
...
...
@@ -61,11 +61,6 @@ namespace
cv
::
Rect
roi
(
ksize
.
width
,
ksize
.
height
,
m
.
cols
-
2
*
ksize
.
width
,
m
.
rows
-
2
*
ksize
.
height
);
return
m
(
roi
);
}
cv
::
Mat
getInnerROI
(
cv
::
InputArray
m
,
int
ksize
)
{
return
getInnerROI
(
m
,
cv
::
Size
(
ksize
,
ksize
));
}
}
namespace
{
...
...
modules/cudaimgproc/src/generalized_hough.cpp
View file @
c48d7f86
...
...
@@ -684,28 +684,6 @@ namespace
std
::
vector
<
int
>
h_buf_
;
};
double
toRad
(
double
a
)
{
return
a
*
CV_PI
/
180.0
;
}
double
clampAngle
(
double
a
)
{
double
res
=
a
;
while
(
res
>
360.0
)
res
-=
360.0
;
while
(
res
<
0
)
res
+=
360.0
;
return
res
;
}
bool
angleEq
(
double
a
,
double
b
,
double
eps
=
1.0
)
{
return
(
fabs
(
clampAngle
(
a
-
b
))
<=
eps
);
}
GeneralizedHoughGuilImpl
::
GeneralizedHoughGuilImpl
()
{
maxBufferSize_
=
1000
;
...
...
modules/cudev/test/CMakeLists.txt
View file @
c48d7f86
...
...
@@ -13,20 +13,7 @@ if(OCV_DEPENDENCIES_FOUND)
source_group
(
"Include"
FILES
${
test_hdrs
}
)
set
(
OPENCV_TEST_
${
the_module
}
_SOURCES
${
test_srcs
}
${
test_hdrs
}
)
foreach
(
var CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG
)
# we remove /EHa as it generates warnings under windows
string
(
REPLACE
"/EHa"
""
${
var
}
"
${${
var
}}
"
)
# we remove -ggdb3 flag as it leads to preprocessor errors when compiling CUDA files (CUDA 4.1)
string
(
REPLACE
"-ggdb3"
""
${
var
}
"
${${
var
}}
"
)
# we remove -Wsign-promo as it generates warnings under linux
string
(
REPLACE
"-Wsign-promo"
""
${
var
}
"
${${
var
}}
"
)
# we remove -fvisibility-inlines-hidden because it's used for C++ compiler
# but NVCC uses C compiler by default
string
(
REPLACE
"-fvisibility-inlines-hidden"
""
${
var
}
"
${${
var
}}
"
)
endforeach
()
ocv_cuda_filter_options
()
CUDA_ADD_EXECUTABLE
(
${
the_target
}
${
OPENCV_TEST_
${
the_module
}
_SOURCES
}
)
ocv_target_link_libraries
(
${
the_target
}
${
test_deps
}
${
OPENCV_LINKER_LIBS
}
${
CUDA_LIBRARIES
}
)
...
...
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