Merge pull request #1079 from davydden/pkg/blas_mpi_fortran
require fortran compilers for Openblas and Openmpi
This commit is contained in:
commit
8bdb6695c7
@ -48,6 +48,13 @@ class Openblas(Package):
|
||||
patch('make.patch')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# As of 06/2016 there is no mechanism to specify that packages which
|
||||
# depends on Blas/Lapack need C or/and Fortran symbols. For now
|
||||
# require both.
|
||||
if self.compiler.f77 is None:
|
||||
raise InstallError('OpenBLAS requires both C and Fortran ',
|
||||
'compilers!')
|
||||
|
||||
# Configure fails to pick up fortran from FC=/abs/path/to/f77, but
|
||||
# works fine with FC=/abs/path/to/gfortran.
|
||||
# When mixing compilers make sure that
|
||||
|
@ -121,6 +121,13 @@ def verbs(self):
|
||||
return 'verbs'
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# As of 06/2016 there is no mechanism to specify that packages which
|
||||
# depends on MPI need C or/and Fortran implementation. For now
|
||||
# require both.
|
||||
if (self.compiler.f77 is None) or (self.compiler.fc is None):
|
||||
raise InstallError('OpenMPI requires both C and Fortran ',
|
||||
'compilers!')
|
||||
|
||||
config_args = ["--prefix=%s" % prefix,
|
||||
"--with-hwloc=%s" % spec['hwloc'].prefix,
|
||||
"--enable-shared",
|
||||
|
Loading…
Reference in New Issue
Block a user