Skip to content

[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

Merged
merged 1 commit into from
Dec 1, 2023

Conversation

shraiysh
Copy link
Member

@shraiysh shraiysh commented Nov 3, 2023

This patch addresses the concern about multiple devices and also adds more tests for map(to:), map(from:) and named common blocks.

@kiranchandramohan
Copy link
Contributor

@agozillon @TIFitis Are you OK with these tests?

Copy link
Member

@TIFitis TIFitis left a 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
Copy link
Member

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?

Copy link
Member Author

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
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Contributor

@agozillon agozillon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shraiysh shraiysh force-pushed the more_tests_for_commonblock branch from 714c7e3 to 44482f0 Compare December 1, 2023 16:57
@shraiysh shraiysh merged commit abaeaf3 into llvm:main Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomptarget OpenMP offload runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants