[Trilinos-Users] [EXTERNAL] Re: Trilinos on TACC
Bartlett, Roscoe A
rabartl at sandia.gov
Mon Mar 28 21:28:37 EDT 2016
FYI:
See "TPL Example 2: Intel Math Kernel Library (MKL) for BLAS" at:
https://trilinos.org/docs/files/TrilinosBuildReference.html#enabling-support-for-an-optional-third-party-library-tpl
It shows:
-D BLAS_LIBRARY_DIRS="${INTEL_DIR}/em64t;${INTEL_DIR}/intel64" \
-D BLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_intel_thread;mkl_core;iomp5" \
Cheers,
-Ross
Dr. Roscoe A. Bartlett, PhD
Sandia National Laboratories
Trilinos Software Engineering and Integration Technologies Lead
Consortium for the Advanced Simulation of Light Water Reactors (CASL) Physics Integration Infrastructure Lead
> -----Original Message-----
> From: Trilinos-Users [mailto:trilinos-users-bounces at trilinos.org] On Behalf Of
> Safin, Artur
> Sent: Monday, March 28, 2016 9:11 PM
> To: Hu, Jonathan
> Cc: trilinos-users at trilinos.org
> Subject: [EXTERNAL] Re: [Trilinos-Users] Trilinos on TACC
>
> Hi Jonathan,
>
> Thank you, that solved the issue.
>
> Artur
>
> PS: For anyone trying to install trilinos on stampede, here is the cmake command
> that compiled successfully:
>
> cmake \
> -D Trilinos_ENABLE_CXX11=ON \
> -D Trilinos_ENABLE_Sacado=ON \
> -D Trilinos_ENABLE_MueLu:BOOL=ON \
> -D Trilinos_ENABLE_Stratimikos=ON \
> -D CMAKE_BUILD_TYPE=RELEASE \
> -D CMAKE_CXX_FLAGS="-mkl -std=c++11 -03" \
> -D CMAKE_C_FLAGS="-mkl -03" \
> -D CMAKE_FORTRAN_FLAGS="-03" \
> -D Trilinos_EXTRA_LINK_FLAGS="-lgfortran" \
> -D CMAKE_VERBOSE_MAKEFILE=FALSE \
> -D Trilinos_VERBOSE_CONFIGURE=FALSE \
> -D TPL_ENABLE_MPI=ON \
> -D BUILD_SHARED_LIBS=ON \
> -D CMAKE_C_COMPILER=`which mpicc` \
> -D CMAKE_CXX_COMPILER=`which mpicxx` \
> -D CMAKE_Fortran_COMPILER=`which mpif90` \
> -D MPI_EXEC=`which mpiexec` \
> -D
> BLAS_LIBRARY_DIRS:PATH="/opt/apps/intel/15/composer_xe_2015.2.164/mkl/l
> ib/intel64" \
> -D BLAS_LIBRARY_NAMES:STRING="mkl_intel_lp64; mkl_intel_thread;
> mkl_core;" \
> -D
> LAPACK_LIBRARY_DIRS:PATH="/opt/apps/intel/15/composer_xe_2015.2.164/m
> kl/lib/intel64" \
> -D LAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64;
> mkl_intel_thread; mkl_core;" \
> -D
> CMAKE_INSTALL_PREFIX:PATH=/work/03678/asafin/Packages/trilinos \
> ..
>
>
>
> On Mar 28, 2016, at 4:27 PM, Jonathan Hu <jhu at sandia.gov> wrote:
>
> > Artur,
> >
> > The options TPL_BLAS_LIBRARIES and TPL_LAPACK_LIBRARIES are the exact
> values that will be used on the link line. So cmake is interpreting
> >
> > -D
> TPL_LAPACK_LIBRARIES:STRING="/opt/apps/intel/15/composer_xe_2015.2.164
> /mkl/lib/intel64"
> >
> > to be the LAPACK library itself. You might instead try using these options:
> >
> > -D
> BLAS_LIBRARY_DIRS:PATH="/opt/apps/intel/15/composer_xe_2015.2.164/mkl/l
> ib/intel64"
> > -D BLAS_LIBRARY_NAMES:STRING="mkl_intel_lp64; mkl_intel_thread;
> mkl_core; iomp5; pthread"
> > -D
> LAPACK_LIBRARY_DIRS:PATH="/opt/apps/intel/15/composer_xe_2015.2.164/m
> kl/lib/intel64"
> > -D LAPACK_LIBRARY_NAMES:STRING="mkl_intel_lp64; mkl_intel_thread;
> mkl_core; iomp5; pthread"
> >
> > This should get you close, but if you find there are undefined symbols in the
> link, you should append the libraries containing those symbols to the option
> definitions.
> >
> > Hope this helps.
> >
> > Jonathan
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list