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

[OpenMP] Sync the team task for serialized parallel #85600

Closed
wants to merge 2 commits into from

Conversation

lwshanbd
Copy link
Contributor

Bug fix #81488

@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Mar 18, 2024
@lwshanbd
Copy link
Contributor Author

@shiltian @jhuber6

@shiltian
Copy link
Contributor

Can you add a test?

@shiltian shiltian changed the title [OpenMP] Sync the team task for serialized parallel. [OpenMP] Sync the team task for serialized parallel Mar 18, 2024
Copy link

github-actions bot commented Mar 18, 2024

✅ With the latest revision this PR passed the C/C++ code formatter.

@@ -0,0 +1,33 @@
// RUN: %libomp-compile-and-run
// RUN: %libomp-cxx-compile && env OMP_NUM_THREADS=1 %libomp-run
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does the C version not need the env while the C++ version need?

# pragma omp barrier
}
return 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line at EOF

@jprotze
Copy link
Collaborator

jprotze commented Mar 18, 2024

As Andrey suggested in the other issue, we should remove the "optimization" for serial teams.

If this change fixes the different issues, I'm fine with keeping the serial teams.
We need more tests, especially for different combinations of detached tasks and serial teams.

@shiltian
Copy link
Contributor

shiltian commented Mar 28, 2024

Looks like #86859 will fix this issue.

@lwshanbd lwshanbd closed this Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[OpenMP] Runtime assertion failure (barrier on a single thread with target tasks)
4 participants