-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
TST Make sure memmap are aligned when OpenBLAS detects Prescott architecture #23994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TST Make sure memmap are aligned when OpenBLAS detects Prescott architecture #23994
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for looking into this issue. The bug was quite subtle. I'm happy with the fix in this PR. LGTM
In my last commit, I switched to require a sequence of arrays rather than an iterable since:
The code looked like this: if isinstance(data, Iterable) and all(
isinstance(each, np.ndarray) for each in data
):
return [... for each in data] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @lesteve.
Waiting for @thomasjpfan to merge as the PR have changed since his last review.
This is a potential fix for #23786 where on some runs the architecture detected by OpenBLAS is Prescott.
To reproduce you can do:
which yields a segmentation fault on
main
. The gdb info points towardsddot_k_PRESCOTT
as #21361. Also see OpenMathLib/OpenBLAS#3453.Also it seems better to avoid this issue in a centralized manner in
create_memmap_backed_data
when OpenBLAS detects a Prescott architecture rather than a specific fix for the common tests as was done before.gdb segmentation fault info