From 07290bdcdce7a0376942e098b7c54bcc47edb741 Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Fri, 2 May 2025 09:19:47 -0700 Subject: [PATCH] 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 --- cmake/Modules/FindMKL.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/Modules/FindMKL.cmake b/cmake/Modules/FindMKL.cmake index a9276de9cd0..7c4647f3746 100644 --- a/cmake/Modules/FindMKL.cmake +++ b/cmake/Modules/FindMKL.cmake @@ -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)