Skip to content

Commit c200713

Browse files
author
Jared Frazier
committed
user can specify mklroot on command line during onfig
1 parent faa5ff3 commit c200713

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ project(
1919

2020
# Set paths to Intel oneAPI MKL
2121
if(${ENABLE_SPBLAS})
22-
set(MKLROOT $ENV{MKLROOT}) # Assuming MKLROOT is already set in the environment
22+
set(MKLROOT $ENV{MKLROOT} CACHE PATH "Installation directory of Intel MKL")
2323
if (NOT MKLROOT)
2424
message(FATAL_ERROR "MKLROOT environment variable is not set.")
2525
endif()

config/intel_levante_spblas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
[[ -d build-spblas-levante ]] && rm -rf build-spblas-levante
33
cmake -S . -B build-spblas-levante\
44
-DCMAKE_Fortran_COMPILER=ifx\
5+
-DMKLROOT=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1\
56
-DMKLLIB=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/lib/intel64/\
67
-DMKLINCLUDE=/sw/spack-levante/intel-oneapi-mkl-2022.0.1-ttdktf/mkl/2022.0.1/include\
78
-DBUILD_TESTING=ON\

0 commit comments

Comments
 (0)