Skip to content

Commit 08649e6

Browse files
committed
add scalapack option in sekirei_acc.cmake
1 parent 9e99f47 commit 08649e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

config/sekirei_acc.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ set(CMAKE_C_FLAGS "-O3 -DNDEBUG -xCORE-AVX2 -mcmodel=large -shared-intel" CACHE
44
set(CMAKE_Fortran_COMPILER "ifort" CACHE STRING "" FORCE)
55
set(CMAKE_Fortran_FLAGS "-O3 -DNDEBUG -xCORE-AVX2 -mcmodel=large -shared-intel" CACHE STRING "" FORCE)
66

7+
if(USE_SCALAPACK)
8+
if(SCALAPACK_LIBRARIES MATCHES "")
9+
set(SCALAPACK_LIBRARIES "-L$ENV{MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_blacs_sgimpt_lp64")
10+
endif(SCALAPACK_LIBRARIES MATCHES "")
11+
12+
message(STATUS "SCALAPACK_LIBRARY_DIR is ${SCALAPACK_LIBRARY_DIR}")
13+
message(STATUS "SCALAPACK_LIBRARIES is ${SCALAPACK_LIBRARIES}")
14+
endif(USE_SCALAPACK)
15+
716
# for Intel MKL
817
set(BLA_VENDOR "Intel10_64lp" CACHE STRING "" FORCE)
918

0 commit comments

Comments
 (0)