Skip to content

Commit

Permalink
Change uint to unsigned int
Browse files Browse the repository at this point in the history
  • Loading branch information
wozna committed Sep 30, 2020
1 parent e883585 commit 11670ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions paddle/fluid/platform/cpu_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 11670ff

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.