Connecting UMFPACK in deal.II to Trilinos's Amesos solver

13 views
Skip to first unread message

Jimmy Ho

unread,
Aug 4, 2020, 5:56:51 PM8/4/20
to deal.II User Group
Hi All,

I am trying to use UMFPACK through Trilinos (V.12.18.1) Amesos solver. Since UMFPACK is bundled with deal.ii and was configured to work in deal.ii before, I was trying to point Trilinos to that installation of UMFPACK. Following the README file on interfacing deal.II with Trilinos, I used the following config file (Also attached):
mkdir build
cd build

cmake                                            \
    -DTrilinos_ENABLE_Amesos=ON                      \
    -DTrilinos_ENABLE_Epetra=ON                      \
    -DTrilinos_ENABLE_EpetraExt=ON                   \
    -DTrilinos_ENABLE_Ifpack=ON                      \
    -DTrilinos_ENABLE_AztecOO=ON                     \
    -DTrilinos_ENABLE_Sacado=ON                      \
    -DTrilinos_ENABLE_Teuchos=ON                     \
    -DTrilinos_ENABLE_MueLu=ON                       \
    -DTrilinos_ENABLE_ML=ON                          \
    -DTrilinos_ENABLE_ROL=ON                         \
    -DTrilinos_ENABLE_Tpetra=ON                      \
    -DTeuchos_ENABLE_COMPLEX:BOOL=ON                 \
    -DTeuchos_ENABLE_FLOAT:BOOL=ON                   \
    -DTpetra_INST_FLOAT=ON                           \
    -DTpetra_INST_COMPLEX_DOUBLE=ON                  \
    -DTpetra_INST_COMPLEX_FLOAT=ON                   \
    -DTrilinos_ENABLE_Zoltan=ON                      \
    -DTrilinos_VERBOSE_CONFIGURE=OFF                 \
    -DTPL_ENABLE_MPI=ON                              \
    -DTPL_ENABLE_UMFPACK:BOOL=ON \
    -DTPL_UMFPACK_INCLUDE_DIRS='/home/hippo/dealii-9.1.1/bundled/umfpack/AMD/Include;/home/hippo/dealii-9.1.1/bundled/umfpack/UMFPACK/Include' \
    -DBUILD_SHARED_LIBS=ON                           \
    -DCMAKE_VERBOSE_MAKEFILE=OFF                     \
    -DCMAKE_BUILD_TYPE=RELEASE                       \
    -DCMAKE_INSTALL_PREFIX:PATH=/home/hippo/Trilinos-12-18-1/myBuild \
    ../


where the only difference from before was I added:
    -DTPL_ENABLE_UMFPACK:BOOL=ON \
    -DTPL_UMFPACK_INCLUDE_DIRS='/home/hippo/dealii-9.1.1/bundled/umfpack/AMD/Include;/home/hippo/dealii-9.1.1/bundled/umfpack/UMFPACK/Include' \

to point to the two include folders of UMFPACK in deal.II.

However, upon running the shell script, I got the following error:
Processing enabled TPL: UMFPACK (enabled explicitly, disable with -DTPL_ENABLE_UMFPACK=OFF)
-- UMFPACK_LIBRARY_NAMES='umfpack;amd'
-- Searching for libs in UMFPACK_LIBRARY_DIRS=''
-- Searching for a lib in the set "umfpack":
--   Searching for lib 'umfpack' ...
-- NOTE: Did not find a lib in the lib set "umfpack" for the TPL 'UMFPACK'!
-- ERROR: Could not find the libraries for the TPL 'UMFPACK'!
-- TIP: If the TPL 'UMFPACK' is on your system then you can set:
     -DUMFPACK_LIBRARY_DIRS='<dir0>;<dir1>;...'
   to point to the directories where these libraries may be found.
   Or, just set:
     -DTPL_UMFPACK_LIBRARIES='<path-to-libs0>;<path-to-libs1>;...'
   to point to the full paths for the libraries which will
   bypass any search for libraries and these libraries will be used without
   question in the build.  (But this will result in a build-time error
   if not all of the necessary symbols are found.)
-- ERROR: Failed finding all of the parts of TPL 'UMFPACK' (see above), Aborting!



After reading through the error message, it appears that it needs a directory to find the UMFPACK libraries. So I changed the two config lines to be:
    -DTPL_ENABLE_UMFPACK:BOOL=ON \
    -DUMFPACK_LIBRARY_DIRS:FILEPATH='/home/hippo/dealii-9.1.1/bundled/umfpack/AMD;/home/hippo/dealii-9.1.1/bundled/umfpack/UMFPACK' \


to point to the folder that the source codes live in. However, now I get this (essentially the same) error message:
Processing enabled TPL: UMFPACK (enabled explicitly, disable with -DTPL_ENABLE_UMFPACK=OFF)
-- UMFPACK_LIBRARY_NAMES='umfpack;amd'
-- Searching for libs in UMFPACK_LIBRARY_DIRS='/home/hippo/dealii-9.1.1/bundled/umfpack/AMD;/home/hippo/dealii-9.1.1/bundled/umfpack/UMFPACK'
-- Searching for a lib in the set "umfpack":
--   Searching for lib 'umfpack' ...
-- NOTE: Did not find a lib in the lib set "umfpack" for the TPL 'UMFPACK'!
-- ERROR: Could not find the libraries for the TPL 'UMFPACK'!
-- TIP: If the TPL 'UMFPACK' is on your system then you can set:
     -DUMFPACK_LIBRARY_DIRS='<dir0>;<dir1>;...'
   to point to the directories where these libraries may be found.
   Or, just set:
     -DTPL_UMFPACK_LIBRARIES='<path-to-libs0>;<path-to-libs1>;...'
   to point to the full paths for the libraries which will
   bypass any search for libraries and these libraries will be used without
   question in the build.  (But this will result in a build-time error
   if not all of the necessary symbols are found.)
-- ERROR: Failed finding all of the parts of TPL 'UMFPACK' (see above), Aborting!

So, what should I do to properly connect UMFPACK in deal.II to Trilinos? Any suggestions are highly appreciated!

Best,
Jimmy


config.sh

Wolfgang Bangerth

unread,
Aug 4, 2020, 6:23:09 PM8/4/20
to dea...@googlegroups.com
On 8/4/20 3:56 PM, Jimmy Ho wrote:
>
> So, what should I do to properly connect UMFPACK in deal.II to Trilinos? Any
> suggestions are highly appreciated!

It's not going to work this way, I'm afraid. Trilinos wants a link to an
external installation of UMFPACK (or SparseSuite, of which it is part of these
days). deal.II doesn't actually create such an installation and instead just
links everything into the deal.II libraries.

So what you want to do is to download UMFPACK, install it on your system, and
point Trilinos to the installation.

(UMFPACK is still going to be part of the deal.II libraries, but that
shouldn't create any problems.)

Best
W.


--
------------------------------------------------------------------------
Wolfgang Bangerth email: bang...@colostate.edu
www: http://www.math.colostate.edu/~bangerth/

Jimmy Ho

unread,
Aug 4, 2020, 6:39:54 PM8/4/20
to deal.II User Group
Hi Dr. Bangerth,

Thanks a lot for your guidance! I will install an external copy of UMFPACK and see what happens!

Best,
Jimmy
Reply all
Reply to author
Forward
0 new messages