Compile trilinos with Intel MKL

62 views
Skip to first unread message

Mark Ma

unread,
Jan 23, 2018, 5:32:32 AM1/23/18
to deal.II User Group
Hello everyone,

For this discussion, I just want to post the working setup in some clusters that uses intel MKL instead of BLAS ans LAPACK. Here is the code, "thrilino_setup.sh",

    mkdir build
    cd build

    cmake                                            
\
   
-DTrilinos_ENABLE_Amesos=ON                      \
   
-DTrilinos_ENABLE_Epetra=ON                      \
   
-DTrilinos_ENABLE_Ifpack=ON                      \
   
-DTrilinos_ENABLE_AztecOO=ON                     \
   
-DTrilinos_ENABLE_Sacado=ON                      \
   
-DTrilinos_ENABLE_Teuchos=ON                     \
   
-DTrilinos_ENABLE_MueLu=ON                       \
   
-DTrilinos_ENABLE_ML=ON                          \
   
-DTrilinos_VERBOSE_CONFIGURE=OFF                 \
   
-DTPL_ENABLE_MPI=ON                              \
    -DTPL_ENABLE_BLAS:BOOL=ON                              \
   
-DTPL_ENABLE_LAPACK:BOOL=ON                              \
   
-DBLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_sequential;mkl_core"                              \
   
-DBLAS_LIBRARY_DIRS="/opt/software/common/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64"                              \
   
-DLAPACK_LIBRARY_NAMES=""                              \
   
-DLAPACK_LIBRARY_DIRS="/opt/software/common/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64"                              \

   
-DBUILD_SHARED_LIBS=ON                           \
   
-DCMAKE_VERBOSE_MAKEFILE=OFF                     \
   
-DCMAKE_BUILD_TYPE=RELEASE                       \
   
-DCMAKE_INSTALL_PREFIX:PATH=$HOME/installed_prog/trilinos \
   
../

    make install

Best,
Mark

Reference:

[1]. https://trilinos.org/pipermail/trilinos-users/2011-May/002502.html

Reply all
Reply to author
Forward
0 new messages