Repository navigation
Remove compatible variant enumeration, add decision trace - #561
Conversation
We added support for enumerating variants that are compatible with the system. However, this has the issue that it is nearly impossible to make the enumeration exhaustive (e.g. because we have fallback from backend versions) and it is easy to miss variants. As discussed on Slack, it would be better to instead have an explanation/decision trace on why the available variants were rejected. This PR add such traces and hooks them up in `kernels versions` and some error messages. Fixes #436.
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
API changes are expected (so the CI fails for that reason), they are not public symbols anyway. |
| def test_resolve_cuda_no_different_major_no_noarch(): | ||
| # 11.8 has a different major, so there is no compatible fallback. | ||
| result = _resolve_variant_for_system( | ||
| result, trace = _resolve_variant_for_system( |
There was a problem hiding this comment.
I think the tests should also assert again trace so that we know they emit what's expected.
There was a problem hiding this comment.
But how do we know what is expected? It depends on what system the tests are run on. I think the most we can do is that result is the same set as accepted inside the trace. I'll add that.
There was a problem hiding this comment.
Added the following: the accepted variants in the trace must be equal to the returned variants. The variants in the trace (accepted and rejected) must be the same set as the input.
sayakpaul
left a comment
There was a problem hiding this comment.
Thanks for this massive user improvement!
* Remove compatible variant enumeration, add decision trace We added support for enumerating variants that are compatible with the system. However, this has the issue that it is nearly impossible to make the enumeration exhaustive (e.g. because we have fallback from backend versions) and it is easy to miss variants. As discussed on Slack, it would be better to instead have an explanation/decision trace on why the available variants were rejected. This PR add such traces and hooks them up in `kernels versions` and some error messages. Fixes #436. * Fix overeager sed * Additional trace assertions
We added support for enumerating variants that are compatible with the system. However, this has the issue that it is nearly impossible to make the enumeration exhaustive (e.g. because we have fallback from backend versions) and it is easy to miss variants.
As discussed on Slack, it would be better to instead have an explanation/decision trace on why the available variants were rejected. This PR add such traces and hooks them up in
kernels versionsand some error messages.Fixes #436.