-
Notifications
You must be signed in to change notification settings - Fork 90
Compton
Glen Hansen edited this page Nov 23, 2015
·
7 revisions
In purpose to clone Albnay form the github you need to set up proxy:
git config --global http.proxy bc-proxy-5.sandia.gov:80
Then you run:
git clone https://github.com/gahansen/Albany.git
Once you have cloned Albany, checkout and switch to tpetra_kokkos:
git checkout -b tpetra origin/tpetra
-
Load modules for SB:
module load intelmpi/intel64/4.1.3.045
module load intel/experimental/13.SP1.3.174
module load cmake
-
Build Trilinos (panzer_kokkos branch) with next configure script:
`BOOSTDIR=/home/ipdemes/install/boost_1_54` `NETCDF=/home/ipdemes/install/netcdf` `HDFDIR=/home/ipdemes/install/hdf5` `EXTRA_ARGS=$@` `cmake \` `-D Trilinos_DISABLE_ENABLED_FORWARD_DEP_PACKAGES=ON \` `-D CMAKE_INSTALL_PREFIX:PATH="path_to_install_dir" \` `-D CMAKE_BUILD_TYPE:STRING="NONE" \` `-D Trilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \` `-D Trilinos_WARNINGS_AS_ERRORS_FLAGS:STRING="" \` `-D Trilinos_ENABLE_Teuchos:BOOL=ON \` `-D Trilinos_ENABLE_Shards:BOOL=ON \` `-D TPL_ENABLE_GLM=OFF \` `-D Trilinos_ENABLE_Sacado:BOOL=ON \` `-D Trilinos_ENABLE_Epetra:BOOL=ON \` `-D Trilinos_ENABLE_Tpetra:BOOL=ON \` `-D Tpetra_ENABLE_Kokkos_Refactor:BOOL=ON \` `-D Trilinos_ENABLE_EpetraExt:BOOL=ON \` `-D Trilinos_ENABLE_Ifpack:BOOL=ON \` `-D Trilinos_ENABLE_AztecOO:BOOL=ON \` `-D Trilinos_ENABLE_Amesos:BOOL=ON \` `-D Trilinos_ENABLE_Anasazi:BOOL=ON \` `-D Trilinos_ENABLE_Belos:BOOL=ON \` `-D Trilinos_ENABLE_ML:BOOL=ON \` `-D Trilinos_ENABLE_Phalanx:BOOL=ON \` `-D Phalanx_ENABLE_COMPILETIME_ARRAY_CHECK:BOOL=ON\` `-D Phalanx_KOKKOS_DEVICE_TYPE:STRING="OPENMP" \` `-D Phalanx_INDEX_SIZE_TYPE="UINT" \` `-D Trilinos_ENABLE_Intrepid:BOOL=ON \` `-D HAVE_INTREPID_KOKKOSCORE:BOOL=ON \` `-D Trilinos_ENABLE_NOX:BOOL=ON \` `-D Trilinos_ENABLE_Stratimikos:BOOL=ON \` `-D Trilinos_ENABLE_Thyra:BOOL=ON \` `-D Trilinos_ENABLE_ThyraTpetraAdapters:BOOL=ON \` `-D Trilinos_ENABLE_Rythmos:BOOL=ON \` `-D Trilinos_ENABLE_MOOCHO:BOOL=ON \` `-D Trilinos_ENABLE_Stokhos:BOOL=ON \` `-D Trilinos_ENABLE_STKIO:BOOL=ON \` `-D Trilinos_ENABLE_STKMesh:BOOL=ON \` `-D Trilinos_ENABLE_Teko:BOOL=ON \` `-D Trilinos_ENABLE_SEACASIoss:BOOL=ON \` `-D Trilinos_ENABLE_SEACASExodus:BOOL=ON \` `-D SEACASExodus_PARALLEL_AWARE:BOOL=OFF \` `-D Trilinos_ENABLE_TriKota:BOOL=OFF \` `-D Trilinos_Enable_Kokkos:BOOL=ON \` `-D Trilinos_ENABLE_KokkosCore:BOOL=ON \` `-D Trilinos_ENABLE_KokkosClassic:BOOL=ON \` `-D Trilinos_ENABLE_KokkosContainers:BOOL=ON \` `-D Trilinos_ENABLE_KokkosCompat:BOOL=ON \` `-D Trilinos_ENABLE_KokkosTPL:BOOL=ON \` `-D Trilinos_ENABLE_KokkosLinAlg:BOOL=ON \` `-D Trilinos_ENABLE_TeuchosKokkosCompat:BOOL=ON \` `-D Trilinos_ENABLE_TpetraKernels:BOOL=ON \` `-D Trilinos_ENABLE_TeuchosKokkosComm:BOOL=ON \` `-D KokkosClassic_DefaultNode:STRING="Kokkos::Compat::KokkosOpenMPWrapperNode" \` `-D Trilinos_ENABLE_OpenMP:BOOL=ON \` `-D Kokkos_ENABLE_OpenMP:BOOL=ON \` `-D TPL_ENABLE_Boost:BOOL=ON \` `-D Boost_INCLUDE_DIRS:FILEPATH="$BOOSTDIR/include" \` `-D Boost_LIBRARY_DIRS:FILEPATH="$BOOSTDIR/lib" \` `-D TPL_ENABLE_BoostLib:BOOL=ON \` `-D BoostLib_INCLUDE_DIRS:FILEPATH="$BOOSTDIR/include" \` `-D BoostLib_LIBRARY_DIRS:FILEPATH="$BOOSTDIR/lib" \` `-D TPL_ENABLE_Netcdf:BOOL=ON \` `-D Netcdf_INCLUDE_DIRS:PATH="$NETCDF/include" \` `-D Netcdf_LIBRARY_DIRS:PATH="$NETCDF/lib" \` `-D TPL_ENABLE_HDF5:BOOL=ON \` `-D HDF5_INCLUDE_DIRS:PATH="$HDFDIR/include" \` `-D HDF5_LIBRARY_DIRS:PATH="$HDFDIR/lib" \` `-D Trilinos_ENABLE_Mesquite:BOOL=OFF \` `-D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \` `-D Trilinos_ENABLE_TESTS:BOOL=OFF \` `-D TPL_ENABLE_BinUtils:BOOL=OFF \` `-D TPL_ENABLE_MPI:BOOL=ON \` `-D CMAKE_C_COMPILER="mpiicc" \` `-D CMAKE_CXX_COMPILER="mpiicpc" \` `-D CMAKE_Fortran_COMPILER="mpiifort" \` `-D SEACASExodus_PARALLEL_AWARE:BOOL=OFF \` `-D CMAKE_VERBOSE_MAKEFILE:BOOL=OFF \` `-D CMAKE_CXX_FLAGS:STRING="-g -DMPICH_IGNORE_CXX_SEEK -DMPICH_SKIP_MPICXX -I./install/include/" \` `-D CMAKE_C_FLAGS:STRING="-g -DMPICH_IGNORE_CXX_SEEK -DMPICH_SKIP_MPICXX" \` `-D Trilinos_ENABLE_Fortran:BOOL=OFF \` `-D TPL_ENABLE_Pthread=ON \` `-D TPL_Pthread_LIBRARIES="pthread" \` `-D TPL_ENABLE_HWLOC=ON \` `-D HWLOC_INCLUDE_DIRS=/home/ipdemes/install/hwloc/include \` `-D HWLOC_LIBRARY_DIRS=/home/ipdemes/install/hwloc/lib \` `-D HAVE_GCC_ABI_DEMANGLE_EXITCODE=0 \` `-D HAVE_TEUCHOS_BLASFLOAT_EXITCODE=0 \` `-D LAPACK_SLAPY2_WORKS_EXITCODE=0 \` `-D BLAS_LIBRARY_DIRS:FILEPATH="${MKLROOT}/lib/intel64" \` `-D BLAS_LIBRARY_NAMES="mkl_intel_lp64;mkl_sequential;mkl_core;pthread;m" \` `-D LAPACK_LIBRARY_NAMES="" \` `-D TPL_LAPACK_LIBRARIES="" \` `-D Trilinos_ENABLE_CXX11:BOOL=ON \` `-D Kokkos_ENABLE_CXX11:BOOL=ON \` `-D Amesos2_ENABLE_KLU2:BOOL=ON \` `\` `\` `$EXTRA_ARGS \` `${TRILINOS_HOME}`
-
Build Albany
-
Building supporting packages
Instructions on how to build hdf5 for MIC can be found here: http://linux4hippos.blogspot.com/2013/05/cross-compile-hdf5-for-intel-xeon-phi.html
to be added