-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory alignment checks in SIMD error functions (#90)
Summary: Pull Request resolved: #90 Previously, a static alignment value of 32 was used for AVX in SIMD implementations. This diff modifies this approach to dynamically determine the correct alignment value via DrJit at compile-time, ensuring compatibility across different SIMD instruction sets. Detailed changes: - Add constants for packet sizes and alignment sizes for both DrJit and AVX versions, rather than using magic numbers - Centralize `checkAlignment()` - Fix `getJacobianSize()` for both DrJit and AVX versions, correctly utilizing the package size - Update tests to check around the number of constraints around the package size to ensure the new `getJacobianSize()` works - Update GitHub CI to test both SIMD-enabled and disabled NOTE: This Diff the second trial of D47103616 Differential Revision: D63658278
- Loading branch information
1 parent
5780aa2
commit db0b7b5
Showing
11 changed files
with
258 additions
and
139 deletions.
There are no files selected for viewing
This file contains 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 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 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.