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
81fad9e2
Commit
81fad9e2
authored
Jun 11, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
e7dbc4ff
1c661e75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
OpenCVCompilerOptimizations.cmake
cmake/OpenCVCompilerOptimizations.cmake
+1
-0
intrin_avx512.hpp
modules/core/include/opencv2/core/hal/intrin_avx512.hpp
+0
-0
sumpixels.avx512_skx.cpp
modules/imgproc/src/sumpixels.avx512_skx.cpp
+6
-6
No files found.
cmake/OpenCVCompilerOptimizations.cmake
View file @
81fad9e2
...
...
@@ -294,6 +294,7 @@ if(X86 OR X86_64)
else
()
ocv_update
(
CPU_SSE_SUPPORTED ON
)
ocv_update
(
CPU_SSE2_SUPPORTED ON
)
ocv_update
(
CPU_AVX_512F_FLAGS_ON
"/arch:AVX512"
)
endif
()
# Other instruction sets are supported by default since MSVC 2008 at least
else
()
...
...
modules/core/include/opencv2/core/hal/intrin_avx512.hpp
View file @
81fad9e2
This diff is collapsed.
Click to expand it.
modules/imgproc/src/sumpixels.avx512_skx.cpp
View file @
81fad9e2
...
...
@@ -79,9 +79,9 @@ public:
{
// Note the negative index is because the sums/sqsums pointers point to the first real pixel
// after the border pixel so we have to look backwards
_mm512_mask_storeu_epi64
(
&
sums
[
-
num_channels
],
(
1
<<
num_channels
)
-
1
,
_mm512_setzero_si512
());
_mm512_mask_storeu_epi64
(
&
sums
[
-
(
ptrdiff_t
)
num_channels
],
(
1
<<
num_channels
)
-
1
,
_mm512_setzero_si512
());
if
(
sqsums
)
_mm512_mask_storeu_epi64
(
&
sqsums
[
-
num_channels
],
(
1
<<
num_channels
)
-
1
,
_mm512_setzero_si512
());
_mm512_mask_storeu_epi64
(
&
sqsums
[
-
(
ptrdiff_t
)
num_channels
],
(
1
<<
num_channels
)
-
1
,
_mm512_setzero_si512
());
}
...
...
@@ -180,11 +180,11 @@ public:
//
_mm512_mask_storeu_pd
(
results_ptr
,
// Store the result here
data_mask
,
// Using the data mask to avoid overrunning the line
(
__mmask8
)
data_mask
,
// Using the data mask to avoid overrunning the line
calculate_integral
(
// Writing the value of the integral derived from:
src_longs
,
// input data
_mm512_maskz_loadu_pd
(
data_mask
,
above_values_ptr
),
// and the results from line above
accumulator
// keeping track of the accumulator
src_longs
,
// input data
_mm512_maskz_loadu_pd
(
(
__mmask8
)
data_mask
,
above_values_ptr
),
// and the results from line above
accumulator
// keeping track of the accumulator
)
);
}
...
...
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