Skip to content

New pqr list test#114

Open
Ryanpadrone wants to merge 13 commits intoOpenACCUserGroup:masterfrom
Ryanpadrone:pqrList
Open

New pqr list test#114
Ryanpadrone wants to merge 13 commits intoOpenACCUserGroup:masterfrom
Ryanpadrone:pqrList

Conversation

@Ryanpadrone
Copy link
Copy Markdown

Test Purpose:
These files validate the OpenACC 3.4 clarification about pqr-lists (Section 1.6): a pqr-list must be a comma-separated list with at least one item, and it must not contain a trailing comma.

These tests demonstrate accepted pqr-list forms in both contexts where pqr-lists appear:
•int-expr-list: wait( … )
•var-list: copyin( … ) (and matching present( … ) usage)

Each language file (C, C++, Fortran) contains four runtime tests (T1–T4) that validate correct compilation and execution of legal pqr-lists:
T1 — int-expr-list is non-empty (single-item list)
•Uses wait(1) where the list is 1
•Demonstrates int-expr-list contains at least one item

    T2 — int-expr-list has no trailing comma (multi-item list)

•Uses wait(1,2)
•Demonstrates multi-item int-expr-list with proper commas between items and no trailing comma

    T3 — var-list is non-empty (single-item list)

•Uses a data clause like copyin(a[0:n]) (or Fortran slice)
•Demonstrates var-list contains at least one item

    T4 — var-list has no trailing comma (multi-item list)

•Uses a data clause like copyin(a[0:n], b[0:n]) and/or present(a,b,c)
•Demonstrates multi-item var-list with proper commas between items and no trailing comma

How the test verifies correctness (runtime):
Each test performs a simple vector computation on the device and verifies results on the host using the suite tolerance (PRECISION). Each file’s main returns a bitmask failcode consistent with the testsuite (bit0–bit3 correspond to T1–T4). A return code of 0 indicates all enabled tests passed.

Files
•acc_pqr_list.c
•acc_pqr_list.cpp
•acc_pqr_list.F90

Compiler Versions
NVC: 25.5.0
GCC: 15.2.0
CRAY: 18.0.0

@ajarmusch ajarmusch changed the title pqr list test New pqr list test for v3.4 Jan 14, 2026
@ajarmusch ajarmusch added the v3.4 label Feb 26, 2026
@ajarmusch ajarmusch changed the title New pqr list test for v3.4 New pqr list test Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants