You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@vpisarev I plan to port in OpenCV repo my assembly SSEx and intrinsic AVX-2 implementations of some distances for FLANN.
Are the wide universal instrinsics fully functional, in particular the ones for CV_SIMD256? Is there another doc than the one for "not wide" universal intrinsics? Thanks
@alalek Thank you for the link. This is the doc for the "not-wide" universal intrinsics I was mentioning.
But as I didn't see details on the 256 avx registers I would like to know if there is any doc on "wide" universal intrinsics, as well as if they are fully functional.
I would prefer porting directly on 256 bits wide universal intrinsics equivalent of AVX-2, than the equivalents of SSEx intrinsics. Going from SSEx intrinsics to AVX-x intrinsics on Intel architectures is not only a mater of registers size. Actually as both SSE-x and AVX-x intrinsics are implemented in the way
C = A Op B,
the assembly instructions for SSE-x mostly work only with two registers and take the form
A = A Op B
Having a single SSE-x intrinsic instruction mapping a sequence of several assembly instructions might be the reason why the performance difference between SIMD assembly and intrinsic code is quite noticeable with SSE-x.
intrinsics name should start with vx_ if it's impossible to deduce vector size from input values(e.g. vx_load instead of v_load, but v_fma retain the same name)
address evaluation, loop steps etc MUST use type::nlanes( e.g. v_uint8::nlanes) instead of explicit vector length value
WUI always use the most wide vector size available for selected instruction set(i.e. if AVX512 support is enabled vector length for WUI will be 512-bit)
Activity
vpisarev commentedon Mar 7, 2018
@seiko2plus, I've added link to your #10708
core:OE-27 prepare universal intrinsics to expand (opencv#11022)
seiko2plus commentedon Mar 8, 2018
@vpisarev, #10708 going to mapping all universal intrinsics to avx2, I also made some changes to make it friendly with OE-27.
core:OE-27 prepare universal intrinsics to expand (opencv#11022)
Wide univ intrinsics (#11953)
pemmanuelviel commentedon Jul 3, 2020
@vpisarev I plan to port in OpenCV repo my assembly SSEx and intrinsic AVX-2 implementations of some distances for FLANN.
Are the wide universal instrinsics fully functional, in particular the ones for CV_SIMD256? Is there another doc than the one for "not wide" universal intrinsics? Thanks
alalek commentedon Jul 3, 2020
@pemmanuelviel There is page about universal intrinsics in OpenCV Documentation.
pemmanuelviel commentedon Jul 4, 2020
@alalek Thank you for the link. This is the doc for the "not-wide" universal intrinsics I was mentioning.
But as I didn't see details on the 256 avx registers I would like to know if there is any doc on "wide" universal intrinsics, as well as if they are fully functional.
I would prefer porting directly on 256 bits wide universal intrinsics equivalent of AVX-2, than the equivalents of SSEx intrinsics. Going from SSEx intrinsics to AVX-x intrinsics on Intel architectures is not only a mater of registers size. Actually as both SSE-x and AVX-x intrinsics are implemented in the way
C = A Op B,
the assembly instructions for SSE-x mostly work only with two registers and take the form
A = A Op B
Having a single SSE-x intrinsic instruction mapping a sequence of several assembly instructions might be the reason why the performance difference between SIMD assembly and intrinsic code is quite noticeable with SSE-x.
terfendail commentedon Jul 9, 2020
Wide universal intrinsics are implemented for AVX2 and AVX512 architectures and are already used in core and impgproc modules.
Unfortunately there is no special documentation for wide universal intrinsics. However they were implemented in accordance with OE-27
Actually there are just a few changes to universal intrinsics idea:
WUI always use the most wide vector size available for selected instruction set(i.e. if AVX512 support is enabled vector length for WUI will be 512-bit)
Wide univ intrinsics (opencv#11953)