Commits

Satish Balay  committed 7c693ce

__float128: when blas/lapack is not found instruct using f2cblaslapack

  • Participants
  • Parent commits d090c6a

Comments (0)

Files changed (1)

File config/BuildSystem/config/packages/BlasLapack.py

         blib = glob.glob('/usr/lib/libblas.*')
         if blib != [] and not (os.path.isfile('/usr/lib/libblas.so') or os.path.isfile('/usr/lib/libblas.a')):
           raise RuntimeError('Incomplete BLAS install; Perhaps blas package is installed - but blas-dev/blas-devel is required?')
-        if hasattr(self.compilers, 'FC'): C = 'f'
-        else: C = 'c'
-        raise RuntimeError('Could not find a functional BLAS. Run with --with-blas-lib=<lib> to indicate the library containing BLAS.\n Or --download-'+C+'-blas-lapack=1 to have one automatically downloaded and installed\n')
+        if hasattr(self.compilers, 'FC') and (self.defaultPrecision != '__float128') : pkg = 'f-blas-lapack'
+        else: pkg = 'f2cblaslapack'
+        raise RuntimeError('Could not find a functional BLAS. Run with --with-blas-lib=<lib> to indicate the library containing BLAS.\n Or --download-'+pkg+'=1 to have one automatically downloaded and installed\n')
       if not self.foundLapack:
         # check for split blas/blas-dev packages
         import glob
         llib = glob.glob('/usr/lib/liblapack.*')
         if llib != [] and not (os.path.isfile('/usr/lib/liblapack.so') or os.path.isfile('/usr/lib/liblapack.a')):
           raise RuntimeError('Incomplete LAPACK install; Perhaps lapack package is installed - but lapack-dev/lapack-devel is required?')
-        if hasattr(self.compilers, 'FC'): C = 'f'
-        else: C = 'c'
-        raise RuntimeError('Could not find a functional LAPACK. Run with --with-lapack-lib=<lib> to indicate the library containing LAPACK.\n Or --download-'+C+'-blas-lapack=1 to have one automatically downloaded and installed\n')
+        if hasattr(self.compilers, 'FC') and (self.defaultPrecision != '__float128') : pkg = 'f-blas-lapack'
+        else: pkg = 'f2cblaslapack'
+        raise RuntimeError('Could not find a functional LAPACK. Run with --with-lapack-lib=<lib> to indicate the library containing LAPACK.\n Or --download-'+pkg+'=1 to have one automatically downloaded and installed\n')
 
     #  allow user to dictate which blas/lapack mangling to use (some blas/lapack libraries, like on Apple, provide several)
     if 'known-blaslapack-mangling' in self.argDB: