Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions FindIntelMKL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ if( "scalapack" IN_LIST IntelMKL_FIND_COMPONENTS AND NOT ("blacs" IN_LIST IntelM
list(APPEND IntelMKL_FIND_COMPONENTS "blacs" )
endif()

if ("${CMAKE_HOST_SYSTEM_PROCESSOR}" STREQUAL "arm64")
message( WARNING "IntelMKL is not supported for ARM architectures" )
endif()

# MKL lib names
if( IntelMKL_PREFERS_STATIC )
set( IntelMKL_LP64_LIBRARY_NAME "libmkl_intel_lp64.a" )
Expand Down Expand Up @@ -364,13 +368,15 @@ if( IntelMKL_LIBRARY AND IntelMKL_THREAD_LIBRARY AND IntelMKL_CORE_LIBRARY )

if( IntelMKL_PREFERS_STATIC )

if(NOT "${CMAKE_HOST_SYSTEM_NAME}" STREQUAL "Darwin")
list( PREPEND IntelMKL_BLAS_LAPACK_LIBRARIES "-Wl,--start-group" )
list( APPEND IntelMKL_BLAS_LAPACK_LIBRARIES "-Wl,--end-group" )

if( IntelMKL_BLACS_LIBRARIES )
list( PREPEND IntelMKL_BLACS_LIBRARIES "-Wl,--start-group" )
list( APPEND IntelMKL_BLACS_LIBRARIES "-Wl,--end-group" )
endif()
endif()

if( "scalapack" IN_LIST IntelMKL_FIND_COMPONENTS )
set( IntelMKL_ScaLAPACK_LIBRARIES
Expand Down