Skip to content

Commit

Permalink
cmake: Don't build AVX-512 kernels with LLVM Flang.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuetzel committed Apr 26, 2023
1 parent 9c1238a commit bc64885
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/system.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
endif ()
endif ()

# Disable AVX-512 for LLVM Flang
# FIXME: Check if this is still needed with LLVM 17 or later.
if (X86_64 AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
set(NO_AVX512 ON)
endif ()

if (INTERFACE64)
message(STATUS "Using 64-bit integers.")
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DUSE64BITINT")
Expand Down

0 comments on commit bc64885

Please sign in to comment.