[petsc-dev] p4est w/o MPI

Satish Balay balay at mcs.anl.gov
Fri Apr 16 10:47:27 CDT 2021


BTW: Is there no --disable-mpi option?

Satish

On Fri, 16 Apr 2021, Satish Balay via petsc-dev wrote:

> MPI pacakge is a bit weird compared to others [as it does this funny thing with MPIUNI].
> 
> For regular packages - I guess I would use 'if package.found'
> 
> I guess I should create an MR with this diff.
> 
> Satish
> 
> ----
> 
> diff --git a/config/BuildSystem/config/packages/p4est.py b/config/BuildSystem/config/packages/p4est.py
> index e7108b0ab8..40d6797f02 100644
> --- a/config/BuildSystem/config/packages/p4est.py
> +++ b/config/BuildSystem/config/packages/p4est.py
> @@ -24,14 +24,16 @@ class Configure(config.package.GNUPackage):
>      self.blasLapack = framework.require('config.packages.BlasLapack',self)
>      self.zlib       = framework.require('config.packages.zlib',self)
>      self.memalign   = framework.argDB['with-memalign']
> -    self.deps       = [self.mpi,self.blasLapack,self.zlib]
> +    self.deps       = [self.blasLapack,self.zlib]
> +    self.odeps      = [self.mpi]
>      return
>  
>    def formGNUConfigureArgs(self):
>      args = config.package.GNUPackage.formGNUConfigureArgs(self)
>      if self.argDB['with-p4est-debugging']:
>        args.append('--enable-debug')
> -    args.append('--enable-mpi')
> +    if not self.mpi.usingMPIUni:
> +      args.append('--enable-mpi')
>      args.append('CPPFLAGS="'+self.headers.toStringNoDupes(self.dinclude)+'"')
>      args.append('LIBS="'+self.libraries.toString(self.dlib)+'"')
>      args.append('--enable-memalign='+self.memalign)
> 
> On Fri, 16 Apr 2021, Isaac, Tobin G wrote:
> 
> > Matt, this is the configure logic I would like, but I don't know how to do it:
> > - configure p4est after MPI, but do not require MPI
> > - if MPI is present, add the '--enable-mpi' flack in formGNUConfigureArgs(), otherwise omit it.
> > 
> > ________________________________________
> > From: Isaac, Tobin G <tisaac at cc.gatech.edu>
> > Sent: Friday, April 16, 2021 11:03
> > To: Mark Adams; For users of the development version of PETSc
> > Subject: Re: [petsc-dev] p4est w/o MPI
> > 
> > p4est has a mode where it can compile without MPI, I don't know if PETSc is using it, will check.
> > 
> > ________________________________________
> > From: petsc-dev <petsc-dev-bounces at mcs.anl.gov> on behalf of Mark Adams <mfadams at lbl.gov>
> > Sent: Friday, April 16, 2021 10:23
> > To: For users of the development version of PETSc
> > Subject: [petsc-dev] p4est w/o MPI
> > 
> > I don't have MPI (Fugaku w/ gcc) and p4est seems to need it. Is there a work around?
> > Thanks,
> > Mark
> > 
> 



More information about the petsc-dev mailing list