[petsc-dev] [petsc-maint #53305] configuring petsc with parmetis

Matthew Knepley knepley at gmail.com
Thu Sep 23 10:08:30 CDT 2010


Okay, I just looked at the code. This is incredibly embarrassing. All
packages seem to use
their own code for rebuild determination, even though something general
exists in package.py.
This will have to be rewritten, but it will take a little while to check
that everything matches. Argh.

   Matt

On Wed, Sep 22, 2010 at 4:20 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>  I vote for a) "remember" that it should have been installed and tell the
> user to remove and run again.
>
>  Barry
>
> On Sep 22, 2010, at 3:11 PM, Matthew Knepley wrote:
>
> > On Wed, Sep 22, 2010 at 3:03 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >
> >
> >   There is a problem with our design.
> >
> >   If the user has used --download-xxxx and then later deletes everything
> in $PETSC_ARCH/lib then the next use of --download-xxx will fail because it
> will find the file
> > in $PETSC_ARCH/conf/xxxx that indicates the last download succeeded but
> the libraries won't exist so the check for the packages libraries fails with
> a not particularlly useful error message.
> >
> >   How can we fix this? Not just check for $PETSC_ARCH/conf/xxxx but also
> check for $PETSC_ARCH/lib/libs associated with xxxx before deciding to
> rebuild? Shoot the user who deletes everything in $PETSC_ARCH/lib?
> >
> > I am against additional checks, which are always fragile and provoke more
> pain than they dismiss. However, we
> > can improve the error message. After the 'conf' check, we remember that
> the library should be installed. If its not
> > found, we can
> >
> >   a) have a nice error that says "it looks like you deleted 'lib'. Please
> remove $PETSC_ARCH and rerun configure"
> >       with a picture of a paperclip.
> >
> >   b) delete the parmetis file in 'conf' and call install again.
> >
> > Votes?
> >
> >    Matt
> >
> >   Barry
> >
> >
> > On Sep 22, 2010, at 2:54 PM, Verena Kuhlemann wrote:
> >
> > > Here is the configure.log that I got when
> > > --download-parmetis=/home/vkuhlem/research/ParMetis-3.1.1.tar.gz
> > > was used.
> > >
> > > On Wed, Sep 22, 2010 at 3:25 PM, Barry Smith <bsmith at mcs.anl.gov>
> wrote:
> > >
> > >>
> > >>  It would be helpful if you mailed us the configure.log file from the
> case
> > >> where you tried --download-parmetis and it failed.
> > >>
> > >> Barry
> > >>
> > >>
> > >> On Sep 22, 2010, at 2:05 PM, Verena Kuhlemann wrote:
> > >>
> > >>> Hello,
> > >>>
> > >>> I am trying to configure petsc with parmetis. I was able to configure
> it
> > >> on
> > >>> a laptop without any problems.
> > >>> Now I am trying to install it on a cluster.
> > >>>
> > >>> I tried using --download-parmetis=1 and
> > >>> --download-parmetis=whereIsavedparmetis/parmetis.tar.gz
> > >>> but both didn't work.
> > >>>
> > >>> Then I installed parmetis and tried:
> > >> --with-parmetis-dir=whereIsavedparmetis
> > >>>
> > >>> --with-parmetis-includer=whereIsavedparmetis and
> > >>> --with-parmetis-lib=whereIsavedparmetis/libparmetis.a
> > >>>
> > >>> Here I got the error message:
> > >>>
> > >>
> *******************************************************************************
> > >>>        UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> for
> > >>> details):
> > >>>
> > >>
> -------------------------------------------------------------------------------
> > >>> --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not
> work
> > >>>
> > >>
> *******************************************************************************
> > >>>
> > >>>
> > >>> From what I've read I may have compiled parmetis with a different
> > >> compiler
> > >>> than the one I use in petsc. How can I check which one
> > >>> I used in petsc?
> > >>>
> > >>> I attached configure.log and hope someone can give me any tips.
> > >>>
> > >>> Thanks,
> > >>> Verena
> > >>>
> > >>> Hello,
> > >>>
> > >>> I am trying to configure petsc with parmetis. I was able to configure
> it
> > >> on a laptop without any problems.
> > >>> Now I am trying to install it on a cluster.
> > >>>
> > >>> I tried using --download-parmetis=1 and
> > >> --download-parmetis=whereIsavedparmetis/parmetis.tar.gz
> > >>> but both didn't work.
> > >>>
> > >>> Then I installed parmetis and tried:
> > >> --with-parmetis-dir=whereIsavedparmetis
> > >>>
> > >> --with-parmetis-includer=whereIsavedparmetis and
> > >> --with-parmetis-lib=whereIsavedparmetis/libparmetis.a
> > >>>
> > >>> Here I got the error message:
> > >>>
> > >>
> *******************************************************************************
> > >>>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> for
> > >> details):
> > >>>
> > >>
> -------------------------------------------------------------------------------
> > >>> --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not
> work
> > >>>
> > >>
> *******************************************************************************
> > >>>
> > >>>
> > >>> From what I've read I may have compiled parmetis with a different
> > >> compiler than the one I use in petsc. How can I check which one
> > >>> I used in petsc?
> > >>>
> > >>> I attached configure.log and hope someone can give me any tips.
> > >>>
> > >>> Thanks,
> > >>> Verena
> > >>>
> > >>> <configure.log>
> > >>
> > >>
> > >
> > > Here is the configure.log that I got when
> --download-parmetis=/home/vkuhlem/research/ParMetis-3.1.1.tar.gz
> > > was used.
> > >
> > > On Wed, Sep 22, 2010 at 3:25 PM, Barry Smith <bsmith at mcs.anl.gov>
> wrote:
> > >
> > >   It would be helpful if you mailed us the configure.log file from the
> case where you tried --download-parmetis and it failed.
> > >
> > >  Barry
> > >
> > >
> > > On Sep 22, 2010, at 2:05 PM, Verena Kuhlemann wrote:
> > >
> > > > Hello,
> > > >
> > > > I am trying to configure petsc with parmetis. I was able to configure
> it on
> > > > a laptop without any problems.
> > > > Now I am trying to install it on a cluster.
> > > >
> > > > I tried using --download-parmetis=1 and
> > > > --download-parmetis=whereIsavedparmetis/parmetis.tar.gz
> > > > but both didn't work.
> > > >
> > > > Then I installed parmetis and tried:
> --with-parmetis-dir=whereIsavedparmetis
> > > >
> > > > --with-parmetis-includer=whereIsavedparmetis and
> > > > --with-parmetis-lib=whereIsavedparmetis/libparmetis.a
> > > >
> > > > Here I got the error message:
> > > >
> *******************************************************************************
> > > >         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> for
> > > > details):
> > > >
> -------------------------------------------------------------------------------
> > > > --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not
> work
> > > >
> *******************************************************************************
> > > >
> > > >
> > > > From what I've read I may have compiled parmetis with a different
> compiler
> > > > than the one I use in petsc. How can I check which one
> > > > I used in petsc?
> > > >
> > > > I attached configure.log and hope someone can give me any tips.
> > > >
> > > > Thanks,
> > > > Verena
> > > >
> > > > Hello,
> > > >
> > > > I am trying to configure petsc with parmetis. I was able to configure
> it on a laptop without any problems.
> > > > Now I am trying to install it on a cluster.
> > > >
> > > > I tried using --download-parmetis=1 and
> --download-parmetis=whereIsavedparmetis/parmetis.tar.gz
> > > > but both didn't work.
> > > >
> > > > Then I installed parmetis and tried:
> --with-parmetis-dir=whereIsavedparmetis
> > > >
>  --with-parmetis-includer=whereIsavedparmetis and
> --with-parmetis-lib=whereIsavedparmetis/libparmetis.a
> > > >
> > > > Here I got the error message:
> > > >
> *******************************************************************************
> > > >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
> for details):
> > > >
> -------------------------------------------------------------------------------
> > > > --with-parmetis-dir=/home/vkuhlem/research/ParMetis-3.1.1/ did not
> work
> > > >
> *******************************************************************************
> > > >
> > > >
> > > > From what I've read I may have compiled parmetis with a different
> compiler than the one I use in petsc. How can I check which one
> > > > I used in petsc?
> > > >
> > > > I attached configure.log and hope someone can give me any tips.
> > > >
> > > > Thanks,
> > > > Verena
> > > >
> > > > <configure.log>
> > >
> > >
> > > <configure.log>
> >
> >
> >
> >
> > --
> > What most experimenters take for granted before they begin their
> experiments is infinitely more interesting than any results to which their
> experiments lead.
> > -- Norbert Wiener
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20100923/c79b6847/attachment.html>


More information about the petsc-dev mailing list