new package: essl (#6335)
Added support for the IBM ESSL math library.Updated Elemental to be able to build with ESSL.
This commit is contained in:

committed by
scheibelp

parent
7cb43e3d05
commit
1cd03e0f36
@@ -68,8 +68,8 @@ class Elemental(CMakePackage):
|
||||
variant('build_type', default='Release',
|
||||
description='The build type to build',
|
||||
values=('Debug', 'Release'))
|
||||
variant('blas', default='openblas', values=('openblas', 'mkl'),
|
||||
description='Enable the use of OpenBlas/MKL')
|
||||
variant('blas', default='openblas', values=('openblas', 'mkl', 'essl'),
|
||||
description='Enable the use of OpenBlas/MKL/ESSL')
|
||||
variant('mpfr', default=False,
|
||||
description='Support GNU MPFR\'s'
|
||||
'arbitrary-precision floating-point arithmetic')
|
||||
@@ -84,8 +84,13 @@ class Elemental(CMakePackage):
|
||||
depends_on('intel-mkl threads=openmp', when='blas=mkl +openmp_blas ~int64_blas')
|
||||
depends_on('intel-mkl@2017.1 +openmp +ilp64', when='blas=mkl +openmp_blas +int64_blas')
|
||||
|
||||
depends_on('essl -cuda', when='blas=essl -openmp_blas ~int64_blas')
|
||||
depends_on('essl threads=openmp', when='blas=essl +openmp_blas ~int64_blas')
|
||||
|
||||
# Note that this forces us to use OpenBLAS until #1712 is fixed
|
||||
depends_on('lapack', when='blas=openblas ~openmp_blas')
|
||||
depends_on('netlib-lapack +external-blas', when='blas=essl')
|
||||
|
||||
depends_on('metis')
|
||||
depends_on('metis +int64', when='+int64')
|
||||
depends_on('mpi')
|
||||
@@ -145,6 +150,15 @@ def cmake_args(self):
|
||||
libfortran = LibraryList(mpif77('--print-file-name',
|
||||
'libgfortran.%s' % dso_suffix,
|
||||
output=str))
|
||||
elif self.spec.satisfies('%xl') or self.spec.satisfies('%xl_r'):
|
||||
xl_fort = env['SPACK_F77']
|
||||
xl_bin = os.path.dirname(xl_fort)
|
||||
xl_root = os.path.dirname(xl_bin)
|
||||
libfortran = LibraryList('{0}/lib/libxlf90_r.{1}.1'
|
||||
.format(xl_root, dso_suffix))
|
||||
else:
|
||||
libfortran = None
|
||||
|
||||
if libfortran:
|
||||
args.append('-DGFORTRAN_LIB=%s' % libfortran.libraries[0])
|
||||
|
||||
@@ -205,5 +219,8 @@ def cmake_args(self):
|
||||
elif 'blas=mkl' in spec:
|
||||
args.extend([
|
||||
'-DHydrogen_USE_MKL:BOOL=%s' % ('blas=mkl' in spec)])
|
||||
elif 'blas=essl' in spec:
|
||||
args.extend([
|
||||
'-DHydrogen_USE_ESSL:BOOL=%s' % ('blas=essl' in spec)])
|
||||
|
||||
return args
|
||||
|
Reference in New Issue
Block a user