-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[OpenMP][flang] Adding more tests for commonblock with target map #71146
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
Conversation
@agozillon @TIFitis Are you OK with these tests? |
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.
LGTM with the suggested changes.
|
||
! ----- | ||
|
||
subroutine commonblock_simple_from |
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.
Test commonblock_simple_to
is already testing the for
map-type isn't it?
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.
Yes, that is correct. Removed this redundant test. Thanks!
print *, "devices: ", devices | ||
end subroutine check_device | ||
|
||
!CHECK: devices: 1 0 | ||
|
||
!----- | ||
|
||
subroutine commonblock_simple_with_implicit_type |
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.
Can you remove the explicit mapping from this test? I guess we want to check implicit mapping here.
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.
This test checks if a variable with implicit type gets mapped accurately. This test does not check the implicit mapping. I will rename it to commonblock_simple_with_implicit_type_var
.
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.
LGTM
714c7e3
to
44482f0
Compare
This patch addresses the concern about multiple devices and also adds more tests for
map(to:)
,map(from:)
and named common blocks.