File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
4
4
option (BUILD_TESTING "Build tests" OFF )
5
5
6
6
option (ENABLE_SPBLAS "Build with SPBLAS" ON )
7
- option (ENABLE_FIND_INTEL_MKL "Find intel MKL config" OFF )
7
+ option (ENABLE_FIND_INTEL_MKL "Find intel MKL config" ON )
8
8
9
9
option (ENABLE_FFTPACK "Build with fftpack" OFF )
10
10
option (ENABLE_PFUNIT "Build with pFUnit" OFF )
@@ -20,22 +20,16 @@ project(
20
20
# Set paths to Intel oneAPI MKL
21
21
if (${ENABLE_SPBLAS} )
22
22
if (${ENABLE_FIND_INTEL_MKL} )
23
- #find_package(MKL CONFIG )
23
+ # automatically set paths (preferred option )
24
24
find_package (MKL REQUIRED )
25
- #get_target_property(MKLINCLUDE MKL::MKL INTERFACE_INCLUDE_DIRECTORIES)
26
- endif ()
27
-
28
- # manually set MKL vars
29
- if (NOT MKL_FOUND )
30
- message (STATUS "Did not find MKL, trying to use env vars/user input" )
25
+ else ()
26
+ # manually set paths
31
27
set (MKLROOT $ENV{MKLROOT} CACHE PATH "Installation directory of Intel MKL" )
32
28
if (NOT MKLROOT )
33
29
message (FATAL_ERROR "MKLROOT environment variable is not set." )
34
30
endif ()
35
31
set (MKLLIB ${MKLROOT} /lib CACHE PATH "Path to Intel MKL Libraries" )
36
32
set (MKLINCLUDE ${MKLROOT} /include/ CACHE PATH "Path to Intel MKL include files" )
37
- else ()
38
- message (STATUS "Found MKL" )
39
33
endif ()
40
34
endif ()
41
35
You can’t perform that action at this time.
0 commit comments