-
Notifications
You must be signed in to change notification settings - Fork 11.9k
MSVC instruction detection (fixed up #809) #3923
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
ggerganov
merged 15 commits into
ggml-org:master
from
netrunnereve:instruction_detection
Nov 5, 2023
Merged
MSVC instruction detection (fixed up #809) #3923
ggerganov
merged 15 commits into
ggml-org:master
from
netrunnereve:instruction_detection
Nov 5, 2023
Conversation
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
ggerganov
approved these changes
Nov 3, 2023
This does correctly detect AVX, AVX2, and FMA on my CPU with MSVC. I do not have AVX-512 either. |
Tested successfully on a Windows AVX-512 machine (Github CI has them).
|
cebtenzzre
approved these changes
Nov 4, 2023
olexiyb
pushed a commit
to Sanctum-AI/llama.cpp
that referenced
this pull request
Nov 23, 2023
…3923) * Add detection code for avx * Only check hardware when option is ON * Modify per code review sugguestions * Build locally will detect CPU * Fixes CMake style to use lowercase like everywhere else * cleanup * fix merge * linux/gcc version for testing * msvc combines avx2 and fma into /arch:AVX2 so check for both * cleanup * msvc only version * style * Update FindSIMD.cmake --------- Co-authored-by: Howard Su <[email protected]> Co-authored-by: Jeremy Dunn <[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.
I got annoyed by #3906, so I took @howard0su's #809 and cleaned it up for submission. Note that this is for MSVC only and is ignored on Linux (Linux has
-march=native
anyways). If you want to try this on Linux grab 5c5281b which is what I used for testing purposes.I'm keeping this as a draft until someone with MSVC and AVX-512 actually confirms that this works! I have no Windows and no AVX-512.