diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-11-03 12:56:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 12:56:37 +0100 |
commit | db16335aec9add0ce838f9fcd4eb426352e35b07 (patch) | |
tree | 3ebb714fcb129f89757440b49e1cc01d9ffb6045 /var | |
parent | 3082ce6a22b1c1356da533a26225150298264a4b (diff) | |
download | spack-db16335aec9add0ce838f9fcd4eb426352e35b07.tar.gz spack-db16335aec9add0ce838f9fcd4eb426352e35b07.tar.bz2 spack-db16335aec9add0ce838f9fcd4eb426352e35b07.tar.xz spack-db16335aec9add0ce838f9fcd4eb426352e35b07.zip |
ASP-based solver: fix for unsplittable providers (#40859)
Some providers must provide virtuals "together", i.e.
if they provide one virtual of a set, they must be the
providers also of the others.
There was a bug though, where we were not checking if
the other virtuals in the set were needed at all in
the DAG.
This commit fixes the bug.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/edges.test/packages/blas-only-client/package.py | 19 | ||||
-rw-r--r-- | var/spack/repos/edges.test/packages/openblas/package.py | 22 |
2 files changed, 41 insertions, 0 deletions
diff --git a/var/spack/repos/edges.test/packages/blas-only-client/package.py b/var/spack/repos/edges.test/packages/blas-only-client/package.py new file mode 100644 index 0000000000..9e9652a752 --- /dev/null +++ b/var/spack/repos/edges.test/packages/blas-only-client/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class BlasOnlyClient(Package): + """This package depends on the 'blas' virtual only, but should be able to use also provider + that provide e.g. 'blas' together with 'lapack'. + """ + + homepage = "http://www.openblas.net" + url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz" + + version("0.2.16", md5="b1190f3d3471685f17cfd1ec1d252ac9") + + depends_on("blas") diff --git a/var/spack/repos/edges.test/packages/openblas/package.py b/var/spack/repos/edges.test/packages/openblas/package.py new file mode 100644 index 0000000000..d162e069b0 --- /dev/null +++ b/var/spack/repos/edges.test/packages/openblas/package.py @@ -0,0 +1,22 @@ +# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack.package import * + + +class Openblas(Package): + """This package provides two virtuals together, so if one is chosen the other + must be used too if needed. + """ + + homepage = "http://www.openblas.net" + url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz" + + version("0.2.16", md5="b1190f3d3471685f17cfd1ec1d252ac9") + version("0.2.15", md5="b1190f3d3471685f17cfd1ec1d252ac9") + version("0.2.14", md5="b1190f3d3471685f17cfd1ec1d252ac9") + version("0.2.13", md5="b1190f3d3471685f17cfd1ec1d252ac9") + + provides("blas", "lapack") |