mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 00:20:18 +01:00
[Fix]: Disable KleidiAI if unsupported gcc/clang compiler is detected (#146836)
Fixes: https://github.com/pytorch/pytorch/issues/146740 Description: 1. KleidiAI officially supports GCC>=11 and Clang>=11. Certain hardware features are tied to compiler version and KleidiAI compilation will fail in such cases. Change-Id: Ib43d6b5bf66ef5ea48c481a2774801c573ec205c Pull Request resolved: https://github.com/pytorch/pytorch/pull/146836 Approved by: https://github.com/malfet
This commit is contained in:
parent
447a142de2
commit
1f8ff6812d
|
|
@ -697,6 +697,13 @@ if(ANDROID
|
|||
endif()
|
||||
endif()
|
||||
|
||||
if(USE_KLEIDIAI AND CMAKE_C_COMPILER_VERSION)
|
||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 11)
|
||||
set(USE_KLEIDIAI OFF)
|
||||
message(WARNING "Disabling KleidiAI: Requires atleast GCC 11 or Clang 11")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# INTERN_BUILD_ATEN_OPS is used to control whether to build ATen/TH operators.
|
||||
set(INTERN_BUILD_ATEN_OPS ON)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user