From 01a9a048ad2c03fe61d5684f6e8618bdf681aa61 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Wed, 6 Sep 2017 12:04:32 +0200 Subject: elemental: fix hardcode libgfortran, use develop and explicitly specify MPI compilers (#5263) --- var/spack/repos/builtin/packages/elemental/package.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/elemental/package.py b/var/spack/repos/builtin/packages/elemental/package.py index 87317bd909..657f185c7f 100644 --- a/var/spack/repos/builtin/packages/elemental/package.py +++ b/var/spack/repos/builtin/packages/elemental/package.py @@ -33,7 +33,7 @@ class Elemental(CMakePackage): homepage = "http://libelemental.org" url = "https://github.com/elemental/Elemental/archive/v0.87.6.tar.gz" - version('master', git='https://github.com/elemental/Elemental.git', branch='master') + version('develop', git='https://github.com/elemental/Elemental.git', branch='master') version('0.87.7', '6c1e7442021c59a36049e37ea69b8075') version('0.87.6', '9fd29783d45b0a0e27c0df85f548abe9') @@ -110,9 +110,11 @@ class Elemental(CMakePackage): args = [ '-DCMAKE_INSTALL_MESSAGE:STRING=LAZY', + '-DCMAKE_C_COMPILER=%s' % spec['mpi'].mpicc, + '-DCMAKE_CXX_COMPILER=%s' % spec['mpi'].mpicxx, + '-DCMAKE_Fortran_COMPILER=%s' % spec['mpi'].mpifc, '-DEL_PREFER_OPENBLAS:BOOL=TRUE', '-DEL_DISABLE_SCALAPACK:BOOL=%s' % ('~scalapack' in spec), - '-DGFORTRAN_LIB=libgfortran.so', '-DBUILD_SHARED_LIBS:BOOL=%s' % ('+shared' in spec), '-DEL_HYBRID:BOOL=%s' % ('+hybrid' in spec), '-DEL_C_INTERFACE:BOOL=%s' % ('+c' in spec), @@ -122,6 +124,13 @@ class Elemental(CMakePackage): '-DEL_USE_64BIT_INTS:BOOL=%s' % ('+int64' in spec), '-DEL_USE_64BIT_BLAS_INTS:BOOL=%s' % ('+int64_blas' in spec)] + # see /debian/rules as an example: + mpif77 = Executable(spec['mpi'].mpif77) + libgfortran = LibraryList(mpif77('--print-file-name', + 'libgfortran.%s' % dso_suffix, + output=str)) + args.append('-DGFORTRAN_LIB=%s' % libgfortran.libraries[0]) + # If using 64bit int BLAS libraries, elemental has to build # them internally if '+int64_blas' in spec: -- cgit v1.2.3-70-g09d2