[Dune] [SPOOFED?] Re: DUNE unable to find ParMETIS installation on macOS

Lukas Riedel lriedel at iup.uni-heidelberg.de
Wed Aug 21 12:54:58 CEST 2019


Hi Benedikt,

thank you for your quick response. Indeed, I work in Kurt Roth’s group and have been doing so since my Bachelor’s thesis :)

As stated in the GitLab Issue, I built ParMETIS locally because it is not available from Homebrew. I dug a bit into the FindParMETIS.cmake <https://gitlab.dune-project.org/core/dune-common/blob/master/cmake/modules/FindParMETIS.cmake> module and noticed that it tries to locate the METIS library inside the ParMETIS root directory. I also noticed that METIS is actually included in the ParMETIS source tarball. However, the METIS library is not installed into the ParMETIS prefix directory when I execute `make install` for ParMETIS.

This all makes very little sense to me. Should I build both METIS and ParMETIS from source and install them into the *same* prefix directory?

Cheers
Lukas

> On 21. Aug 2019, at 10:53, Benedikt Oswald <benedikt.oswald at lspr.swiss> wrote:
> 
> Good morning Lukas, I attach part of my opts file for compiling Dune,using Parmetis on Mac OS X.
> 
> It works, I suggest, that you install Parmetis from the ground up, not using brew, if you haven't done so already.
> 
> I understand that you work in the soil physics group of comrade Kurt ?
> 
> Greetings, Benedikt
> 
> ====================
> 
> USE_CMAKE=yes
> 
> MAKE_FLAGS="-j"
> 
> #CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions" 
> CONFIGURE_FLAGS="--enable-parallel --enable-experimental-grid-extensions CC=mpicc CXX=mpicxx FC=mpif90" 
> 
> ## Paths to modules automatically found by CMake
> #CMAKE_PREFIX_PATH="\
> #/opt/extlib/boost/1.70.0/gcc/9.1.0; \
> #"
> 
> 
> 
> 
> ## Debug opts
> ## GXX_WARNING_OPTS="-Wall -pedantic" 
> ## GXX_OPTS="-O0 -g3"
> 
> ## Release opts
> GXX_WARNING_OPTS="-Wall"
> #GXX_OPTS="-O2 -g3 -ftemplate-backtrace-limit=0"
> GXX_OPTS="-O2 -g1"
> 
> 
> ## Paths to modules manually found by Dune and Hades3d
> CMAKE_FLAGS="-DCMAKE_C_COMPILER=mpicc -DCMAKE_CXX_COMPILER=mpicxx -DCMAKE_FC_COMPILER=mpif90 -DMPI_Fortran_COMPILER=mpif90 \
> -DCMAKE_CXX_FLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS \" \
> -DELEKTRA3D_FLAGS=\" -DHAVE_DEBUG -DHAVE_PARMETIS -DHAVE_CURVGRID -DHAVE_GA \" \
> -DBOOSTROOT=\"/opt/extlib/boost/1.70.0/gcc/9.1.0\" \
> \
> -DMETIS_ROOT=\"/opt/extlib/metis/5.1.0/gcc/9.1.0\" \
> -DPARMETIS_ROOT=\"/opt/extlib/parmetis/4.0.3/openmpi/4.0.1/gcc/9.1.0\" \
> -DPTSCOTCH_ROOT=\"/opt/extlib/scotch/6.0.7/openmpi/4.0.1/gcc/9.1.0\" \
> \
> -DSUPERLUDIST_ROOT=\"/opt/extlib/superludist/6.1.1/openmpi/4.0.1/gcc/9.1.0\" \
> \
> -DPETSC_ROOT=\"/opt/extlib/petsc/3.11.2/openmpi/4.0.1/gcc/9.1.0\" \
> -DSLEPC_ROOT=\"/opt/extlib/slepc/3.11.1/openmpi/4.0.1/gcc/9.1.0\" \
> -DFEAST_ROOT=\"/opt/extlib/feast/3.0/openmpi/4.0.1/gcc/9.1.0\" \
> -DFEAST_ADDITIONAL_LINKER_FLAGS=\"-L/opt/intel/2019.3/mkl/lib -L/opt/intel/2019.3/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_sequential -lmkl_lapack95_lp64 -liomp5 -lpthread -lm -lgfortran -lmpi_mpifh -lmpi\" \
> -DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
> -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
> -DCMAKE_SHARED_LINKER_FLAGS=\"-L/Applications/conda/anaconda3/lib -lz -lpython3.7m \" \
> "
> =========================================
> 
> 
> 
> 
> 
> Am 21.08.19 um 10:49 schrieb Lukas Riedel:
>> Hi everybody,
>> 
>> I recently raised an Issue in the dune-istl repository because I’m unable to get DUNE to bind to my ParMETIS installation on macOS: https://gitlab.dune-project.org/core/dune-istl/issues/77 <https://gitlab.dune-project.org/core/dune-istl/issues/77>. I am not sure if this was the right repository to raise it because the problem is likely rooted in the FindParMETIS.cmake module which is located in dune-common. But as dune-common does not search for ParMETIS, the problem occurs when building dune-istl.
>> 
>> You’ll find all logs and information on my configuration in the Issue.
>> 
>> Thank you in advance for any help!
>> Cheers,
>> Lukas
>> 
>> ---------------------------------------------
>> Institute of Environmental Physics
>> Im Neuenheimer Feld 229
>> D–69120 Heidelberg
>> http://ts.iup.uni-heidelberg.de <http://ts.iup.uni-heidelberg.de/>
>> Tel: +49 (0)6221 54 6379
>> 
>> 
>> 
>> _______________________________________________
>> Dune mailing list
>> Dune at lists.dune-project.org <mailto:Dune at lists.dune-project.org>
>> https://lists.dune-project.org/mailman/listinfo/dune <https://lists.dune-project.org/mailman/listinfo/dune>-- 
> 
> ----------------------------------------------------------------------------------------------------------------------
> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone +41 43 366 90 74 - mobile +41 76 380 91 33
> Grubenstrasse 9, CH-8045 Zürich, benedikt.oswald at lspr.swiss <mailto:benedikt.oswald at lspr.swiss> - www.lspr.swiss <http://www.lspr.swiss/>
> ----------------------------------------------------------------------------------------------------------------------
> _______________________________________________
> Dune mailing list
> Dune at lists.dune-project.org
> https://lists.dune-project.org/mailman/listinfo/dune

---------------------------------------------
Institute of Environmental Physics
Im Neuenheimer Feld 229
D–69120 Heidelberg
http://ts.iup.uni-heidelberg.de <http://ts.iup.uni-heidelberg.de/>
Tel: +49 (0)6221 54 6379

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20190821/144e6b5a/attachment.htm>


More information about the Dune mailing list