[petsc-dev] Making a PetSc Roll and Rocks Module

Matthew Knepley knepley at gmail.com
Thu Jan 24 16:43:55 CST 2013


On Thu, Jan 24, 2013 at 3:42 PM, Blaise A Bourdin <bourdin at lsu.edu> wrote:

>  I am attaching a very basic module file for reference. One would need to
> update petsc_dir and petsc_arch upon deploying these, or perhaps configure
> can do it.
>
> I actually use this to easily switch between builds and debug / optimized
> versions
>

Pushed something that writes your simple module file to
lib/modules/PETSc.mod. It would now be good to get feedback
to make this the right thing.

   Matt


> Blaise
>
>
>  wrote:
>
>
> > On Thu, 24 Jan 2013, Matthew Knepley wrote:
> >
> >>> We do support this install with DESTDIR. It might have rough edges -
> >>> but its supporsed to work the same way any other package that supports
> >>> it.
> >>>
> >>> One difference though is - since we also suppor the alternate
> >>> orngaization [default] for inplace install with PETSC_ARCH - one has
> >>> to use this PETSC_ARCH during the prefix build process aswell.  [but
> >>> then PETSC_ARCH is nolonger used/needed after that]
> >>>
> >>> i.e
> >>> configure
> >>> --prefix=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch1
> >>> PETSC_ARCH=build1
> >>> make PETSC_ARCH=build1 all
> >>> make install PETSC_ARCH=build1 install DESTDIR=/tmp/dest1
> >>> <package up from DESTDIR, and install as root:>
> >>> Now user does:
> >>> make
> PETSC_DIR=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch1 ex1
> >>>
> >>> configure [different options]
> >>> --prefix=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch2
> >>> PETSC_ARCH=build2
> >>> make PETSC_ARCH=build2 all
> >>> make install PETSC_ARCH=build2 install DESTDIR=/tmp/dest2
> >>> <package up from DESTDIR, and install as root:>
> >>> Now user does:
> >>> make
> PETSC_DIR=/opt/petsc/compiler/mpi/interconnect/petsc-version/arch2 ex1
> >>>
> >>
> >> Satish, would you mind putting this little blurb on the installation
> page
> >> in the section about
> >> using prefix? I could not find this anywhere in our documentation.
> >
> > pushed
> https://bitbucket.org/petsc/petsc-3.3/commits/74a42cc43dcfbd1850b7689385b6f1b5
> > [and updated website with it]
> >
> > Satish
> >
>
> --
> Department of Mathematics and Center for Computation & Technology
> Louisiana State University, Baton Rouge, LA 70803, USA
> Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276
> http://www.math.lsu.edu/~bourdin
>
>
>
>
>
>
>
>


-- 
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/20130124/e368d20e/attachment.html>


More information about the petsc-dev mailing list