summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-11-26 13:10:48 +0100
committerTamara Dahlgren <dahlgren1@llnl.gov>2021-02-17 17:07:16 -0800
commitb326d59e10046f75b65c8fcbeb691faa5ea7a71a (patch)
treec1b1bf5717653b519f70148c3268fe9eca3b40c7 /var
parent0ae49821e2e1ccb6fd179b1b020e263c1d9db8f2 (diff)
downloadspack-b326d59e10046f75b65c8fcbeb691faa5ea7a71a.tar.gz
spack-b326d59e10046f75b65c8fcbeb691faa5ea7a71a.tar.bz2
spack-b326d59e10046f75b65c8fcbeb691faa5ea7a71a.tar.xz
spack-b326d59e10046f75b65c8fcbeb691faa5ea7a71a.zip
concretizer: prioritize matching compilers over newer versions (#20020)
fixes #20019 Before this modification having a newer version of a node came at higher priority in the optimization than having matching compilers. This could result in unexpected configurations for packages with conflict directives on compilers of the type: conflicts('%gcc@X.Y:', when='@:A.B') where changing the compiler for just that node is preferred to lower the node version to less than 'A.B'. Now the priority has been switched so the solver will try to lower the version of the nodes in question before changing their compiler.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin.mock/packages/openblas/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/openblas/package.py b/var/spack/repos/builtin.mock/packages/openblas/package.py
index ff4bda9a27..d97e4091a2 100644
--- a/var/spack/repos/builtin.mock/packages/openblas/package.py
+++ b/var/spack/repos/builtin.mock/packages/openblas/package.py
@@ -12,5 +12,10 @@ class Openblas(Package):
url = "http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz"
version('0.2.15', 'b1190f3d3471685f17cfd1ec1d252ac9')
+ version('0.2.14', 'b1190f3d3471685f17cfd1ec1d252ac9')
+ version('0.2.13', 'b1190f3d3471685f17cfd1ec1d252ac9')
+
+ # See #20019 for this conflict
+ conflicts('%gcc@:4.4.99', when='@0.2.14:')
provides('blas')