Skip to content
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

Ensure native byte order for memmap. #1354

Merged
merged 3 commits into from Oct 21, 2022

Conversation

cmarmo
Copy link
Contributor

@cmarmo cmarmo commented Oct 11, 2022

This pull request ensures native byte order for numpy memmap ndarray, generalizing the fix for ndarray applied in #1181.
It is supposed to fix #1353.

Thanks for considering it.

@codecov
Copy link

codecov bot commented Oct 11, 2022

Codecov Report

Base: 93.93% // Head: 93.86% // Decreases project coverage by -0.06% ⚠️

Coverage data is based on head (e3cb5f3) compared to base (5d0cf09).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1354      +/-   ##
==========================================
- Coverage   93.93%   93.86%   -0.07%     
==========================================
  Files          52       52              
  Lines        7292     7292              
==========================================
- Hits         6850     6845       -5     
- Misses        442      447       +5     
Impacted Files Coverage Δ
joblib/numpy_pickle.py 99.14% <100.00%> (ø)
joblib/test/test_store_backends.py 91.42% <0.00%> (-5.72%) ⬇️
joblib/_parallel_backends.py 91.54% <0.00%> (-1.48%) ⬇️
joblib/parallel.py 96.56% <0.00%> (+0.26%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! This intuitively looks good to me but I don't have access to a big endian platform. Have you had the opportunity to run the tests against your branch on a big endian machine yourself?

Even if not, +1 for merging. Please document the change in the changelog targeting the next version.

@cmarmo
Copy link
Contributor Author

cmarmo commented Oct 20, 2022

Thanks for the PR! This intuitively looks good to me but I don't have access to a big endian platform. Have you had the opportunity to run the tests against your branch on a big endian machine yourself?

Unfortunately not, let me see with debian people if it is possible to test this on experimental...

Even if not, +1 for merging. Please document the change in the changelog targeting the next version.

Will do.

@cmarmo
Copy link
Contributor Author

cmarmo commented Oct 20, 2022

Thanks for the PR! This intuitively looks good to me but I don't have access to a big endian platform. Have you had the opportunity to run the tests against your branch on a big endian machine yourself?

Unfortunately not, let me see with debian people if it is possible to test this on experimental...

I can have this tested on debian machines but they are under a big software update right now so it will take some time... Iĺl let you know when it's done.

@nileshpatra
Copy link

Hi @ogrisel @cmarmo I tested this patch on a s390x machine (big endian) and it gets the test passing there.

@ogrisel
Copy link
Contributor

ogrisel commented Oct 21, 2022

Thanks very much to both of you!

CHANGES.rst Outdated Show resolved Hide resolved
@ogrisel ogrisel merged commit 854458e into joblib:master Oct 21, 2022
@cmarmo cmarmo deleted the ensure-native-endian branch October 21, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test_joblib_pickle_across_python_versions_with_mmap fails on big endian architecture s390x
3 participants