AlexSm 6d3e410c45 Remove CMakeLists from main (#2032) | 9 месяцев назад | |
---|---|---|
.. | ||
README.md | b49848d6e3 Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 2 of 2. | 2 лет назад |
cpu_id_check.cpp | b49848d6e3 Restoring authorship annotation for <spreis@yandex-team.ru>. Commit 2 of 2. | 2 лет назад |
ya.make | bf0f13dd39 add ymake export to ydb | 1 год назад |
Simple utility to check base target x86 SIMD exensions at startup.
Program may be built with some SIMD extension enabled (e.g. -msse4.2
). PEERDIR
to this library adds statrup check that machine where the program is running supports SIMD extension the program is built for.
Currently supported check are: sse4.2, pclmul, aes, avx, avx2 and fma.
Note: the library depends on util
.
Note: the library adds stratup code and so if PEERDIR
-ed from LIBRARY
will do so for all PROGRAM
-s that (transitively) use the LIBRARY
. Don't do this!
You normally don't need to PEERDIR
this library at all. Since making sse4 in Arcadia default this library is used implicitly. It is PEERDIR
-ed from all PROGRAM
-s and derived modules (e.g. PY2_PROGRAM
, but not GO_PROGRAM
or JAVA_PROGRAM
).
It is also not applied to PROGRAM
-s where NO_UTIL()
, NO_PLATFORM()
or ALLOCATOR(FAKE)
set to avoid undesired dependencied. To disable this implicit check use NO_CPU_CHECK()
macro or -DCPU_CHECK=no
ya make flag.