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
76f7fb52
Commit
76f7fb52
authored
Aug 21, 2017
by
Boris Fomitchev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extending CPU dispatch to the tests; fixing a typo
parent
a2120263
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
5 deletions
+20
-5
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+4
-0
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+1
-1
CMakeLists.txt
modules/core/CMakeLists.txt
+4
-4
test_intrin.cpp
modules/core/test/test_intrin.cpp
+0
-0
test_intrin.fp16.cpp
modules/core/test/test_intrin.fp16.cpp
+11
-0
test_intrin_utils.hpp
modules/core/test/test_intrin_utils.hpp
+0
-0
No files found.
cmake/OpenCVModule.cmake
View file @
76f7fb52
...
...
@@ -1047,6 +1047,8 @@ function(ocv_add_perf_tests)
set
(
OPENCV_PERF_
${
the_module
}
_SOURCES
${
perf_srcs
}
${
perf_hdrs
}
)
endif
()
ocv_compiler_optimization_process_sources
(
OPENCV_PERF_
${
the_module
}
_SOURCES OPENCV_PERF_
${
the_module
}
_DEPS
${
the_target
}
)
if
(
NOT BUILD_opencv_world
)
get_native_precompiled_header
(
${
the_target
}
perf_precomp.hpp
)
endif
()
...
...
@@ -1124,6 +1126,8 @@ function(ocv_add_accuracy_tests)
set
(
OPENCV_TEST_
${
the_module
}
_SOURCES
${
test_srcs
}
${
test_hdrs
}
)
endif
()
ocv_compiler_optimization_process_sources
(
OPENCV_TEST_
${
the_module
}
_SOURCES OPENCV_TEST_
${
the_module
}
_DEPS
${
the_target
}
)
if
(
NOT BUILD_opencv_world
)
get_native_precompiled_header
(
${
the_target
}
test_precomp.hpp
)
endif
()
...
...
cmake/OpenCVUtils.cmake
View file @
76f7fb52
...
...
@@ -387,7 +387,7 @@ macro(ocv_warnings_disable)
endif
(
NOT ENABLE_NOISY_WARNINGS
)
endmacro
()
macro
(
ocv_append_sour
g
e_file_compile_definitions source
)
macro
(
ocv_append_sour
c
e_file_compile_definitions source
)
get_source_file_property
(
_value
"
${
source
}
"
COMPILE_DEFINITIONS
)
if
(
_value
)
set
(
_value
${
_value
}
${
ARGN
}
)
...
...
modules/core/CMakeLists.txt
View file @
76f7fb52
...
...
@@ -38,20 +38,20 @@ ocv_glob_module_sources(SOURCES "${OPENCV_MODULE_opencv_core_BINARY_DIR}/version
ocv_module_include_directories
(
${
the_module
}
${
ZLIB_INCLUDE_DIRS
}
${
OPENCL_INCLUDE_DIRS
}
)
if
(
ANDROID AND HAVE_CPUFEATURES
)
ocv_append_sour
g
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/system.cpp
"HAVE_CPUFEATURES=1"
)
ocv_append_sour
c
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/system.cpp
"HAVE_CPUFEATURES=1"
)
ocv_module_include_directories
(
${
CPUFEATURES_INCLUDE_DIRS
}
)
endif
()
if
(
ITT_INCLUDE_DIRS
)
ocv_module_include_directories
(
${
ITT_INCLUDE_DIRS
}
)
endif
()
if
(
HAVE_POSIX_MEMALIGN
)
ocv_append_sour
g
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_POSIX_MEMALIGN=1"
)
ocv_append_sour
c
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_POSIX_MEMALIGN=1"
)
endif
()
if
(
HAVE_MALLOC_H
)
ocv_append_sour
g
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_MALLOC_H=1"
)
ocv_append_sour
c
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_MALLOC_H=1"
)
endif
()
if
(
HAVE_MEMALIGN
)
ocv_append_sour
g
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_MEMALIGN=1"
)
ocv_append_sour
c
e_file_compile_definitions
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/src/alloc.cpp
"HAVE_MEMALIGN=1"
)
endif
()
ocv_create_module
(
${
extra_libs
}
)
...
...
modules/core/test/test_intrin.cpp
View file @
76f7fb52
This diff is collapsed.
Click to expand it.
modules/core/test/test_intrin.fp16.cpp
0 → 100644
View file @
76f7fb52
#include "test_precomp.hpp"
#include "test_intrin_utils.hpp"
namespace
cvtest
{
namespace
hal
{
TEST
(
hal_intrin
,
float16x4
)
{
TheTest
<
v_float16x4
>
()
.
test_loadstore_fp16
()
.
test_float_cvt_fp16
()
;
}
}}
modules/core/test/test_intrin_utils.hpp
View file @
76f7fb52
This diff is collapsed.
Click to expand it.
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