add intel mkl search path (#2428)

This commit is contained in:
Lê Xuân Tuấn Anh 2021-09-10 19:03:31 +07:00 committed by GitHub
parent e0a5725f22
commit 4506979609
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -316,9 +316,12 @@ elseif(WIN32 AND NOT MINGW)
"C:/Program Files/Intel/Composer XE/mkl/lib/intel64"
"C:/Program Files/Intel/Composer XE/tbb/lib/intel64/vc14"
"C:/Program Files/Intel/Composer XE/compiler/lib/intel64"
"C:/Program Files (x86)/Intel/oneAPI/mkl/*/lib/intel64"
"C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/compiler/lib/intel64_win"
)
set (mkl_redist_path
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/redist/intel64/compiler"
"C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/redist/intel64_win/compiler"
)
find_library(mkl_intel mkl_intel_lp64 ${mkl_search_path})
else()
@ -336,9 +339,13 @@ elseif(WIN32 AND NOT MINGW)
"C:/Program Files/Intel/Composer XE/mkl/lib/ia32"
"C:/Program Files/Intel/Composer XE/tbb/lib/ia32/vc14"
"C:/Program Files/Intel/Composer XE/compiler/lib/ia32"
"C:/Program Files (x86)/Intel/oneAPI/mkl/*/lib/ia32"
"C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/compiler/lib/ia32_win"
)
set (mkl_redist_path
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/redist/ia32/compiler"
"C:/Program Files (x86)/IntelSWTools/compilers_and_libraries/windows/redist/ia32/compiler"
"C:/Program Files (x86)/Intel/oneAPI/compiler/*/windows/redist/ia32_win/compiler"
)
find_library(mkl_intel mkl_intel_c ${mkl_search_path})
endif()
@ -354,6 +361,7 @@ elseif(WIN32 AND NOT MINGW)
"C:/Program Files (x86)/Intel/Composer XE/compiler/include"
"C:/Program Files/Intel/Composer XE/mkl/include"
"C:/Program Files/Intel/Composer XE/compiler/include"
"C:/Program Files (x86)/Intel/oneAPI/mkl/*/include"
)
find_path(mkl_include_dir mkl_version.h ${mkl_include_search_path})
mark_as_advanced(mkl_include_dir)