-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[Flang][OpenMP] Add LLVM translation support for UNTIED clause in Task #121052
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
Changes from 3 commits
5eb942e
d77eae0
972c9f0
84306d3
ef30f3a
83f224f
9e38043
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| ! REQUIRES: openmp_runtime | ||
|
||
| ! RUN: %python %S/../test_errors.py %s %flang %openmp_flags | ||
| ! | ||
| ! OpenMP 5.2: 5.2 threadprivate directive restriction | ||
|
|
||
| subroutine task_untied01() | ||
| integer, save :: var_01, var_02(2) | ||
| real :: var_03 | ||
| common /c/ var_03 | ||
|
|
||
| !$omp threadprivate(var_01, var_02) | ||
| !$omp threadprivate(/c/) | ||
|
|
||
| !$omp task untied | ||
| !ERROR: A THREADPRIVATE variable `var_01` cannot appear in an UNTIED TASK region | ||
| var_01 = 10 | ||
| !ERROR: A THREADPRIVATE variable `var_02` cannot appear in an UNTIED TASK region | ||
| !ERROR: A THREADPRIVATE variable `var_01` cannot appear in an UNTIED TASK region | ||
| var_02(1) = sum([var_01, 20]) | ||
| !$omp end task | ||
|
|
||
| !$omp task untied | ||
| !ERROR: A THREADPRIVATE variable `var_02` cannot appear in an UNTIED TASK region | ||
| !ERROR: A THREADPRIVATE variable `var_02` cannot appear in an UNTIED TASK region | ||
| var_02(2) = product(var_02) | ||
| !ERROR: A THREADPRIVATE variable `var_03` cannot appear in an UNTIED TASK region | ||
| var_03 = 3.14 | ||
| !$omp end task | ||
| end subroutine task_untied01 | ||
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.
Please don't call this "designator checker". It only applies to the body of a
TASKconstruct, and only if there is anUNTIEDclause on it. Please give this class a more specific name.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.
Yea, sure.