Trilinos Configuration
Jump to navigation
Jump to search
Trilinos 11.8.1 Cmake Configuration Script
- Untar the source
- cd <source_dir>
- mkdir Build
- cd Build
- Run the configure/make script below.
#!/bin/bash
#
# Pull in any extra arguments given to this script.
# Treat them as extra CMake options.
EXTRA_ARGS=$@
cmake \
-D Trilinos_ENABLE_ALL_PACKAGES=ON \
-D BUILD_SHARED_LIBS:BOOL=ON \
-D CMAKE_BUILD_TYPE:STRING=DEBUG \
-D CMAKE_INSTALL_PREFIX:FILEPATH="/apps/intel/2013/openmpi/1.6.5/trilinos/11.8.1" \
-D TPL_ENABLE_MPI:BOOL=ON \
-D MPI_BASE_DIR="${HPC_OPENMPI_DIR}" \
-D MPI_EXEC:FILEPATH="${HPC_OPENMPI_BIN}/mpiexec" \
-D MPI_Fortran_COMPILER:FILEPATH="${HPC_OPENMPI_BIN}/mpif90" \
-D MPI_CXX_COMPILER:FILEPATH="${HPC_OPENMPI_BIN}/mpicxx" \
-D MPI_C_COMPILER:FILEPATH="${HPC_OPENMPI_BIN}/mpicc" \
-D CMAKE_CXX_FLAGS:STRING="-ansi -pedantic -Wall" \
-D TPL_ENABLE_MKL:BOOL=ON \
-D MKL_LIBRARY_DIRS:FILEPATH="${HPC_MKL_LIB}" \
-D MKL_LIBRARY_NAMES:STRING="mkl_lapack95_lp64;mkl_blas95_lp64;mkl_intel_lp64;mkl_sequential;mkl_core" \
-D MKL_INCLUDE_DIRS:FILEPATH="${HPC_MKL_INC}" \
-D BLAS_LIBRARY_DIRS:STRING="${HPC_MKL_LIB}" \
-D BLAS_LIBRARY_NAMES:STRING="mkl_blas95_lp64;mkl_intel_lp64;mkl_sequential;mkl_core" \
-D LAPACK_LIBRARY_DIRS:STRING="${HPC_MKL_LIB}" \
-D LAPACK_LIBRARY_NAMES:STRING="mkl_lapack95_lp64;mkl_intel_lp64;mkl_sequential;mkl_core" \
-D Trilinos_ENABLE_OpenMP:BOOL=OFF \
-D TPL_ENABLE_Pthread:BOOL=ON \
-D DART_TESTING_TIMEOUT:STRING=600 \
-D Trilinos_ENABLE_TESTS:BOOL=ON \
$EXTRA_ARGS \
..