[petsc-dev] download problem p4est on Cori at NERSC
Satish Balay
balay at mcs.anl.gov
Wed Feb 15 15:59:23 CST 2017
Sorry - this won't work - as p4est appears to require git [submodules?]..
>>>>>>>>>>>> p4est.py <<<<<<<<<<<<<
def updateGitDir(self):
config.package.GNUPackage.updateGitDir(self)
Dir = self.getDir()
try:
libsc = self.libsc
except AttributeError:
try:
self.executeShellCommand([self.sourceControl.git, 'submodule', 'update', '--init'], cwd=Dir, log=self.log)
import os
if os.path.isfile(os.path.join(Dir,'sc','README')):
self.libsc = os.path.join(Dir,'sc')
else:
raise RuntimeError
except RuntimeError:
raise RuntimeError('Could not initialize sc submodule needed by p4est')
return
<<<<<<
Satish
On Wed, 15 Feb 2017, Satish Balay wrote:
> batch won't help here. its git vs tarball - and p4est curently doesn't have a taball.
>
> The following should give you a tarball - if you don't have git.
>
> diff --git a/config/BuildSystem/config/packages/p4est.py b/config/BuildSystem/config/packages/p4est.py
> index 4735ff4..1f9507c 100644
> --- a/config/BuildSystem/config/packages/p4est.py
> +++ b/config/BuildSystem/config/packages/p4est.py
> @@ -4,7 +4,7 @@ class Configure(config.package.GNUPackage):
> def __init__(self, framework):
> config.package.GNUPackage.__init__(self, framework)
> self.gitcommit = 'v2.0'
> - self.download = ['git://https://github.com/cburstedde/p4est']
> + self.download = ['git://https://github.com/cburstedde/p4est','https://github.com/cburstedde/p4est/archive/'+self.gitcommit+'.tar.gz']
> self.functions = ['p4est_init']
> self.includes = ['p4est_bits.h']
> self.liblist = [['libp4est.a', 'libsc.a']]
>
> I can push this to master.
>
> Satish
>
> On Wed, 15 Feb 2017, Mark Adams wrote:
>
> > Oh, this is because git does not work on KNL. Maybe I should do
> > with-batch=1,
> >
> >
> > On Wed, Feb 15, 2017 at 4:36 PM, Mark Adams <mfadams at lbl.gov> wrote:
> >
> > > I get this error on the KNL partition at NERSC. P4est works on the
> > > Haswell partition and other downloads seem to work on the KNL partition.
> > > Any ideas?
> > >
> >
>
>
More information about the petsc-dev
mailing list