-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'enh-pursue-chessboard-detection' into 'master'
ENH: improvements in the chessboard corner detection and memory leak fixes. See merge request DO-CV/sara!398
- Loading branch information
Showing
61 changed files
with
2,609 additions
and
1,381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# The address sanitizer has problem with OpenCL. | ||
# | ||
# This is documented in: | ||
# - https://github.com/ddemidov/vexcl/issues/204 | ||
# In particular, it complains `clGetPlatformIDs`. | ||
|
||
# Turn off complaints related to Swift bindings. | ||
leak:Foundation | ||
|
||
# Qt | ||
# | ||
# On NVIDIA platforms, there seems to be memory leaks related to OpenGL... | ||
# Maybe it is related to this: | ||
# https://forums.developer.nvidia.com/t/possible-memory-leak-in-the-510-60-linux-driver/214123 | ||
# | ||
# Luckily the memory leak does not show up on the GitLab CI. | ||
leak:dbus | ||
leak:nvidia-glcore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# From: https://stackoverflow.com/questions/44320465/whats-the-proper-way-to-enable-addresssanitizer-in-cmake-that-works-in-xcode | ||
|
||
get_property(isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) | ||
|
||
if(isMultiConfig) | ||
if(NOT "Asan" IN_LIST CMAKE_CONFIGURATION_TYPES) | ||
list(APPEND CMAKE_CONFIGURATION_TYPES Asan) | ||
endif() | ||
else() | ||
set(allowedBuildTypes Asan Debug Release RelWithDebInfo MinSizeRel) | ||
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "${allowedBuildTypes}") | ||
|
||
if(CMAKE_BUILD_TYPE AND NOT CMAKE_BUILD_TYPE IN_LIST allowedBuildTypes) | ||
message(FATAL_ERROR "Invalid build type: ${CMAKE_BUILD_TYPE}") | ||
endif() | ||
endif() | ||
|
||
set(CMAKE_C_FLAGS_ASAN | ||
"${CMAKE_C_FLAGS_DEBUG} -O0 -g -fsanitize=address -fno-omit-frame-pointer" | ||
CACHE STRING | ||
"Flags used by the C compiler for Asan build type or configuration." | ||
FORCE) | ||
|
||
set(CMAKE_CXX_FLAGS_ASAN | ||
"${CMAKE_CXX_FLAGS_DEBUG} -O0 -g -DDEBUG -D_DEBUG -fsanitize=address -fno-omit-frame-pointer" | ||
CACHE STRING | ||
"Flags used by the C++ compiler for Asan build type or configuration." | ||
FORCE) | ||
|
||
set(CMAKE_EXE_LINKER_FLAGS_ASAN | ||
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address" | ||
CACHE STRING | ||
"Linker flags to be used to create executables for Asan build type." | ||
FORCE) | ||
|
||
set(CMAKE_SHARED_LINKER_FLAGS_ASAN | ||
"${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -fsanitize=address" | ||
CACHE | ||
STRING | ||
"Linker lags to be used to create shared libraries for Asan build type." | ||
FORCE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.