diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2021-06-08 16:10:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 16:10:49 +0200 |
commit | e321578bbe7489301620fded21770dd66eed6ad0 (patch) | |
tree | 0784560887784ea809056199f472f015f7894b80 /var | |
parent | a2e9a1b642a95e2cf215c8c32ddcdf0dd6c9b4e0 (diff) | |
download | spack-e321578bbe7489301620fded21770dd66eed6ad0.tar.gz spack-e321578bbe7489301620fded21770dd66eed6ad0.tar.bz2 spack-e321578bbe7489301620fded21770dd66eed6ad0.tar.xz spack-e321578bbe7489301620fded21770dd66eed6ad0.zip |
ASP-based solver: reordered low priority optimization criteria (#24184)
Minimizing compiler mismatches in the DAG and preferring newer
versions of packages are now higher priority than trying to use as
many default values as possible in multi-valued variants.
Diffstat (limited to 'var')
3 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/gmt/package.py b/var/spack/repos/builtin.mock/packages/gmt/package.py new file mode 100644 index 0000000000..444c3d3d95 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/gmt/package.py @@ -0,0 +1,10 @@ +# Copyright 2013-2021 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) +class Gmt(Package): + + version('2.0', 'abcdef') + version('1.0', 'abcdef') + + depends_on('mvdefaults', when='@1.0') diff --git a/var/spack/repos/builtin.mock/packages/mvdefaults/package.py b/var/spack/repos/builtin.mock/packages/mvdefaults/package.py new file mode 100644 index 0000000000..d6f7e7e0db --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/mvdefaults/package.py @@ -0,0 +1,10 @@ +# Copyright 2013-2021 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) +class Mvdefaults(Package): + + version('1.0', 'abcdef') + + variant('foo', values=('a', 'b', 'c'), default=('a', 'b', 'c'), + multi=True, description='') diff --git a/var/spack/repos/builtin.mock/packages/root/package.py b/var/spack/repos/builtin.mock/packages/root/package.py new file mode 100644 index 0000000000..b0de915b29 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/root/package.py @@ -0,0 +1,8 @@ +# Copyright 2013-2021 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) +class Root(Package): + version('1.0', 'abcdef') + + depends_on('gmt') |