-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
ENH: Improve Floating Point Cast Performance on ARM #28769
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9fe3084
WIP,Prototype: Use Neon SIMD to improve half->float cast performance
f2013519 4de0a6f
Support Neon SIMD float32->float16 cast and update scalar path to use…
f2013519 3ccb95a
Add missing header
f2013519 f223a15
Merge branch 'numpy:main' into main
f2013519 236223f
Relax VECTOR_ARITHMETIC check and add comment on need for SIMD routines
f2013519 a8f472d
Enable hardware cast on x86 when F16C is available
f2013519 c4b1486
Relax fp exceptions in Clang to enable vectorization for cast
f2013519 0fbe5ec
Ignore fp exceptions only for float casts
f2013519 a7ce139
Fix build
f2013519 2c17e2a
Attempt to fix test failure on ARM64 native
f2013519 559dc78
Merge branch 'numpy:main' into main
f2013519 de229c7
Work around gcc bug for double->half casts
f2013519 04b2cb0
Merge branch 'numpy:main' into main
f2013519 5c32fee
Add release note
f2013519 e131454
Merge branch 'numpy:main' into main
f2013519 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Performance improvements for ``np.float16`` casts | ||
-------------------------------------------------- | ||
Earlier, floating point casts to and from ``np.float16`` types | ||
were emulated in software on all platforms. | ||
|
||
Now, on ARM devices that support Neon float16 intrinsics (such as | ||
recent Apple Silicon), the native float16 path is used to achieve | ||
the best performance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.