We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffd4a06 commit 28ffd83Copy full SHA for 28ffd83
1 file changed
cmake/modules/FindMKL.cmake
@@ -75,6 +75,11 @@ if(ENABLE_MPI)
75
76
string(TOLOWER "${MKL_MPI}" _mkl_mpi)
77
if(_mkl_mpi STREQUAL "auto")
78
+ if(CMAKE_CROSSCOMPILING)
79
+ message(
80
+ FATAL_ERROR "CMake cannot auto-determine MKL-BLACS interface correctly with cross compiling. "
81
+ "Please manually pass -DMKL_MPI=<intelmpi|mpich|openmpi> flag to CMake.")
82
+ endif()
83
if("${MPI_CXX_LIBRARY_VERSION_STRING}" MATCHES "Open MPI")
84
set(_mkl_mpi openmpi)
85
else()
0 commit comments