MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsLegacyPlatform

Method IsLegacyPlatform

tensorflow/core/util/mkl_util.h:1906–1909  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

TestCPUFeatureFunction · 0.85

Tested by

no test coverage detected