Repository navigation
Prefer Google Highway native SIMD by default #751
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
14 commits
Select commit
Hold shift + click to select a range
141259d
Prefer available native SIMD by default
tlwillke 915e783
Add native-default provider release note
tlwillke 599478a
Graduate native provider and retain deprecated option alias
tlwillke eab9e61
Add failing repro: denied native access breaks provider selection
jshook 3defd0a
Add failing repro: library without kernels is selected and fails at f…
jshook 6253b21
Fall back from native when native access is denied
jshook 279a9dd
Reject a native library that lacks the bound kernels
jshook f2dbb4d
Validate native initialization and clean up extracted libraries
tlwillke c1f5123
Support copying between array and memory segment float vectors
tlwillke f54768d
Document native access and vector storage compatibility
tlwillke 322c212
Fall back when security policy denies native library loading
tlwillke 758ddd9
Check supported native ABI before selecting Highway
tlwillke e85f04d
Document supported native ABIs and interface evolution
tlwillke c0095f0
Keep native selection fixtures compatible with added kernels
tlwillke 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
Some comments aren't visible on the classic Files Changed page.
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
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,21 @@ | ||
| Google Highway native SIMD is no longer experimental and is preferred by default | ||
| on supported Java 22+ runtimes. `jvector.enable_native_vectorization` is the supported | ||
| flag; the former name remains a deprecated compatibility alias. | ||
|
|
||
| Successful native selection uses `MemorySegmentVectorFloat` instead of | ||
| `ArrayVectorFloat`. Consumers should use `VectorFloat`, or `FloatArray.array()` | ||
| when array access is needed; direct casts and assumptions about `get()`'s backing | ||
| storage must be updated. `copyFrom` supports both built-in float vector types. | ||
| Disable automatic native selection with `-Djvector.enable_native_vectorization=false` | ||
| to retain the previous provider choice. Native operations require provider-created | ||
| vectors; copying between storage types does not make mixed-storage arithmetic valid. | ||
|
|
||
| Pass `--add-modules jdk.incubator.vector --enable-native-access=ALL-UNNAMED` | ||
| for classpath deployments. Missing native access can produce JVM warnings; denied | ||
| native access, an unsupported ABI, a missing ABI query, or missing required library | ||
| symbols cause automatic selection to fall | ||
| back to the Java provider. Explicitly forcing native fails during initialization. | ||
|
|
||
| Java requires ABI 1 and checks the native library's explicit supported set before | ||
| calling kernels. Compatible native releases keep the same ABI ID. Libraries that | ||
| predate the ABI query are rejected; the bundled library supports ABI 1. |
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
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
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
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
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
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.
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.