Set default providers for all virtual dependencies (#3634)

* Set default providers for everything

* Add default OpenFOAM provider
This commit is contained in:
Adam J. Stewart 2017-04-02 14:48:27 -05:00 committed by GitHub
parent ffef681377
commit c0cfaacbc8
4 changed files with 20 additions and 7 deletions

View file

@ -17,8 +17,17 @@ packages:
all:
compiler: [gcc, intel, pgi, clang, xl, nag]
providers:
mpi: [openmpi, mpich]
blas: [openblas]
lapack: [openblas]
awk: [gawk]
blas: [openblas]
daal: [intel-parallel-studio+daal]
elf: [elfutils]
golang: [gcc]
ipp: [intel-parallel-studio+ipp]
lapack: [openblas]
mkl: [intel-parallel-studio+mkl]
mpe: [mpe2]
mpi: [openmpi, mpich]
opencl: [pocl]
openfoam: [foam-extend]
pil: [py-pillow]
scalapack: [netlib-scalapack]

View file

@ -589,8 +589,8 @@ function _spack_providers {
then
compgen -W "-h --help" -- "$cur"
else
compgen -W "blas daal elf golang ipp lapack mkl
mpe mpi openfoam pil scalapack" -- "$cur"
compgen -W "awk blas daal elf golang ipp lapack mkl
mpe mpi opencl openfoam pil scalapack" -- "$cur"
fi
}

View file

@ -28,7 +28,7 @@
from spack.pkg.builtin.intel import IntelInstaller
class Daal(IntelInstaller):
class IntelDaal(IntelInstaller):
"""Intel Data Analytics Acceleration Library.
Note: You will have to add the download file to a
@ -44,6 +44,8 @@ class Daal(IntelInstaller):
version('2016.3.210', 'ad747c0dd97dace4cad03cf2266cad28',
url="file://%s/l_daal_2016.3.210.tgz" % os.getcwd())
provides('daal')
def install(self, spec, prefix):
self.intel_prefix = os.path.join(prefix, "pkg")

View file

@ -28,7 +28,7 @@
from spack.pkg.builtin.intel import IntelInstaller
class Ipp(IntelInstaller):
class IntelIpp(IntelInstaller):
"""Intel Integrated Performance Primitives.
Note: You will have to add the download file to a
@ -42,6 +42,8 @@ class Ipp(IntelInstaller):
version('9.0.3.210', '0e1520dd3de7f811a6ef6ebc7aa429a3',
url="file://%s/l_ipp_9.0.3.210.tgz" % os.getcwd())
provides('ipp')
def install(self, spec, prefix):
self.intel_prefix = os.path.join(prefix, "pkg")