Skip to content

Commit

Permalink
#8: made functionnal current version (v1) for MKL
Browse files Browse the repository at this point in the history
  • Loading branch information
mperrinel authored and meriadegp committed Apr 3, 2023
1 parent e35ed21 commit c9d22ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmake/Modules/FindTPLMKL.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
message("CMAKE_CXX_COMPILER_ID : ${CMAKE_CXX_COMPILER_ID}")

IF (CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
TRY_COMPILE(KOKKOSKERNELS_HAS_MKL_ARG
${KOKKOSKERNELS_TOP_BUILD_DIR}/tpl_tests
Expand All @@ -21,6 +23,10 @@ ELSEIF(WIN32)
)
ENDIF()
ELSE()

#find_package(mkl)
#V1: old version plus small modif on header :
# ${MKL_ROOT}/include => ${MKL_ROOT}/include/mkl
IF (NOT DEFINED ENV{MKLROOT})
SET(NO_MKL_ROOT_GIVEN "MKL-NOTFOUND")
MESSAGE(WARNING "No MKLROOT environment variable specified - must source mklvars.sh to configure MKL path")
Expand All @@ -44,7 +50,7 @@ ELSE()
HEADER
mkl.h
HEADER_PATHS
${MKL_ROOT}/include
${MKL_ROOT}/include/mkl
)
ENDIF()
ENDIF()

0 comments on commit c9d22ca

Please sign in to comment.