diff options
author | Frank Barchard <fbarchard@google.com> | 2023-10-04 08:59:55 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-04 16:31:36 +0000 |
commit | 709d60e6eec7938a95102a5cb1d0812e35606487 (patch) | |
tree | 17371de230532c29174d8fac92b203498dfc2e40 /include/libyuv | |
parent | a3b9c36eb96ee815c938716d7e9703604938f904 (diff) | |
download | libyuv-709d60e6eec7938a95102a5cb1d0812e35606487.tar.gz |
VNNI-INT8 detect
- Add kCpuHasAVXVNNIINT8 flag
- Move mips flags up a bit to make space.
~/intelsde/sde -srf -- blaze-bin/third_party/libyuv/libyuv_test --gunit_filter=*CpuHas
Note: Google Test filter = *CpuHas
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from LibYUVBaseTest
[ RUN ] LibYUVBaseTest.TestCpuHas
Cpu Flags 0x403ff1
Has X86 0x10
Has SSE2 0x20
Has SSSE3 0x40
Has SSE41 0x80
Has SSE42 0x100
Has AVX 0x200
Has AVX2 0x400
Has ERMS 0x800
Has FMA3 0x1000
Has F16C 0x2000
Has AVX512BW 0x0
Has AVX512VL 0x0
Has AVX512VNNI 0x0
Has AVX512VBMI 0x0
Has AVX512VBMI2 0x0
Has AVX512VBITALG 0x0
Has AVX512VPOPCNTDQ 0x0
Has AVXVNNIINT8 0x400000
Has GFNI 0x0
[ OK ] LibYUVBaseTest.TestCpuHas (32 ms)
INT8 supported on srf and grr
-srf Set chip-check and CPUID for Intel(R) Sierra Forest CPU
-grr Set chip-check and CPUID for Intel(R) Grand Ridge CPU
Bug: b/303434603
Change-Id: I628007929ff0518b2b36e1469b4d9aed71a9fa8f
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4912015
Reviewed-by: richard winterton <rrwinterton@gmail.com>
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'include/libyuv')
-rw-r--r-- | include/libyuv/cpu_id.h | 7 | ||||
-rw-r--r-- | include/libyuv/version.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/libyuv/cpu_id.h b/include/libyuv/cpu_id.h index 203f7e0d..1f2f376a 100644 --- a/include/libyuv/cpu_id.h +++ b/include/libyuv/cpu_id.h @@ -37,7 +37,7 @@ static const int kCpuHasAVX2 = 0x400; static const int kCpuHasERMS = 0x800; static const int kCpuHasFMA3 = 0x1000; static const int kCpuHasF16C = 0x2000; -static const int kCpuHasGFNI = 0x4000; +static const int kCpuHasGFNI = 0x4000; /* deprecated */ static const int kCpuHasAVX512BW = 0x8000; static const int kCpuHasAVX512VL = 0x10000; static const int kCpuHasAVX512VNNI = 0x20000; @@ -45,10 +45,11 @@ static const int kCpuHasAVX512VBMI = 0x40000; static const int kCpuHasAVX512VBMI2 = 0x80000; static const int kCpuHasAVX512VBITALG = 0x100000; static const int kCpuHasAVX512VPOPCNTDQ = 0x200000; +static const int kCpuHasAVXVNNIINT8 = 0x400000; // These flags are only valid on MIPS processors. -static const int kCpuHasMIPS = 0x400000; -static const int kCpuHasMSA = 0x800000; +static const int kCpuHasMIPS = 0x800000; +static const int kCpuHasMSA = 0x1000000; // These flags are only valid on LOONGARCH processors. static const int kCpuHasLOONGARCH = 0x2000000; diff --git a/include/libyuv/version.h b/include/libyuv/version.h index d45ef09d..0112faf9 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1875 +#define LIBYUV_VERSION 1877 #endif // INCLUDE_LIBYUV_VERSION_H_ |