ShyLU Basker build failure with new CMake changes
Created by: ndellingwood
While testing the recent CMake changes discussed in issue #1400 Trilinos fails to build with ShyLU Basker enabled with the following error:
/Users/ndellin/Research/trilinos-dev/Trilinos/packages/amesos2/src/Amesos2_Basker_FunctionMap.hpp:64:41: fatal error: shylubasker_trilinos_decl.hpp: No such file or directory
compilation terminated.
The file above is not being found from the directory Trilinos/packages/shylu/shylu_node/basker/src
@trilinos/kokkos @trilinos/shylu @bartlettroscoe @crtrott @ndellingwood
Expectations
Current Behavior
With the new CMake changes Trilinos fails to build with ShyLU Basker enabled.
Motivation and Context
Trilinos builds with ShyLU Basker enabled on the develop branch without the CMake changes. Xyce uses this package and would be affected by this issue.
Definition of Done
Possible Solution
Steps to Reproduce
- Clone Kokkos and checkout the develop branch
- Clone Trilinos and checkout the kokkos-promotion branch
- Create symbolic link to kokkos in the Trilinos directory; add corresponding line to configure line/file:
-DKokkos_SOURCE_DIR_OVERRIDE:STRING=kokkos
- Create a build directory and configure Trilinos - my configure script is attached (change the TPL directories if using system installs or SEMS modules)
- Build Trilinos - make -j
- Observe the error towards the end of compilation pkg: OptiPack%
Configure script:
#!/bin/bash
export SRCDIR=/Users/ndellin/Research/trilinos-dev/Trilinos
TPL_PATH=/Users/ndellin/Research/TPL
BLAS_PATH=${TPL_PATH}/BLAS-3.6.0
LAPACK_PATH=${TPL_PATH}/lapack-3.6.1
SCOTCH_PATH=${TPL_PATH}/scotch_6.0.3
export INSTALL_LOCATION=${PWD}/install
rm -rf CMakeCache.txt CMakeFiles
cmake \
\
-D CMAKE_INSTALL_PREFIX:PATH="${INSTALL_LOCATION}" \
-D CMAKE_CXX_FLAGS:STRING="-DSHYLU_NODEBASKER -g" \
-D CMAKE_MAKE_PROGRAM="make" \
-D CMAKE_BUILD_TYPE:STRING=RELEASE \
-D CMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
-D BUILD_SHARED_LIBS:BOOL=OFF \
-D Trilinos_VERBOSE_CONFIGURE:BOOL=OFF \
\
-D TPL_ENABLE_MPI:BOOL=ON \
-D CMAKE_CXX_COMPILER:FILEPATH="`which mpicxx`" \
-D CMAKE_C_COMPILER:FILEPATH="`which mpicc`" \
-D CMAKE_Fortran_COMPILER:FILEPATH="`which mpifort`" \
\
-D TPL_ENABLE_ParMETIS:BOOL=OFF \
-D TPL_ENABLE_Scotch:BOOL=ON \
-D Scotch_INCLUDE_DIRS:PATH="${SCOTCH_PATH}/include" \
-D Scotch_LIBRARY_DIRS:PATH="${SCOTCH_PATH}/lib" \
-D Scotch_LIBRARY_NAMES:STRING="scotch;scotcherr" \
-D TPL_ENABLE_BLAS:STRING=ON \
-D BLAS_LIBRARY_DIRS:FILEPATH=${BLAS_PATH} \
-D TPL_BLAS_LIBRARIES="-lblas" \
-D TPL_ENABLE_LAPACK:STRING=ON \
-D LAPACK_LIBRARY_DIRS:FILEPATH=${LAPACK_PATH} \
-D TPL_LAPACK_LIBRARIES="-llapack" \
\
-D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=OFF \
-D Trilinos_ENABLE_COMPLEX_DOUBLE:BOOL=ON \
-D Trilinos_ENABLE_DEBUG:BOOL=OFF \
-D Trilinos_ENABLE_EXAMPLES:BOOL=OFF \
-D Trilinos_ENABLE_TESTS:BOOL=OFF \
\
-D Trilinos_ENABLE_Amesos:BOOL=ON \
-D Amesos_ENABLE_KLU:BOOL=ON \
\
-D Trilinos_ENABLE_CHECKED_STL:BOOL=OFF \
-D Trilinos_ENABLE_OpenMP:BOOL=ON \
-D Trilinos_ENABLE_Kokkos:BOOL=ON \
-D Kokkos_SOURCE_DIR_OVERRIDE:STRING=kokkos \
-D Kokkos_ENABLE_OpenMP:BOOL=ON \
-D Kokkos_ENABLE_EXAMPLES:BOOL=OFF \
-D Kokkos_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_EXPLICIT_INSTANTIATION:BOOL=ON \
-D Trilinos_ENABLE_Epetra:BOOL=ON \
-D Epetra_ENABLE_EXAMPLES:BOOL=OFF \
-D Epetra_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_EpetraExt:BOOL=ON \
-D EpetraExt_ENABLE_EXAMPLES:BOOL=OFF \
-D EpetraExt_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_Tpetra:BOOL=ON \
-D Tpetra_ENABLE_EXAMPLES:BOOL=OFF \
-D Tpetra_ENABLE_TESTS:BOOL=OFF \
-D Trilinos_ENABLE_TeuchosRemainder:BOOL=ON \
-D Trilinos_ENABLE_ShyLU_NodeBasker:BOOL=ON \
-D ShyLU_NodeBasker_ENABLE_TESTS:BOOL=ON \
-D ShyLU_NodeBasker_ENABLE_EXAMPLES:BOOL=ON \
-D Trilinos_ENABLE_Amesos2:BOOL=ON \
-D Amesos2_ENABLE_TESTS:BOOL=ON \
-D Amesos2_ENABLE_EXAMPLES:BOOL=ON \
-D Amesos2_ENABLE_TIMERS:BOOL=ON \
-D Amesos2_ENABLE_KLU2:BOOL=ON \
-D Amesos2_ENABLE_Basker:BOOL=ON \
${SRCDIR}
Your Environment
Tested on laptop with cmake/3.6.2, gcc/5.4.0 TPLs required: BLAS, LAPACK, Scotch 6.0 (available as SEMS module sems-scotch/6.0.3/nopthread_64bit_parallel)
- Relevant repo SHA1s:
- Relevant configure flags or configure script:
- Operating system and version:
- Compiler and TPL versions:
Related Issues
- Blocks
- Is blocked by
- Follows
- Precedes
- Related to
- Part of
- Composed of
Additional Information
Compile line preceding the error:
cd /Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/amesos2/src && /opt/local/bin/mpicxx -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest -I/Users/ndellin/Research/trilinos-dev/Trilinos -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/amesos2/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/amesos2/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/amesos2/src/KLU2/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/amesos2/src/KLU2/Source -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/AMD/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/COLAMD/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/BTF/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/UFconfig -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/epetraext/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/transform -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/inout -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/coloring -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/model_evaluator -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/block -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetraext/src/restrict -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/epetra/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/epetra/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/teuchos/kokkoscomm/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/kokkoscomm/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/teuchos/kokkoscompat/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/kokkoscompat/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/parameterlist/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/parser/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/teuchos/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/kokkos/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/kokkos/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/comm/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/remainder/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/teuchos/remainder/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/teuchos/numerics/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/CAMD/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/CCOLAMD/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/common/auxiliarySoftware/SuiteSparse/src/KLU/Include -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/core/ext -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/core/ext -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/core/inout -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/core/inout -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/core/src/kokkos_refactor -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/core/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/tsqr/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/tsqr/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/classic/LinAlg -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/classic/NodeAPI -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/classic/NodeAPI -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/tpetra/classic/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/tpetra/classic/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/packages/kokkos-kernels/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/impl -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/impl/tpls -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/blas -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/blas/impl -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/sparse -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/sparse/impl -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/graph -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/graph/impl -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/batched -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/batched/impl -I/Users/ndellin/Research/trilinos-dev/Trilinos/packages/kokkos-kernels/src/common -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/kokkos/algorithms/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/kokkos/algorithms/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/Build/ShyLUBasker/CMakeTest/kokkos/containers/src -I/Users/ndellin/Research/trilinos-dev/Trilinos/kokkos/containers/src -pedantic -Wall -Wno-long-long -Wwrite-strings -DSHYLU_NODEBASKER -DBASKER_TIMER -g -std=c++11 -fopenmp -O3 -DNDEBUG -o CMakeFiles/amesos2.dir/Amesos2_Factory.cpp.o -c /Users/ndellin/Research/trilinos-dev/Trilinos/packages/amesos2/src/Amesos2_Factory.cpp