-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added aarch64-linux bfloat16/float16 cmake patch
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
O/ONNXRuntime/bundled/patches/aarch64-linux-bfloat16-float16-cmake.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt | ||
index 5555fa692e..db6d3195ea 100644 | ||
--- a/cmake/CMakeLists.txt | ||
+++ b/cmake/CMakeLists.txt | ||
@@ -671,16 +671,6 @@ else() | ||
endif() | ||
endif() | ||
check_function_exists(reallocarray HAS_REALLOCARRAY) | ||
- 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!!!") | ||
- 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!!!") | ||
- endif() | ||
- endif() | ||
if (HAS_TAUTOLOGICAL_POINTER_COMPARE) | ||
#we may have extra null pointer checkings in debug build, it's not an issue | ||
list(APPEND ORT_WARNING_FLAGS -Wno-tautological-pointer-compare) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters