[petsc-users] Configuration error during OpenBLAS
Satish Balay
balay at mcs.anl.gov
Thu Jul 30 10:13:27 CDT 2020
Normally - when the name is picked up from PACKAGENAME.py - and it can be overwritten by - for ex:
diff --git a/config/BuildSystem/config/packages/openblas.py b/config/BuildSystem/config/packages/openblas.py
index 97fd5da67e..2f65b94fde 100644
--- a/config/BuildSystem/config/packages/openblas.py
+++ b/config/BuildSystem/config/packages/openblas.py
@@ -15,6 +15,7 @@ class Configure(config.package.Package):
self.gitcommit = 'e7c4d6705a41910240dd19b9e7082a422563bf15'
self.versionname = 'OPENBLAS_VERSION'
self.download = ['git://https://github.com/xianyi/OpenBLAS.git','https://github.com/xianyi/OpenBLAS/archive/'+self.gitcommit+'.tar.gz']
+ self.downloaddirnames = ['OpenBLAS','openblas']
self.optionalincludes = ['openblas_config.h']
self.functions = ['openblas_get_config']
self.liblist = [['libopenblas.a']]
And fixing this to do the check in a 'case insensitive way' should be fine.
diff --git a/config/BuildSystem/config/package.py b/config/BuildSystem/config/package.py
index 130ef1db3e..5066f53e42 100644
--- a/config/BuildSystem/config/package.py
+++ b/config/BuildSystem/config/package.py
@@ -638,7 +638,7 @@ class Package(config.base.Configure):
def matchExcludeDir(self,dir):
'''Check is the dir matches something in the excluded directory list'''
for exdir in self.excludedDirs:
- if dir.startswith(exdir):
+ if dir.lower().startswith(exdir.lower()):
return 1
return 0
@@ -718,7 +718,7 @@ If its a remote branch, use: origin/'+self.gitcommit+' for commit.')
Dir.append(hgpkg)
for d in pkgdirs:
for j in self.downloaddirnames:
- if d.startswith(j) and os.path.isdir(os.path.join(packages, d)) and not self.matchExcludeDir(d):
+ if d.lower().startswith(j.lower()) and os.path.isdir(os.path.join(packages, d)) and not self.matchExcludeDir(d):
Dir.append(d)
if len(Dir) > 1:
Ok - the MR is at https://gitlab.com/petsc/petsc/-/merge_requests/3011
Satish
On Thu, 30 Jul 2020, Matthew Knepley wrote:
> Satish,
>
> Shouldn't we be checking in a case insensitive way, or do we want case
> sensitivity here?
>
> Looking for OPENBLAS at git.openblas, hg.openblas or
> a directory starting with ['openblas']
> Could not locate an existing copy of OPENBLAS:
> ['Chaco-2.2-p2', 'slepc-v3.13.2',
> 'petsc-pkg-metis-ca7a59e6283f',
> 'OpenBLAS-e7c4d6705a41910240dd19b9e7082a422563bf15',
> 'petsc-pkg-parmetis-475d8facbb32', 'mpich-3.3.2']
>
> Thanks,
>
> Matt
>
> On Thu, Jul 30, 2020 at 5:07 AM Eda Oktay <eda.oktay at metu.edu.tr> wrote:
>
> > Hi all,
> >
> > I am trying to configure petsc-3.13.2 to ubuntu with the following line:
> >
> > ./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran
> > --download-mpich --download-openblas --download-metis
> > --download-parmetis --download-chaco
> > --download-slepc=/home/eda/slepc-v3.13.2.tar.gz --with-X=1
> >
> > However, I am getting the following error message:
> >
> >
> >
> > *******************************************************************************
> > UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log
> > for details):
> >
> > -------------------------------------------------------------------------------
> > Error during download/extract/detection of OPENBLAS:
> > Could not locate downloaded package OPENBLAS in
> > /home/eda/petsc-3.13.2/arch-linux-c-debug/externalpackages
> >
> > ******************************************************************************
> >
> > I attached the configure.log, too.
> >
> > Should I download OpenBLAS separately and then use
> > --download-opeblas=/home/.....?
> >
> > If so, which version should I use for petsc-3.13.2?
> >
> > Thanks!
> >
> > Eda
> >
>
>
>
More information about the petsc-users
mailing list