We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dc9c6b commit 4898434Copy full SHA for 4898434
cmake/system.cmake
@@ -66,6 +66,12 @@ if ((DEFINED BINARY AND BINARY EQUAL 32) OR ("$CMAKE_SIZEOF_VOID_P}" EQUAL "4"))
66
endif ()
67
68
69
+# Disable AVX-512 for LLVM Flang
70
+# FIXME: Check if this is still needed with LLVM 17 or later.
71
+if (X86_64 AND CMAKE_Fortran_COMPILER_ID STREQUAL "LLVMFlang")
72
+ set(NO_AVX512 ON)
73
+endif ()
74
+
75
if (INTERFACE64)
76
message(STATUS "Using 64-bit integers.")
77
set(GETARCH_FLAGS "${GETARCH_FLAGS} -DUSE64BITINT")
0 commit comments