diff --git a/paddle/fluid/platform/cpu_info.cc b/paddle/fluid/platform/cpu_info.cc index ad1a630c6ae6e18c94ac2c742e4d10ec77e47218..63760ada2b4d5226035b990cf5ecb7e1d21fbbe2 100644 --- a/paddle/fluid/platform/cpu_info.cc +++ b/paddle/fluid/platform/cpu_info.cc @@ -165,11 +165,11 @@ bool MayIUse(const cpu_isa_t cpu_isa) { return (reg[1] & avx512f_mask) != 0; } } +#endif return false; } } #endif -#endif } // namespace platform } // namespace paddle