Function to decide whether HW has AMX or AVX512 or AVX2 For those legacy device(w/o AMX and AVX512 and AVX2), OneDNN GEMM will be used.
| 1904 | /// For those legacy device(w/o AMX and AVX512 and AVX2), |
| 1905 | /// OneDNN GEMM will be used. |
| 1906 | static inline bool IsLegacyPlatform() { |
| 1907 | return (!port::TestCPUFeature(port::CPUFeature::AVX512F) && |
| 1908 | !port::TestCPUFeature(port::CPUFeature::AVX2)); |
| 1909 | } |
| 1910 | |
| 1911 | /// Function to check whether primitive memory optimization is enabled |
| 1912 | static inline bool IsPrimitiveMemOptEnabled() { |
nothing calls this directly
no test coverage detected