-
Notifications
You must be signed in to change notification settings - Fork 39
Add SIMD support via xsimd library #207
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
+103
−56
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
3a2e03e
Add optional SIMD support via xsimd
zfergus ef46908
Generalize SIMD traversal to variable width
zfergus f98b593
Fix issue with abs(double) casting to int
zfergus cd68104
Remove SIMD preset from CMake configuration and update lbvh.cpp buffe…
zfergus f79d470
Use EIGEN_USING_STD for std::abs to avoid casting issues
zfergus e5c3bf1
Apply suggestions from code review
zfergus 52eb4cf
Refactor comments for clarity in SIMD query intersection logic
zfergus 259c434
Merge branch 'main' into xsimd
zfergus 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # xsimd (https://github.com/xtensor-stack/xsimd) | ||
| # License: BSD-3-Clause | ||
| if(TARGET xsimd::xsimd) | ||
| return() | ||
| endif() | ||
|
|
||
| message(STATUS "Third-party: creating target 'xsimd::xsimd'") | ||
|
|
||
| include(CPM) | ||
| CPMAddPackage("gh:xtensor-stack/xsimd#14.0.0") | ||
|
|
||
| add_library(xsimd::xsimd ALIAS xsimd) | ||
|
|
||
| # Folder name for IDE | ||
| set_target_properties(xsimd PROPERTIES FOLDER "ThirdParty") | ||
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
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.
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.
The
CPMAddPackage("gh:xtensor-stack/xsimd#14.0.0")call introduces a supply-chain risk by fetching and building third-party code from GitHub pinned only to a mutable tag without any additional integrity verification. If thextensor-stack/xsimdrepository or its tags are compromised, CI/builds that have access to secrets could execute attacker-controlled code. To mitigate this, pin the dependency to an immutable commit SHA (and, if supported by CPM, enable checksum/signature verification) rather than relying solely on a version tag.