Skip to content

Commit

Permalink
Fix BF16 detection in x86_64 ukernel cmake
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
  • Loading branch information
vient authored Jul 23, 2024
1 parent 0934526 commit 2f99e30
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 2f99e30

Please sign in to comment.