[Trilinos-Users] Trilinos on TACC

Safin, Artur aks084000 at utdallas.edu
Mon Mar 28 21:11:17 EDT 2016


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/lib/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/mkl/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/lib/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/mkl/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


More information about the Trilinos-Users mailing list