-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Flang][OpenMP]Add tests for TODOs and small changes to improve messages #111562
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Reduction modifiers are not supported | ||
| subroutine reduction_inscan() | ||
| integer :: i,j | ||
| i = 0 | ||
|
|
||
| !$omp do reduction(inscan, +:i) | ||
| do j=1,10 | ||
| i = i + 1 | ||
| end do | ||
| !$omp end do | ||
| end subroutine reduction_inscan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Reduction modifiers are not supported | ||
| subroutine reduction_task() | ||
| integer :: i | ||
| i = 0 | ||
|
|
||
| !$omp parallel reduction(task, +:i) | ||
| i = i + 1 | ||
| !$omp end parallel | ||
| end subroutine reduction_task |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
|
|
||
| !=============================================================================== | ||
| ! `mergeable` clause | ||
| !=============================================================================== | ||
|
|
||
| ! CHECK: not yet implemented: Unhandled clause IN_REDUCTION in TARGET construct | ||
| subroutine omp_targer_inreduction() | ||
| integer i | ||
| i = 0 | ||
| !$omp target in_reduction(+:i) | ||
| i = i + 1 | ||
| !$omp end target | ||
| end subroutine omp_targer_inreduction | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s 2>&1 | FileCheck %s | ||
|
|
||
| !=============================================================================== | ||
| ! `mergeable` clause | ||
| !=============================================================================== | ||
|
|
||
| ! CHECK: not yet implemented: Unhandled clause IN_REDUCTION in TASK construct | ||
| subroutine omp_task_in_reduction() | ||
| integer i | ||
| i = 0 | ||
| !$omp task in_reduction(+:i) | ||
| i = i + 1 | ||
| !$omp end task | ||
| end subroutine omp_task_in_reduction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Unhandled clause TASK_REDUCTION in TASKGROUP construct | ||
| subroutine omp_taskgroup_task_reduction | ||
| integer :: res | ||
| !$omp taskgroup task_reduction(+:res) | ||
| res = res + 1 | ||
| !$omp end taskgroup | ||
| end subroutine omp_taskgroup_task_reduction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Taskloop construct | ||
| subroutine omp_taskloop | ||
| integer :: res, i | ||
| !$omp taskloop | ||
| do i = 1, 10 | ||
| res = res + 1 | ||
| end do | ||
| !$omp end taskloop | ||
| end subroutine omp_taskloop | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=50 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Unhandled clause DEPEND in TASKWAIT construct | ||
| subroutine omp_tw_depend | ||
| integer :: res | ||
| !$omp taskwait depend(out: res) | ||
| res = res + 1 | ||
| end subroutine omp_tw_depend | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ! RUN: %not_todo_cmd bbc -emit-fir -fopenmp -o - %s -fopenmp-version=51 2>&1 | FileCheck %s | ||
| ! RUN: %not_todo_cmd %flang_fc1 -emit-fir -fopenmp -o - %s -fopenmp-version=51 2>&1 | FileCheck %s | ||
|
|
||
| ! CHECK: not yet implemented: Unhandled clause NOWAIT in TASKWAIT construct | ||
| subroutine omp_tw_nowait | ||
| !$omp taskwait nowait | ||
| end subroutine omp_tw_nowait | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.