-
Notifications
You must be signed in to change notification settings - Fork 47
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
Incorrrectly Master-workshare nesting #857
Comments
@dmishura Awesome - thank you, Dmitry! |
- Cleanup USE OMP_LIB directives.
I explored an approach to use CP2K's convention checker and essentially ban nested parallelism or more specifically a parallel region inside of a master section. However, the GFortran AST cannot be combined with a call graph query unless much additional work is invested. Alternative approach is to rely on an assertion. |
- Avoid IF-condition as part of the directive. - Cleanup USE OMP_LIB directives.
- Avoid IF-condition as part of the directive.
This questions the whole MPI-like programming model in OpenMP based on ( That's too much to ask for ;-) |
- Avoid IF-condition as part of the directive.
- Avoid IF-condition as part of the directive.
- Avoid IF-condition as part of the directive.
- Avoid IF-condition as part of the directive.
Found in code evaluation with CP2K. Code hung with latest ifx compiler. Caused by nested OpenMP regions that doesn't allow by standard. Code path contain multiple source files, so only short snippets here.
Situation when __DBCSR_DISABLE_WORKSHARE macros is not defined violated OpenMP standard that says:
" DO, SECTIONS, SINGLE, and WORKSHARE directives are not permitted in the
dynamic extent of CRITICAL, ORDERED, and MASTER directives"
Also please note that MASTER construct is deprecated in latest spec.
Fortran pretty old spec:
https://www.openmp.org/wp-content/uploads/fspec20.pdf
The text was updated successfully, but these errors were encountered: