diff options
author | Greg Becker <becker33@llnl.gov> | 2022-05-27 22:49:41 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2022-05-27 22:51:03 -0700 |
commit | 844c7992993ef62b34b751e423d60c70dd4dbe81 (patch) | |
tree | 6a9405dded8c0f68226635ac12689059e9d483b2 /.flake8 | |
parent | 9198ab63aede470564572d2af75a0f659518c4c7 (diff) | |
download | spack-844c7992993ef62b34b751e423d60c70dd4dbe81.tar.gz spack-844c7992993ef62b34b751e423d60c70dd4dbe81.tar.bz2 spack-844c7992993ef62b34b751e423d60c70dd4dbe81.tar.xz spack-844c7992993ef62b34b751e423d60c70dd4dbe81.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 '.flake8')
0 files changed, 0 insertions, 0 deletions