[Trilinos-Users] Trilinos on TACC

Jonathan Hu jhu at sandia.gov
Mon Mar 28 17:27:29 EDT 2016


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

Safin, Artur wrote on 03/28/2016 12:00 PM:
> Hi all,
>
> I am trying to get a working installation of deal.II with Trilinos on Stampede. The issue is that I have not been able to compile Trilinos on the cluster. This is what I’ve tried:
>
> ______________________________________________________________________________________________________________________________
> cmake \
> 	-D Trilinos_ENABLE_CXX11=ON \
> 	-D Trilinos_ENABLE_Sacado=ON \
> 	-D Trilinos_ENABLE_MueLu:BOOL=ON \
> 	-D Trilinos_ENABLE_Ifpack=ON \
> 	-D CMAKE_BUILD_TYPE=RELEASE \
> 	-D CMAKE_CXX_FLAGS="-g -03" \
> 	-D CMAKE_C_FLAGS="-g -03" \
> 	-D CMAKE_FORTRAN_FLAGS="-g -05" \
> 	-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 MPI_Fortran_COMPILER=`which mpif90` \
> 	-D TPL_LAPACK_LIBRARIES:STRING="/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64" \
> 	-D TPL_BLAS_LIBRARIES:STRING="/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64" \
> 	-D CMAKE_INSTALL_PREFIX:PATH=/work/03678/asafin/Packages/trilinos \
> 	..
> ______________________________________________________________________________________________________________________________
>
> This is with Trilinos 11.12 (I’ve also tried 12.6, same result). I am using the gcc 4.9.1 compiler. (though mpicc --version gives “icc 15.0.2”, maybe that’s the issue?).
>
> Currently Loaded Modules:
>    1) xalt/0.6   2) TACC   3) intel/15.0.2   4) mvapich2/2.1   5) cxx11/4.9.1
>
> When I run cmake, it gives warnings of the sort:
>
> ______________________________________________________________________________________________________________________________
> WARNING: Target "cmTryCompileExec3253619249" requests linking to directory "/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64".  Targets may link only to libraries.  CMake is dropping the item.
> -- Performing Test HAVE_TEUCHOS_BLASFLOAT - Failed
> -- Performing Test HAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN
> WARNING: Target "cmTryCompileExec1065780777" requests linking to directory "/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64".  Targets may link only to libraries.  CMake is dropping the item.
> -- Performing Test HAVE_TEUCHOS_BLASFLOAT_DOUBLE_RETURN - Failed
> -- Performing Test HAVE_TEUCHOS_LAPACKLARND
> WARNING: Target "cmTryCompileExec1947652233" requests linking to directory "/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64".  Targets may link only to libraries.  CMake is dropping the item.
> -- Performing Test HAVE_TEUCHOS_LAPACKLARND - Failed
> -- Performing Test CXX_COMPLEX_BLAS_WORKS
> WARNING: Target "cmTryCompileExec3721382430" requests linking to directory "/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64".  Targets may link only to libraries.  CMake is dropping the item.
> -- Performing Test CXX_COMPLEX_BLAS_WORKS - Failed
> -- Performing Test HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM
> WARNING: Target "cmTryCompileExec1080356445" requests linking to directory "/opt/apps/intel/15/composer_xe_2015.2.164/mkl/lib/intel64".  Targets may link only to libraries.  CMake is dropping the item.
> -- Performing Test HAVE_FIXABLE_COMPLEX_BLAS_PROBLEM - Failed
> ______________________________________________________________________________________________________________________________
>
> The installation fails at the linking stage.
>
> My question is, does anyone know how to compile Trilinos on Stampede (or why my setup does not work)?
>
> Best,
>
> Artur Safin
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at trilinos.org
> https://trilinos.org/mailman/listinfo/trilinos-users
>



More information about the Trilinos-Users mailing list