Skip search for MKL on ARM cpus (#145850)

It will not find it anyway and makes a bit easier parsing thru CMake log on non-x86 systems
Pull Request resolved: https://github.com/pytorch/pytorch/pull/145850
Approved by: https://github.com/atalman
This commit is contained in:
Nikita Shulga
2025-05-02 09:19:47 -07:00
committed by PyTorch MergeBot
parent 1ea2731e26
commit 07290bdcdc

View File

@ -12,6 +12,11 @@
# MKL_SOLVER_LIBRARIES - list of libraries to add for the solvers
# MKL_CDFT_LIBRARIES - list of libraries to add for the solvers
# Do nothing if on ARM
IF (CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
RETURN()
ENDIF()
# Do nothing if MKL_FOUND was set before!
IF (NOT MKL_FOUND)