[petsc-users] configure PETSc on Cray
Sharp Stone
thronesf at gmail.com
Fri Feb 10 12:20:03 CST 2017
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.
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
*******************************************************************************
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170210/6755562a/attachment.html>
More information about the petsc-users
mailing list