-
Notifications
You must be signed in to change notification settings - Fork 789
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
CMake handling of a missing TBB leads to crash #815
Comments
The error message says it all
Either you haven't turned off the TBB flag or your TBB install is messed up somehow. |
Hi @varunagrawal, thanks for taking a look. It looks like I was trying But I guess my two cents are that if TBB is truly optional, then CMake should be able to gracefully check if it's found, and if not, should set the flag to |
I think the current thing should be documented better but the behavior should not change: one could accidentally build a GTSAM without TBB and think he is building with it, leading to serious performance regressions. |
Fair point. I took a crack at clarifying the docs: #818 |
I believe CMake setting flags based on internal logic can be a bad idea since then the behavior is no longer opaque. The user will be wondering why CMake is trying to find TBB when the flag was never set. If TBB is not found at all, then CMake does handle it correctly and lets the user know. In general, the issue is more that TBB is currently default to ON, whereas the correct default (for it to be truly optional) is OFF. |
On Mac, I would expect a missing TBB to be handled gracefully. Instead, cmake crashes:
mkdir build cd build cmake .. -DGTSAM_BUILD_PYTHON=1 -DGTSAM_PYTHON_VERSION=3.8.10
WIth the following error report
Environment:
Python 3.8.10
macOS Big Sur, Version 11.2.3
The text was updated successfully, but these errors were encountered: