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

oneTBB compatibility #211

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

oneTBB compatibility #211

wants to merge 2 commits into from

Conversation

FlorentLM
Copy link

Small changes to accomodate for libtbb's replacement, oneTBB (including a bump to mapmap's latest commit which builds fine with oneTBB)

@@ -60,10 +60,12 @@ int main(int argc, char **argv) {
}

// Set the number of threads to use.
tbb::task_scheduler_init schedule(conf.num_threads > 0 ? conf.num_threads : tbb::task_scheduler_init::automatic);
if (conf.num_threads > 0) {
if (num_threads > 0) {
Copy link

Choose a reason for hiding this comment

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

mvs-texturing/apps/texrecon/texrecon.cpp:63:9: error: ‘num_threads’ was not declared in this scope
   63 |     if (num_threads > 0) {

should be:

if (conf.num_threads > 0) {

@thomas-19
Copy link

@FlorentLM , thank you so much. I spent the entire day trying to resolve a compiler issue related to TBB. Your PR was a great help!

donlk added a commit to donlk/mvs-texturing that referenced this pull request Jun 15, 2024
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.

3 participants