From e34dcda1a9993952785a5683c05f72d148e43271 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Thu, 8 Dec 2022 09:49:31 +0100 Subject: [PATCH] add missing ParMetis-4 compilation script --- products/ParMetis.pyconf | 6 ++++ products/compil_scripts/ParMetis-4.sh | 41 +++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100755 products/compil_scripts/ParMetis-4.sh diff --git a/products/ParMetis.pyconf b/products/ParMetis.pyconf index 692de89..11661dc 100644 --- a/products/ParMetis.pyconf +++ b/products/ParMetis.pyconf @@ -18,6 +18,12 @@ default : incremental : "yes" } } + +version_4_0_3_p6 : +{ + compil_script : "ParMetis-4.sh" +} + version_3_1_1 : { compil_script : "ParMetis-3.sh" diff --git a/products/compil_scripts/ParMetis-4.sh b/products/compil_scripts/ParMetis-4.sh new file mode 100755 index 0000000..26faaf5 --- /dev/null +++ b/products/compil_scripts/ParMetis-4.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +echo "##########################################################################" +echo "ParMetis" $VERSION +echo "##########################################################################" + + + +cp -r $SOURCE_DIR/* . + +echo +echo "*** apply sed for 64bits platforms" +sed -e 's/CC = mpicc/CC = mpicc -fPIC/g' Makefile.in > Makefile.in_new +cp Makefile.in_new Makefile.in + +echo +echo "*** make" $MAKE_OPTIONS +make $MAKE_OPTIONS +if [ $? -ne 0 ] +then + echo "ERROR on make" + exit 2 +fi + +# install +echo "** install" +mkdir -p $PRODUCT_INSTALL +mkdir -p $PRODUCT_INSTALL"/METISLib" +mkdir -p $PRODUCT_INSTALL"/ParMETISLib" + +cp libparmetis.a $PRODUCT_INSTALL +cp libmetis.a $PRODUCT_INSTALL +cp parmetis.h $PRODUCT_INSTALL +cp Graphs/ptest Graphs/mtest Graphs/parmetis Graphs/pometis $PRODUCT_INSTALL + +cp METISLib/*.h $PRODUCT_INSTALL"/METISLib" +cp ParMETISLib/*.h $PRODUCT_INSTALL"/ParMETISLib" + +echo +echo "########## END" + -- 2.39.2