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
4af7d652
Commit
4af7d652
authored
Jun 18, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made tests record information about CPU features and Tegra optimization status.
parent
24d84a45
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
ts_func.cpp
modules/ts/src/ts_func.cpp
+42
-0
No files found.
modules/ts/src/ts_func.cpp
View file @
4af7d652
...
...
@@ -2,6 +2,10 @@
#include <float.h>
#include <limits.h>
#ifdef HAVE_TEGRA_OPTIMIZATION
#include "tegra.hpp"
#endif
using
namespace
cv
;
namespace
cvtest
...
...
@@ -2966,6 +2970,44 @@ void printVersionInfo(bool useStdOut)
std
::
cout
<<
"Parallel framework: "
<<
CV_PARALLEL_FRAMEWORK
<<
std
::
endl
;
}
#endif
std
::
string
cpu_features
;
#if CV_SSE
if
(
checkHardwareSupport
(
CV_CPU_SSE
))
cpu_features
+=
" sse"
;
#endif
#if CV_SSE2
if
(
checkHardwareSupport
(
CV_CPU_SSE2
))
cpu_features
+=
" sse2"
;
#endif
#if CV_SSE3
if
(
checkHardwareSupport
(
CV_CPU_SSE3
))
cpu_features
+=
" sse3"
;
#endif
#if CV_SSSE3
if
(
checkHardwareSupport
(
CV_CPU_SSSE3
))
cpu_features
+=
" ssse3"
;
#endif
#if CV_SSE4_1
if
(
checkHardwareSupport
(
CV_CPU_SSE4_1
))
cpu_features
+=
" sse4.1"
;
#endif
#if CV_SSE4_2
if
(
checkHardwareSupport
(
CV_CPU_SSE4_2
))
cpu_features
+=
" sse4.2"
;
#endif
#if CV_AVX
if
(
checkHardwareSupport
(
CV_CPU_AVX
))
cpu_features
+=
" avx"
;
#endif
#if CV_NEON
cpu_features
+=
" neon"
;
// NEON is currently not checked at runtime
#endif
cpu_features
.
erase
(
0
,
1
);
// erase initial space
::
testing
::
Test
::
RecordProperty
(
"cv_cpu_features"
,
cpu_features
);
if
(
useStdOut
)
std
::
cout
<<
"CPU features: "
<<
cpu_features
<<
std
::
endl
;
#ifdef HAVE_TEGRA_OPTIMIZATION
const
char
*
tegra_optimization
=
tegra
::
isDeviceSupported
()
?
"enabled"
:
"disabled"
;
::
testing
::
Test
::
RecordProperty
(
"cv_tegra_optimization"
,
tegra_optimization
);
if
(
useStdOut
)
std
::
cout
<<
"Tegra optimization: "
<<
tegra_optimization
<<
std
::
endl
;
#endif
}
}
//namespace cvtest
...
...
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