opal AT lists.psi.ch
Subject: The OPAL Discussion Forum
List archive
- From: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>
- To: Matt Easton 董昊 <matt.easton AT pku.edu.cn>
- Cc: opal AT lists.psi.ch
- Subject: Re: [Opal] Error installing Trilinos: not finding ParMETIS version
- Date: Fri, 26 Jan 2018 12:04:51 +0100
Hi Matt,
do you need the SAAMG solver? It's definitely not required, you can disable it.
Christof
Am 26.01.2018 11:31 vorm. schrieb "Matt Easton 董昊" <matt.easton AT pku.edu.cn>:
Dear Matthias,I’m using the recipes on the OPAL wiki: https://gitlab.psi.ch/OPAL/src/wikis/For%20Developers/Compile-OPAL-on-RHEL6So at the beginning it defines the prefix (originally ‘PREFIX=“${HOME}/software”’ but I changed this to ‘PREFIX=“$/usr/local”’).Then for Trilinos it uses this configuration:P=trilinosV=12.10.1OS=$(uname -s)declare -a config_args=()if [[ "${OS}" == "Linux" ]]; thenconfig_args+=( "-D BLAS_LIBRARY_DIRS:PATH=${PREFIX}/lib" )config_args+=( "-D BLAS_INCLUDE_DIRS:PATH=${PREFIX}/include" )config_args+=( "-D BLAS_LIBRARY_NAMES:STRING=openblas" )config_args+=( "-D LAPACK_LIBRARY_DIRS:PATH=${PREFIX}/lib" )config_args+=( "-D LAPACK_INCLUDE_DIRS:PATH=${PREFIX}/include" )config_args+=( "-D LAPACK_LIBRARY_NAMES:STRING=openblas" )config_args+=( "-D CMAKE_Fortran_FLAGS:STRING=-fPIC" )elif [[ "${OS}" == "Darwin" ]]; thenconfig_args+=( "-DTrilinos_ENABLE_Fortran=OFF" )fimkdir -p "${SRC_DIR}/$P/build" && cd "$_"CC=mpicc CXX=mpicxx cmake \-D CMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \-D CMAKE_CXX_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK -fPIC" \-D CMAKE_C_FLAGS:STRING="-DMPICH_IGNORE_CXX_SEEK -fPIC" \-D CMAKE_CXX_STANDARD:STRING="11" \-D CMAKE_BUILD_TYPE:STRING=Release \-D TPL_ENABLE_DLlib:BOOL=OFF \-D TPL_ENABLE_QT:BOOL=OFF \-D TPL_ENABLE_MPI:BOOL=ON \-D TPL_ENABLE_BLAS:BOOL=ON \-D TPL_ENABLE_LAPACK:BOOL=ON \-D TPL_ENABLE_METIS:BOOL=ON \-D TPL_ENABLE_ParMETIS:BOOL=ON \-D TPL_METIS_INCLUDE_DIRS:PATH="${PREFIX}/include" \-D TPL_METIS_LIBRARIES:STRING="${PREFIX}/lib/libmetis.a" \-D TPL_ParMETIS_INCLUDE_DIRS:PATH="${PREFIX}/include" \-D TPL_ParMETIS_LIBRARIES:STRING="${PREFIX}/lib/libparmetis.a" \-D Trilinos_ENABLE_Amesos:BOOL=ON \-D Trilinos_ENABLE_Amesos2:BOOL=ON \-D Trilinos_ENABLE_AztecOO:BOOL=ON \-D Trilinos_ENABLE_Belos:BOOL=ON \-D Trilinos_ENABLE_Epetra:BOOL=ON \-D Trilinos_ENABLE_EpetraExt:BOOL=ON \-D Trilinos_ENABLE_Galeri:BOOL=ON \-D Trilinos_ENABLE_Ifpack:BOOL=ON \-D Trilinos_ENABLE_Isorropia:BOOL=ON \-D Trilinos_ENABLE_ML:BOOL=ON \-D Trilinos_ENABLE_NOX:BOOL=ON \-D Trilinos_ENABLE_Optika:BOOL=OFF \-D Trilinos_ENABLE_Teuchos:BOOL=ON \-D Trilinos_ENABLE_Tpetra:BOOL=ON \-D Trilinos_ENABLE_TESTS:BOOL=OFF \"${config_args[@]}" \"${SRC_DIR}/$P/$P-$V-SourceSo it seems to me that all the paths should be set. Or am I missing something?Cheers,MattP.S. I’m used to using /opt for self-contained packages or alternative package managers like stow or brew. Why would you advise using it in this context?Hi Matt
Since it can't find Parmetis, you may need to update
- CPLUS_INCLUDE_PATH
- C_INCLUDE_PATH
- LD_LIBRARY_PATH
BTW, I think it's good practice to install TPL libraries in /opt.
Best,
Matthias
Von: opal-request AT lists.psi.ch [opal-request AT lists.psi.ch]" im Auftrag von "Matt Easton 董昊 [matt.easton AT pku.edu.cn]
Gesendet: Freitag, 26. Januar 2018 09:40
An: opal AT lists.psi.ch
Betreff: [Opal] Error installing Trilinos: not finding ParMETIS version
Hi there, I’m afraid it’s me again!
I’m pleased the discussion about installing in Windows is useful to others too.
The latest problem I’m having is an error message during the configuration step for Trilinos:
Processing enabled package: Zoltan2 (Libs)CMake Error at packages/zoltan2/CMakeLists.txt:8 (MESSAGE):
Zoltan2 requires ParMETIS_version 4.0.3 or later. Upgrade or set
TPL_ENABLE_ParMETIS OFF or set Zoltan2_ENABLE_ParMETIS OFF.
-- Configuring incomplete, errors occurred!
I installed ParMETIS v4.0.3 using the recipe on the OPAL wiki, and all the files seem to be in the right place. I’m using /usr/local as my installation prefix. This is using Ubuntu via WSL.
I can’t work out why the configuration script can’t find the right version of ParMETIS.
Thanks all.Matt
- [Opal] Error installing Trilinos: not finding ParMETIS version, Matt Easton 董昊, 01/26/2018
- AW: [Opal] Error installing Trilinos: not finding ParMETIS version, Frey Matthias (PSI), 01/26/2018
- Re: [Opal] Error installing Trilinos: not finding ParMETIS version, Matt Easton 董昊, 01/26/2018
- Re: [Opal] Error installing Trilinos: not finding ParMETIS version, Christof Metzger-Kraus, 01/26/2018
- AW: [Opal] Error installing Trilinos: not finding ParMETIS version, Frey Matthias (PSI), 01/26/2018
- RE: [Opal] Error installing Trilinos: not finding ParMETIS version, Matt Easton 董昊, 01/29/2018
- AW: [Opal] Error installing Trilinos: not finding ParMETIS version, Frey Matthias (PSI), 01/26/2018
- Re: [Opal] Error installing Trilinos: not finding ParMETIS version, Christof Metzger-Kraus, 01/26/2018
- Re: [Opal] Error installing Trilinos: not finding ParMETIS version, Matt Easton 董昊, 01/26/2018
- AW: [Opal] Error installing Trilinos: not finding ParMETIS version, Frey Matthias (PSI), 01/26/2018
Archive powered by MHonArc 2.6.19.