diff --git a/paddle/fluid/platform/cpu_info.cc b/paddle/fluid/platform/cpu_info.cc index 83a7ce22849ef..2df1f291f9f8c 100644 --- a/paddle/fluid/platform/cpu_info.cc +++ b/paddle/fluid/platform/cpu_info.cc @@ -165,12 +165,12 @@ bool MayIUse(const cpu_isa_t cpu_isa) { int avx512f_mask = (1 << 16); return (reg[1] & avx512f_mask) != 0; } else if (cpu_isa == avx512_core) { - uint avx512f_mask = (1 << 16); - uint avx512dq_mask = (1 << 17); - uint avx512bw_mask = (1 << 30); - uint avx512vl_mask = (1 << 31); + unsigned int avx512f_mask = (1 << 16); + unsigned int avx512dq_mask = (1 << 17); + unsigned int avx512bw_mask = (1 << 30); + unsigned int avx512vl_mask = (1 << 31); return ((reg[1] & avx512f_mask) && (reg[1] & avx512dq_mask) && -+ (reg[1] & avx512bw_mask) && (reg[1] & avx512vl_mask)); + (reg[1] & avx512bw_mask) && (reg[1] & avx512vl_mask)); } } #endif