Skip to content
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

Add OpenMP support in CMake #269

Merged
merged 3 commits into from Jul 31, 2018
Merged

Add OpenMP support in CMake #269

merged 3 commits into from Jul 31, 2018

Conversation

MathLabu
Copy link
Contributor

No description provided.

CMakeLists.txt Outdated
#--------------------
# DEPENDENCY: OpenMP (optional)
#--------------------
set(USE_OPEN_MP TRUE CACHE BOOL "Set to FALSE to not use OpenMP")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd recommend to default to FALSE instead. Otherwise users will be running into mysterious performance changes of their systems (using more cores sometimes is actually slow and typically affects other processes running in parallel). See norlab-ulaval/libnabo#66 for a corresponding PR for libnabo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I'll change that! (I took the code from the CMakeLists.txt of libnabo, this is why the default option was set to TRUE.)

@pomerlef pomerlef merged commit 2c8d526 into norlab-ulaval:master Jul 31, 2018
@pomerlef pomerlef deleted the fix/openmp branch July 31, 2018 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants