-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Support NCNN_ISA environment variable detection #5687
Open
inspireMeNow
wants to merge
13
commits into
Tencent:master
Choose a base branch
from
inspireMeNow:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
inspireMeNow
changed the title
feat: add support for NCNN_ISA environment variable detection
[WIP] Add support for NCNN_ISA environment variable detection
Sep 9, 2024
inspireMeNow
changed the title
[WIP] Add support for NCNN_ISA environment variable detection
[WIP]Add support for NCNN_ISA environment variable detection
Sep 9, 2024
inspireMeNow
changed the title
[WIP]Add support for NCNN_ISA environment variable detection
[WIP]Support for NCNN_ISA environment variable detection
Sep 10, 2024
inspireMeNow
changed the title
[WIP]Support for NCNN_ISA environment variable detection
[WIP]Support NCNN_ISA environment variable detection
Sep 10, 2024
inspireMeNow
force-pushed
the
master
branch
from
September 10, 2024 09:14
54d7c94
to
c24a3cf
Compare
Changes: - Implemented `get_isa_env` function to retrieve and parse ISA flags from the environment variable. Signed-off-by: Kaiyao Duan <[email protected]>
inspireMeNow
force-pushed
the
master
branch
from
September 11, 2024 06:15
c24a3cf
to
63d817c
Compare
Signed-off-by: Kaiyao Duan <[email protected]>
- Updated `get_isa_env` function to compare ISA flags without leading characters. - Changed the way ISA flags are checked for various architectures, removing the leading '-' for better clarity. - Update CPU feature checks to include base feature dependencies. Signed-off-by: Kaiyao Duan <[email protected]>
- Added environment detection tests to CMake configuration, setting ISA env flags based on the system architecture for Linux, Windows, Darwin, and Android. Signed-off-by: Kaiyao Duan <[email protected]>
inspireMeNow
changed the title
[WIP]Support NCNN_ISA environment variable detection
Support NCNN_ISA environment variable detection
Oct 7, 2024
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5687 +/- ##
===========================================
- Coverage 94.07% 89.99% -4.08%
===========================================
Files 736 265 -471
Lines 229064 77480 -151584
===========================================
- Hits 215497 69730 -145767
+ Misses 13567 7750 -5817 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Kaiyao Duan <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes:
get_isa_env
function to retrieve and parse ISA flags from the environment variable.Signed-off-by: Kaiyao Duan [email protected]