[Dune] SuperLUDist can't find parmetis

Markus Blatt markus at dr-blatt.de
Tue Oct 27 19:18:24 CET 2015


On Tue, Oct 27, 2015 at 05:07:05PM +0100, Aleksejs Fomins wrote:
> 
> [  9%] Linking CXX executable hades3ddgfdx
> /opt/extlib/superludist/3.3/openmpi/1.10.0/gcc/5.2.0/lib/libsuperludist.a(get_perm_c.o): In function `get_metis':
> get_perm_c.c:(.text+0x55): undefined reference to `METIS_NodeND'
> /opt/extlib/superludist/3.3/openmpi/1.10.0/gcc/5.2.0/lib/libsuperludist.a(get_perm_c_parmetis.o): In function `get_perm_c_parmetis':
> get_perm_c_parmetis.c:(.text+0x1b86): undefined reference to `ParMETIS_V3_NodeND'
>

As always " make VERBOSE=1 hades3ddgfdx" is your friend. Probably
metis and parmetis libs are not in the linker command.


I assume that FindSuperLUDist.cmake is your own invention. Really hard
to help in this case with such few information.
Nevertheless some style comments:
> ## define superludist paths & library
> SUPERLU_DIST_OPTS="-DHAVE_SUPERLU_DIST"
> SUPERLU_DIST_INCLUDE_PATH="-I/opt/extlib/parmetis/4.0.3/openmpi/1.10.0/gcc/5.2.0
> -I/opt/extlib/metis/5.1.0/gcc/5.2.0/include
> -I/opt/extlib/superludist/3.3/openmpi/1.10.0/gcc/5.2.0/SRC"

Reads fishy. CMake style would be
SUPERLU_DIST_INCLUDE_DIRS="dir1;dir2"

> SUPERLU_DIST_LIBRARY="-L/opt/extlib/superludist/3.3/openmpi/1.10.0/gcc/5.2.0/lib -L/opt/extlib/parmetis/4.0.3/openmpi/1.10.0/gcc/5.2.0/lib -L/opt/extlib/metis/5.1.0/gcc/5.2.0/lib -framework Accelerate"

Same here. Why call it library if there is none in there?

> 
> CMAKE_FLAGS=" \
> -DHADES_FLAGS=\" -DHAVE_DEBUG -DHAVE_PARMETIS -DHAVE_CURVGRID\" \
> -DCMAKE_CXXFLAGS=\"$GXX_WARNING_OPTS $GXX_OPTS $SUPERLU_DIST_INCLUDE_PATH \" \
> -DMETIS_ROOT=\"/opt/extlib/metis/5.1.0/gcc/5.2.0\" \
> -DPARMETIS_ROOT=\"/opt/extlib/parmetis/4.0.3/openmpi/1.10.0/gcc/5.2.0\" \
> -DSUPERLUDIST_ROOT=\"/opt/extlib/superludist/3.3/openmpi/1.10.0/gcc/5.2.0\" \
> -DCMAKE_LIBRARY_PATH:RELEASE=\"/opt/extlib/boost/1.59.0/gcc/5.2.0/lib\" \
> -DCMAKE_LIBRARY_PATH:DEBUG=\"/opt/extlib/boost/1.59.0/gcc/5.2.0/lib\" \
> -DCMAKE_STANDARD_LIBRARIES:RELEASE=\"-lboost_system -lprogram_options\" \
> -DCMAKE_STANDARD_LIBRARIES:DEBUG=\"-lboost_system -lprogram_options\" \
> -DCMAKE_PREFIX_PATH=\"$CMAKE_PREFIX_PATH\" \
> -DDUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS:BOOL=TRUE \
> -DCMAKE_SHARED_LINKER_FLAGS=\"-lzlib\" \
> " 

Mmh, SUPERLU_DIST_LIBRARY is never used here. Intentional?

Markus

-- 
Join us at the DUNE User Meeting Sept. 28-29, 2015, Heidelberg, Germany
http://users.dune-project.org/projects/dune-user-meeting-2015/wiki

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20151027/303cdec6/attachment.sig>


More information about the Dune mailing list