Skip to content

Commit

Permalink
Fix BF16 detection in x86_64 ukernel cmake (#17983)
Browse files Browse the repository at this point in the history
`_mm512_cvtneps_pbh` was used incorrectly in
IREE_UK_BUILD_X86_64_AVX512_BF16 cmake test, so it always failed.

Signed-off-by: vient <[email protected]>
  • Loading branch information
vient authored Aug 8, 2024
1 parent 7ab66ff commit e57ccaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/iree/builtins/ukernel/arch/x86_64/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ if(IREE_UK_TRY_X86_64_AVX512_BF16)
string(JOIN "\n" IREE_UK_BUILD_X86_64_AVX512_BF16_TEST
"#include <immintrin.h>"
"int main() {"
" __m256bh a;"
" _mm512_cvtneps_pbh(a);"
" __m512 a;"
" __m256bh b = _mm512_cvtneps_pbh(a);"
" return 0;"
"}"
)
Expand Down

0 comments on commit e57ccaa

Please sign in to comment.