Tests for always/alwaysin/alwaysout modifiers on data copy clauses#131
Open
Ryanpadrone wants to merge 1 commit intoOpenACCUserGroup:masterfrom
Open
Tests for always/alwaysin/alwaysout modifiers on data copy clauses#131Ryanpadrone wants to merge 1 commit intoOpenACCUserGroup:masterfrom
Ryanpadrone wants to merge 1 commit intoOpenACCUserGroup:masterfrom
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Feature
The tests target the OpenACC 3.4 feature introducing the always, alwaysin, and alwaysout modifiers for the copy, copyin, and copyout data clauses.
Description:
OpenACC 3.4 introduces the always, alwaysin, and alwaysout modifiers to provide explicit control over data movement between the host and device.
•
alwaysin: Forces transfer from host to device, even if the variable is already present on the device.•
alwaysout: Forces transfer from device to host at region exit, even if the variable still has an active device lifetime.•
always: Forces both transfer-in and transfer-out.These modifiers override default behavior where implementations may reuse device-resident data or delay transfer-out
Test Coverage
T1, T4, T5 --> verify forced host-to=device transfer
• Data is made present on the device using enter data
• Host values are modified afterward
• Tests verify that always / alwaysin forces updated host values to be used on the device
T2, T6, T7 --> Verify fored device-to-host transfer
• Device data is modified inside a parallel region
• A host-side check is performed immediately after the data region
• Confirms that alwaysout / always forces copy-back before exit data delete
T3 --> Verifies bidirectional behavior
• Ensures always forces both transfer-in and transfer-out in a single test
Compiler Testing Results
Compiler versions used:
• NVHPC 26.1
• HPE Cray 18.0.0
• GNU GCC 15.2.0
All compilers failed to compile with errors such as:
‘alwaysin’ undeclared ‘alwaysout’ undeclared expected ‘)’ before ‘:’ tokenConclusion:
• The always, alwaysin, and alwaysout modifiers are not currently implemented in the tested compiler versions
• The tests correctly expose missing support for this OpenACC 3.4 feature
Files Added
• data_copy_clauses_always_modifiers.c
• data_copy_clauses_always_modifiers.cpp
• data_copy_clauses_always_modifiers.F90