Skip to content

Commit 07290bd

Browse files
malfetpytorchmergebot
authored andcommitted
Skip search for MKL on ARM cpus (pytorch#145850)
It will not find it anyway and makes a bit easier parsing thru CMake log on non-x86 systems Pull Request resolved: pytorch#145850 Approved by: https://github.com/atalman
1 parent 1ea2731 commit 07290bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmake/Modules/FindMKL.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
# MKL_SOLVER_LIBRARIES - list of libraries to add for the solvers
1313
# MKL_CDFT_LIBRARIES - list of libraries to add for the solvers
1414

15+
# Do nothing if on ARM
16+
IF (CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64")
17+
RETURN()
18+
ENDIF()
19+
1520
# Do nothing if MKL_FOUND was set before!
1621
IF (NOT MKL_FOUND)
1722

0 commit comments

Comments
 (0)