-
Notifications
You must be signed in to change notification settings - Fork 767
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
Various Fixes #1138
Various Fixes #1138
Conversation
Added a fix for 1057 because I got annoyed at that on the Macbook |
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.
Hi Varun, is this change not too strict? Actually, it limits the GTSAM_BUILD_WITH_MARCH_NATIVE
flag to Apple architecture only. I was running into the issue under Ubuntu 18.04 (WSL2, Intel CPU). I expected to compile gtsam with -march=native
when setting GTSAM_BUILD_WITH_MARCH_NATIVE=ON
, but it did not add this compiler option. Thus, I got a segmentation fault when using GTSAM together in VIO package which was compiled with -march=native
. To compile GTSAM properly, I set CMAKE_CXX_FLAGS="-march=native"
and my issue was solved.
The flag is by default off now but I see your point. Can you please make a PR for the fix? I don't have cycles at the moment, but I'll gladly help land the fix. |
I am not an expert here, but to my understanding, a general solution would be to add:
And this should probably work with the most recent version of LLVM clang: |
DecisionTree::apply
to show it doesn't enumerate all leaf options (so pruning actually works as expected).-march=native
. If Apple system and architecture is arm64, then we don't set-march=native
. Fixes Clang-march=native
fails on Apple M1 #1057.using
statement so that the corresponding warning is resolved.