On 08/11/17 23:14, Matteo Semplice wrote:
On 08/11/17 17:06, Drew Parsons wrote:On Wed, 2017-11-08 at 15:36 +0100, Matteo Semplice wrote:------------------------------------------------------------------- ------------ Your petsc source tree is broken. Use "git status" to check, or remove the entire directory and start all over againThe error isn't reported the way I sometimes see petsc build errors but the complaint about source tree gives me an idea. petsc checks its own git if it sees it's in one, and it might be complaing about the applied debian patches. Trying removing .git or moving it out of the way, say to _git. Then try dpkg-buildpackage -i_git (or try the manual build steps again).I would have never guessed this! Moving .git to _git made it work (even with dpkg-buildpackage) Thanks a lot!It's compiling the 3.8 from experimental right now. Tomorrow I'll also build with the modified debian rules and then report back.Matteo
Dear Drew,both 3.8 from experimental and the hacked version with parmetis support added in did compile and are working. For the records, the diffs are exactly what you had suggested:
matteo@signalkuppe:~/software/debian/petsc$ git diff 4b7653fcb diff --git a/debian/changelog b/debian/changelog index f85cf05d5..e8fc91d96 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +petsc (3.8.0+dfsg1-1exp1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Added --with-metis and --with-parmetis to configure options + + -- <matteo.semplice@unito.it> Thu, 09 Nov 2017 08:24:57 +0100 + petsc (3.8.0+dfsg1-1exp1) experimental; urgency=medium * Team upload. diff --git a/debian/rules b/debian/rules index a388afb00..67fd08e1d 100755 --- a/debian/rules +++ b/debian/rules@@ -106,6 +106,8 @@ CONFIGURATION_OPTIONS=--with-shared-libraries --with-pic=1 \ --with-ptscotch=1 --with-ptscotch-include=/usr/include/scotch --with-ptscotch-lib="-lptesmumps -lptscotch -lptscotcherr" \ --with-fftw=1 --with-fftw-include=[] --with-fftw-lib="-lfftw3 -lfftw3_mpi" \ --with-superlu=1 --with-superlu-include=/usr/include/superlu --with-superlu-lib=-lsuperlu \ + --with-metis --with-metis-include=/usr/include --with-metis-lib="-lmetis" \ + --with-parmetis --with-parmetis-include=/usr/include --with-parmetis-lib="-lparmetis" \
$(PETSC_HDF5_FLAGS) --CXX_LINKER_FLAGS="-Wl,--no-as-needed"In particular I can now use the parmetis partitioner which gives very sensible results (the "simple" partitioner gave an almost checkerboard partitioning, which is not very useful...)
Regarding scotch, I could not test it since the scotch partitioner does not seem to be in 3.8.0 (http://www.mcs.anl.gov/petsc/petsc-3.8.0/docs/manualpages/DM/PetscPartitionerType.html). It seems however to be back in 3.8.1 (http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/PetscPartitionerType.html#PetscPartitionerType)... just in case the policy on debian packages allows moving petsc to 3.8.1.
And again, thanks a lot!!!! Matteo