TST: Use NPY_DISABLE_CPU_FEATURES for numpy 1.22#12684
TST: Use NPY_DISABLE_CPU_FEATURES for numpy 1.22#12684pllim wants to merge 10 commits intoastropy:mainfrom
Conversation
|
👋 Thank you for your draft pull request! Do you know that you can use |
which undo a bit of astropy#12655
|
@mhvk , do you know what is going on here in |
|
Actually, looking at https://github.com/astropy/astropy/runs/4704960655?check_suite_focus=true , I am not sure if this env var is doing anything for us. @dstansby , what do you think? |
Co-authored-by: Marten van Kerkwijk <[email protected]>
|
Looks like maybe the env var did render the skipping of |
Added back in original assert, ignoring only for Gaussian2D.
Co-authored-by: William Jamieson <[email protected]>
|
There's a line in the failing test that says:
I don't know exactly what this means, but disabling doesn't seem to have an effect. |
|
This actually seems to be happening on all builds, with the extra line below that I missed in my previous comment:
I'm guessing this is the list of available CPU features, so maybe try disabling all the ones in this list that start with AVX512? I have no idea why this is different to the list we disabled in MPL though... |
dstansby
left a comment
There was a problem hiding this comment.
From looking at the numpy PR (numpy/numpy#19478), I think this is the only feature that needs disabling.
Co-authored-by: David Stansby <[email protected]> Co-authored-by: William Jamieson <[email protected]>
This makes no sense to me. 🤯 |
dstansby
left a comment
There was a problem hiding this comment.
Perhaps the quote marks are being included in the environment variable?
Co-authored-by: David Stansby <[email protected]>
|
Hmm. Looks like we don't have to touch most of the tests if we go with #12685 . What do you think? @WilliamJamieson , do you think your modeling patch is still worth going in despite numpy issues? |
Description
This pull request is to disable numpy avx512 instructions in CI.
Checklist for package maintainer(s)
This checklist is meant to remind the package maintainer(s) who will review this pull request of some common things to look for. This list is not exhaustive.
Extra CIlabel.no-changelog-entry-neededlabel. If this is a manual backport, use theskip-changelog-checkslabel unless special changelog handling is necessary.astropy-botcheck might be missing; do not let the green checkmark fool you.backport-X.Y.xlabel(s) before merge.