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:

committed by
GitHub

parent
a2e9a1b642
commit
e321578bbe
10
var/spack/repos/builtin.mock/packages/gmt/package.py
Normal file
10
var/spack/repos/builtin.mock/packages/gmt/package.py
Normal 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')
|
10
var/spack/repos/builtin.mock/packages/mvdefaults/package.py
Normal file
10
var/spack/repos/builtin.mock/packages/mvdefaults/package.py
Normal 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='')
|
8
var/spack/repos/builtin.mock/packages/root/package.py
Normal file
8
var/spack/repos/builtin.mock/packages/root/package.py
Normal 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')
|
Reference in New Issue
Block a user