-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
Conversation
Can you add a test? |
✅ 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 |
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.
Why does the C version not need the env while the C++ version need?
# pragma omp barrier | ||
} | ||
return 0; | ||
} |
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.
Empty line at EOF
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. |
Looks like #86859 will fix this issue. |
Bug fix #81488