Bug 88407 - [OpenACC] Correctly handle unseen async-arguments
Summary: [OpenACC] Correctly handle unseen async-arguments
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: libgomp (show other bugs)
Version: 9.0
: P3 normal
Target Milestone: ---
Assignee: Thomas Schwinge
URL:
Keywords: openacc, patch
Depends on:
Blocks:
 
Reported: 2018-12-07 15:08 UTC by Thomas Schwinge
Modified: 2018-12-14 20:43 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2018-12-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schwinge 2018-12-07 15:08:15 UTC
The current implementation of "acc_async_test" does not conform to the specification, and I've now generally asked the OpenACC technical committee about the intended behavior of 'OpenACC "wait" directive/clause/runtime API call with async-argument not used before'.  

This will need to be fixed on all release branches.
Comment 1 Thomas Schwinge 2018-12-14 20:43:11 UTC
Author: tschwinge
Date: Fri Dec 14 20:42:40 2018
New Revision: 267150

URL: https://gcc.gnu.org/viewcvs?rev=267150&root=gcc&view=rev
Log:
[PR88407] [OpenACC] Correctly handle unseen async-arguments

... which turn the operation into a no-op.

	libgomp/
	PR libgomp/88407
	* plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
	(nvptx_wait_async): Unseen async-argument is a no-op.
	* testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
	* testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
	* testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
	* testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
	* testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
	* testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update

Removed:
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-71.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-77.c
Modified:
    trunk/libgomp/ChangeLog
    trunk/libgomp/plugin/plugin-nvptx.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/async_queue-1.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2-lib.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/data-2.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-69.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-74.c
    trunk/libgomp/testsuite/libgomp.oacc-c-c++-common/lib-79.c
    trunk/libgomp/testsuite/libgomp.oacc-fortran/lib-12.f90