[petsc-dev] patch for batched config

Satish Balay balay at mcs.anl.gov
Tue Oct 10 08:48:48 CDT 2017


I never understood --host option of autoconf - and it would rarely
work for me.

For packages where '--with-batch --download-package' did not work -
our suggstion so far was to install them manually.

I'm hesitant to add this patch [it might work on one setup - but not
the other?] - but Matt/Jed might have better suggestions.

cc:ing petsc-dev

Satish

On Tue, 10 Oct 2017, Stefano Zampini wrote:

> Satish,
> 
> today I had some problems installing PETSc with --download-hypre in batched
> mode. Here is my fix
> 
> diff --git a/config/BuildSystem/config/packages/hypre.py
> b/config/BuildSystem/config/packages/hypre.py
> index e374532..3c607c9 100644
> --- a/config/BuildSystem/config/packages/hypre.py
> +++ b/config/BuildSystem/config/packages/hypre.py
> @@ -49,6 +49,9 @@ class Configure(config.package.GNUPackage):
>      libs = ' '.join(libs)
>      args.append('--with-MPI-libs="'+libs+'"')
> 
> +    if self.argDB['with-batch']:
> +      args.append('--host')
> +
>      # tell hypre configure not to look for blas/lapack [and not use
> hypre-internal blas]
> 
>  args.append('--with-blas-lib="'+self.libraries.toString(self.blasLapack.dlib)+'"')
>      args.append('--with-lapack-lib=" "')
> 
> 
> 



More information about the petsc-dev mailing list