[petsc-users] configure PETSc on Cray

Satish Balay balay at mcs.anl.gov
Fri Feb 10 13:01:54 CST 2017


On Fri, 10 Feb 2017, Patrick Sanan wrote:

> On Fri, Feb 10, 2017 at 7:20 PM, Sharp Stone <thronesf at gmail.com> wrote:
> > Thanks for the replies.
> >
> > The PETSc is installed on the Cray I'm using, but the version is too old
> > cray-petsc/3.3.04.
> > I've still got two questions:
> >
> > 1. how can I use the installed cray-petsc? I've used module load cray-petsc,
> > but I can't find the path of petsc, which is required in the makefile.
> You can use
> 
>    module show cray-petsc
> 
> to at least get some more hints as to what cray did, PETSc-wise.

Ok this is old version - and you might want to avoid it. The way to
use it would be - without petsc makefiles.  i.e you would compile with:

cc code.c


> >
> > 2. Therefore, I decided to configure the latest version of Petsc. When i use
> > ./config/configure.py --with-cc=cc --with-cxx=CC --with-fc=ftn, it give me
> > the errors

send configure.log

What type of cray machine is this? Also what compilers are you using? send
module list

Satish


> > *******************************************************************************
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> > details):
> > -------------------------------------------------------------------------------
> > C libraries cannot directly be used from Fortran
> >
> > In the log file, I found these:
> > *******************************************************************************
> >          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> > details):
> > -------------------------------------------------------------------------------
> > C libraries cannot directly be used from Fortran
> > *******************************************************************************
> >   File "./config/configure.py", line 405, in petsc_configure
> >     framework.configure(out = sys.stdout)
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/framework.py",
> > line 1090, in configure
> >     self.processChildren()
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/framework.py",
> > line 1079, in processChildren
> >     self.serialEvaluation(self.childGraph)
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/framework.py",
> > line 1060, in serialEvaluation
> >     child.configure()
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/compilers.py",
> > line 1438, in configure
> >     self.executeTest(self.checkCLibraries)
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/base.py",
> > line 126, in executeTest
> >     ret = test(*args,**kargs)
> >   File
> > "/mnt/lustre/lus0/space/fs1036/local/PETSc/petsc-3.7.4/config/BuildSystem/config/compilers.py",
> > line 313, in checkCLibraries
> >     raise RuntimeError('C libraries cannot directly be used from Fortran')
> > ================================================================================
> > Finishing Configure Run at Fri Feb 10 13:07:10 2017
> > ================================================================================
> >
> >
> > Thank you again for your help!
> >
> > On Fri, Feb 10, 2017 at 1:01 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> >>
> >> check config/examples/arch-cray-xt6-pkgs-opt.py
> >>
> >> Also check if your machine already has petsc [from cray] installed
> >>
> >> module avail petsc
> >>
> >> Satish
> >>
> >> On Fri, 10 Feb 2017, Patrick Sanan wrote:
> >>
> >> > You're missing the 'g' in 'configure.py'.
> >> >
> >> > On Fri, Feb 10, 2017 at 6:51 PM, Sharp Stone <thronesf at gmail.com> wrote:
> >> > > Hi all,
> >> > >
> >> > > I noticed the instructions of Petsc with MPI. Now I'm using Cray. So
> >> > > the
> >> > > instruction:
> >> > >
> >> > > Vendor provided MPI might already be installed. IBM, SGI, Cray etc
> >> > > provide
> >> > > their own:
> >> > > ./config/confiure.py --with-cc=mpcc --with-fc=mpf77
> >> > >
> >> > > When I use the command "./config/confiure.py --with-cc=mpcc
> >> > > --with-fc=mpf77", it gives me the error "-bash: ./config/confiure.py:
> >> > > No
> >> > > such file or directory". But the file "confiure.py" is there in the
> >> > > "config"
> >> > > folder.
> >> > >
> >> > > What should I do?
> >> > >
> >> > > Thanks very much!
> >> > >
> >> > > --
> >> > > Best regards,
> >> > >
> >> > > Feng
> >> >
> >>
> >
> >
> >
> > --
> > Best regards,
> >
> > Feng
> 



More information about the petsc-users mailing list