[petsc-users] configure PETSc on Cray
Satish Balay
balay at mcs.anl.gov
Fri Feb 10 13:39:06 CST 2017
Try:
./configure --with-cc=cc --with-cxx=CC --with-fc=ftn --with-debugging=0 --with-clib-autodetect=0 --with-cxxlib-autodetect=0 --with-fortranlib-autodetect=0
Check config/examples/arch-cray-xt6-pkgs-opt.py
Satish
On Fri, 10 Feb 2017, Sharp Stone wrote:
> Thank you all for the replies.
> I'm using Cray XE6M-200, and compilers of gcc/g++/gfortran (by default).
> The module list is:
> Currently Loaded Modulefiles:
> 1) modules/3.2.6.7
> 2) nodestat/2.2-1.0402.39779.3.4.gem
> 3) sdb/1.0-1.0402.41597.10.13.gem
> 4) MySQL/5.0.64-1.0000.5053.22.1
> 5)
> lustre-cray_gem_s/1.8.6_2.6.32.59_0.7.1_1.0402.6998.7.1-1.0402.41312.15.19
> 6) udreg/2.3.2-1.0402.6376.3.1.gem
> 7) ugni/5.0-1.0402.6488.5.7.gem
> 8) gni-headers/2.1-1.0402.6487.6.4.gem
> 9) dmapp/4.0.1-1.0402.6266.5.11.gem
> 10) xpmem/0.1-2.0402.39965.2.5.gem
> 11) hss-llm/7.0.0
> 12) Base-opts/1.0.2-1.0402.38884.1.2.gem
> 13) craype-network-gemini
> 14) xt-asyncpe/5.19
> 15) cce/8.1.7
> 16) cray-libsci/12.0.01
> 17) pmi/4.0.1-1.0000.9421.73.3.gem
> 18) rca/1.0.0-2.0402.39780.3.94.gem
> 19) atp/1.6.2
> 20) PrgEnv-cray/4.2.15
> 21) pbs/11.3.1.122650
> 22) cray-mpich2/5.6.4
> 23) cray-hdf5-parallel/1.8.9
>
> Thanks in advance!
>
> On Fri, Feb 10, 2017 at 2:01 PM, Satish Balay <balay at mcs.anl.gov> wrote:
>
> > 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