Skip to Content.
Sympa Menu

opal - AW: [Opal] Error installing Trilinos: not finding ParMETIS version

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

AW: [Opal] Error installing Trilinos: not finding ParMETIS version


Chronological Thread 
  • From: "Frey Matthias (PSI)" <matthias.frey AT psi.ch>
  • To: Christof Metzger-Kraus <christof.j.kraus AT gmail.com>, Matt Easton 董昊 <matt.easton AT pku.edu.cn>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: AW: [Opal] Error installing Trilinos: not finding ParMETIS version
  • Date: Fri, 26 Jan 2018 11:38:24 +0000
  • Accept-language: de-DE, de-CH, en-US

Hi Matt

Yes, I see the paths are set. I'd check if Parmetis is really under ${PREFIX} (i.e. /usr/local/) and not in /usr/local/parmetis (or something similar).

And if you do not need SAAMG, then I agree to Christof.

Best,
Matthias


Von: opal-request AT lists.psi.ch [opal-request AT lists.psi.ch]" im Auftrag von "Christof Metzger-Kraus [christof.j.kraus AT gmail.com]
Gesendet: Freitag, 26. Januar 2018 12:04
An: Matt Easton 董昊
Cc: opal AT lists.psi.ch
Betreff: Re: [Opal] Error installing Trilinos: not finding ParMETIS version

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,


So 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=trilinos
V=12.10.1
OS=$(uname -s) 
declare -a config_args=()
if [[ "${OS}" == "Linux" ]]; then 
    config_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" ]]; then 
    config_args+=( "-DTrilinos_ENABLE_Fortran=OFF" ) 
fi 

mkdir -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-Source

So it seems to me that all the paths should be set. Or am I missing something?

Cheers,
Matt

P.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?

On 26 Jan 2018, at 16:55, Frey Matthias (PSI) <matthias.frey AT psi.ch> wrote:

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



Archive powered by MHonArc 2.6.19.

Top of Page