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.
This commit is contained in:
Massimiliano Culpo
2021-06-08 16:10:49 +02:00
committed by GitHub
parent a2e9a1b642
commit e321578bbe
5 changed files with 53 additions and 16 deletions

View File

@@ -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')

View File

@@ -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='')

View File

@@ -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')