summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-02-12 12:08:31 +0100
committerMassimiliano Culpo <massimiliano.culpo@googlemail.com>2016-02-12 12:08:31 +0100
commit70985170e5f248d0d6a1b6245bd5581185ecaa64 (patch)
tree546f59cb7fc17a18078e252dcbef90fb979263b3 /var
parente8704433debe35d7893c0c20672d06973226c4e8 (diff)
downloadspack-70985170e5f248d0d6a1b6245bd5581185ecaa64.tar.gz
spack-70985170e5f248d0d6a1b6245bd5581185ecaa64.tar.bz2
spack-70985170e5f248d0d6a1b6245bd5581185ecaa64.tar.xz
spack-70985170e5f248d0d6a1b6245bd5581185ecaa64.zip
qe : compiled on rhle6
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/espresso/package.py15
-rw-r--r--var/spack/repos/builtin/packages/mpich/package.py8
-rw-r--r--var/spack/repos/builtin/packages/openblas/package.py2
3 files changed, 16 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/espresso/package.py b/var/spack/repos/builtin/packages/espresso/package.py
index f85257b3cc..a2bf58f585 100644
--- a/var/spack/repos/builtin/packages/espresso/package.py
+++ b/var/spack/repos/builtin/packages/espresso/package.py
@@ -1,5 +1,6 @@
from spack import *
+import os
class Espresso(Package):
"""
@@ -20,9 +21,10 @@ class Espresso(Package):
depends_on('lapack')
depends_on('mpi', when='+mpi')
- depends_on('elpa', when='+elpa+scalapack+mpi') # TODO : + mpi needed to avoid false dependencies installation
+ depends_on('fftw~mpi', when='~mpi')
+ depends_on('fftw+mpi', when='+mpi')
depends_on('scalapack', when='+scalapack+mpi') # TODO : + mpi needed to avoid false dependencies installation
-
+
def check_variants(self, spec):
error = 'you cannot ask for \'+{variant}\' when \'+mpi\' is not active'
if '+scalapack' in spec and '~mpi' in spec:
@@ -45,16 +47,19 @@ class Espresso(Package):
options.append('--with-scalapack=yes')
if '+elpa' in spec:
- options.append('--with-elpa=%s' % spec['elpa'].prefix)
+ options.append('--with-elpa=yes')
# Add a list of directories to search
search_list = []
for name, dependency_spec in spec.dependencies.iteritems():
- print name
search_list.extend([dependency_spec.prefix.lib,
dependency_spec.prefix.lib64])
+
search_list = " ".join(search_list)
options.append('LIBDIRS=%s' % search_list)
+ options.append('F90=%s' % os.environ['FC'])
+
configure(*options)
make('all')
- make('install')
+ make('install')
+
diff --git a/var/spack/repos/builtin/packages/mpich/package.py b/var/spack/repos/builtin/packages/mpich/package.py
index c856cfe277..26d3bc0c94 100644
--- a/var/spack/repos/builtin/packages/mpich/package.py
+++ b/var/spack/repos/builtin/packages/mpich/package.py
@@ -48,10 +48,10 @@ class Mpich(Package):
def setup_dependent_environment(self, module, spec, dep_spec):
"""For dependencies, make mpicc's use spack wrapper."""
- os.environ['MPICH_CC'] = 'cc'
- os.environ['MPICH_CXX'] = 'c++'
- os.environ['MPICH_F77'] = 'f77'
- os.environ['MPICH_F90'] = 'f90'
+ os.environ['MPICH_CC'] = os.environ['CC']
+ os.environ['MPICH_CXX'] = os.environ['CXX']
+ os.environ['MPICH_F77'] = os.environ['F77']
+ os.environ['MPICH_FC'] = os.environ['FC']
def install(self, spec, prefix):
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py
index 9c8fa1c694..3c909360a4 100644
--- a/var/spack/repos/builtin/packages/openblas/package.py
+++ b/var/spack/repos/builtin/packages/openblas/package.py
@@ -19,7 +19,9 @@ class Openblas(Package):
with working_dir(prefix.lib):
symlink('libopenblas.a', 'blas.a')
symlink('libopenblas.a', 'libblas.a')
+ symlink('libopenblas.so', 'libblas.so')
# Lapack virtual package should provide liblapack.a
with working_dir(prefix.lib):
symlink('libopenblas.a', 'liblapack.a')
+ symlink('libopenblas.so', 'liblapack.so')