Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -675,11 +675,17 @@ else()
if (NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten" AND onnxruntime_target_platform STREQUAL "aarch64")
check_cxx_compiler_flag(-march=armv8.2-a+bf16 HAS_ARM64_BFLOAT16)
if(NOT HAS_ARM64_BFLOAT16)
message(FATAL_ERROR "The compiler doesn't support BFLOAT16!!!")
message(FATAL_ERROR "The compiler/assembler does not support the aarch64 +bf16 ISA extension. "
"On aarch64 this typically requires GCC >= 12 paired with a sufficiently recent binutils "
"(the capability is gated by the assembler, not the compiler alone). "
"See https://github.com/microsoft/onnxruntime/issues/22837 for details.")
endif()
check_cxx_compiler_flag(-march=armv8.2-a+fp16 HAS_ARM64_FLOAT16)
if(NOT HAS_ARM64_FLOAT16)
message(FATAL_ERROR "The compiler doesn't support FLOAT16!!!")
message(FATAL_ERROR "The compiler/assembler does not support the aarch64 +fp16 ISA extension. "
"On aarch64 this typically requires GCC >= 12 paired with a sufficiently recent binutils "
"(the capability is gated by the assembler, not the compiler alone). "
"See https://github.com/microsoft/onnxruntime/issues/22837 for details.")
endif()
endif()

Expand Down
Loading