diff options
author | Greg Becker <becker33@llnl.gov> | 2022-05-27 22:49:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 22:49:41 -0700 |
commit | 19087c9d35abd849975a8a5c0451ed47e958c23d (patch) | |
tree | d560492315d9e07bf3e3db6d9bea0267514b6e49 /.github/workflows/macos_python.yml | |
parent | 4116b043688bc20a54926ad346bc8843372771c2 (diff) | |
download | spack-19087c9d35abd849975a8a5c0451ed47e958c23d.tar.gz spack-19087c9d35abd849975a8a5c0451ed47e958c23d.tar.bz2 spack-19087c9d35abd849975a8a5c0451ed47e958c23d.tar.xz spack-19087c9d35abd849975a8a5c0451ed47e958c23d.zip |
target optimization: re-norm optimization scale so that 0 is best. (#29926)
referred targets are currently the only minimization criteria for Spack for which we allow
negative values. That means Spack may be incentivized to add nodes to the DAG if they
match the preferred target.
This PR re-norms the minimization criteria so that preferred targets are weighted from 0,
and default target weights are offset by the number of preferred targets per-package to
calculate node_target_weight.
Also fixes a bug in the test for preferred targets that was making the test easier to pass
than it should be.
Diffstat (limited to '.github/workflows/macos_python.yml')
0 files changed, 0 insertions, 0 deletions