-
Couldn't load subscription status.
- Fork 187
Improve hardware feature detection in CMake files and do further refactoring & enhancement #824
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
Draft
mhucka
wants to merge
35
commits into
main
Choose a base branch
from
mh-consolidate-cmake-configs
base: main
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.
Draft
Changes from 13 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
b7b9267
Remove incorrect comment
mhucka 4658564
Detect AVX & SSE and only build corresponding parts
mhucka e2c35ec
Consolidate common flags into the top-level CMakeLists.txt
mhucka 1785a09
Silence warning about "using serial compilation"
mhucka d90c642
Use add_compile_options() instead of set()
mhucka 7fbf19a
Fix cmake syntax
mhucka 86c2ac8
Fix typo
mhucka f518df6
Add -march=native for the basic version
mhucka 3941a3f
Use march=native with clang on MacOS
mhucka bb3a9f5
chore: merge branch
mhucka 20c9dd8
Attempt to fix AVX compilation issues on MacOS
mhucka ba036d7
It seems -mbmi2 flag exists on Macos Intel after all
mhucka 2490847
Simplify logic for setting flags
mhucka f00af25
Be more careful about SSE flags on Windows
mhucka 9d1ca83
Fix determining AVX & SSE features of the host CPU
mhucka 835db11
chore: merge branch
mhucka edbadb1
Fix missing NOT
mhucka 12541ed
Merge branch 'master' into mh-consolidate-cmake-configs
mhucka c94360e
Move GetPybind11.cmake file to dev_tools/cmake
mhucka 7f35ee2
Move and overhaul `GetPybind11.cmake`
mhucka 640b572
Add new CMake macro for checking CPU vector instruction sets
mhucka b083ab7
Remove no-longer-needed pybind_interface/GetCUDAARCHS.cmake
mhucka 28f52d9
Remove unnecessary CMake instructions
mhucka 13e839c
Remove unnecessary CMake code & do some deduplication
mhucka eb93692
Rewrite the logic and remove unnecessary CMake code
mhucka a9e4991
Remove unnecessary CMake code and simply setting the arch
mhucka 344cfb0
Overhaul the top-level CMakeLists.txt file (again)
mhucka 9759a38
Don't bother setting number of threads for cibuildwheel
mhucka 5bd427c
Try without CMP0179
mhucka 4669af3
tmp
mhucka 8d22fe8
tmp
mhucka c273d11
OpenMP is not required -- adjust CMake files accordingly
mhucka a08dbb3
Reduce & improve some of the excessive messages printed
mhucka f8f1ab1
Need to require Python3 Development.Module
mhucka a469ddd
Configure LTO in a portable way
mhucka 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
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
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
Oops, something went wrong.
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.
Is it really a good way to detect whether the architectural features are in fact available on the host computer?
check_cxx_compiler_flagchecks whether the C++ compiler supports a given flag. It seems the g++ compiler supports the-mavx512fflag even if the host CPU does not support AVX512 instructions.