-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to change SVE vector length for current and children proce…
…sses (#101295) * Add option to change SVE vector length for current and children processes. * Use maxVectorTBitWidth to get desired SVE length * Use CNTB to determine current vector length * Use ACLE to detect vector length on Linux and hardcode on Windows * Use rdvl instead of cntb to count vector length * Add inline assembly suitable for MSVC * Add MSCV compatible assembly helper instead of inline assembly * Declare GetSveLengthFromOS on Arm64 * Remove definition of GetSveLengthFromOS from .S file * Move non-windows definition of GetSveLengthFromOS to .S file * Apply suggestions from code review * Move declaration of GetSveLengthFromOS to .cpp file * Disable temporarily for Windows on Arm machines * Hardcode GetSveLengthFromOS() to return SVE length as 128 --------- Co-authored-by: Jan Kotas <jkotas@microsoft.com>
- Loading branch information
1 parent
f6a7ebb
commit 17d88ed
Showing
3 changed files
with
27 additions
and
4 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