Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intel Compiler: workaround if libomp-dev is installed on system. #273

Open
wants to merge 1 commit into
base: OMP_offload
Choose a base branch
from
Open
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
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,19 @@ add_library(Math::BLAS_LAPACK INTERFACE IMPORTED)
foreach(MKL_LIB_PATH IN ITEMS ${MKL_ROOT} $ENV{MKL_ROOT} $ENV{MKLROOT} $ENV{MKL_HOME})
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${MKL_LIB_PATH}/lib/intel64)
endforeach()

# Intel based compilers force finding libraries within respective packages.
if(CMAKE_CXX_COMPILER_ID MATCHES "IntelLLVM" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
if(WINDOWS)
set(LIBRARY_PATHS $ENV{LIB})
else()
string(REPLACE ":" ";" LIBRARY_PATHS $ENV{LIBRARY_PATH})
endif()
foreach(LIBRARY_PATH IN LISTS LIBRARY_PATHS)
set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${LIBRARY_PATH})
endforeach()
endif()

if(NOT BLA_VENDOR)
message(STATUS "Trying to find LAPACK from Intel MKL")
if(QMC_OMP AND COMPILER STREQUAL "Intel")
Expand Down