gcc/libgomp/testsuite
Tom de Vries b2eb177978 [libgomp, openacc, testsuite] Fix async/wait logic in lib-13.f90
The purpose of the lib-13.f90 test-case is to test acc_wait_all_async.  The
test indeed calls acc_wait_all_async, but then subsequentlys calls
acc_wait_all, so the acc_wait_all_async functionality is not tested.
Furthermore, all acc_async_test calls are placed in a location where they are
not guaranteed to succeed, which explains why there's an xfail for the lower
optimization levels.

This patch fixes the problems by replacing acc_wait_all with an acc_wait on
the async id used for the acc_wait_all_async call, and moving the
acc_async_test calls to the correct locations.

Reg-tested on x86_64 with nvptx accelerator.

2018-07-26  Tom de Vries  <tdevries@suse.de>

	* testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
	acc_wait.  Move acc_async_test calls to correct locations.  Remove
	xfail.

From-SVN: r262989
2018-07-26 07:52:35 +00:00
..
config Update copyright years. 2018-01-03 11:03:58 +01:00
lib [openacc, testsuite] Allow installed testing of libgomp to find gomp-constants.h 2018-05-07 11:33:45 +00:00
libgomp.c [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
libgomp.c-c++-common [libgomp, testsuite] Move tests to libgomp.c-c++-common 2018-05-02 17:53:43 +00:00
libgomp.c++ re PR middle-end/86542 (wrong-code for collapsed taskloop which needs omp_cpyfn) 2018-07-17 12:54:52 +02:00
libgomp.fortran re PR fortran/25829 ([F03] Asynchronous IO support) 2018-07-25 19:34:33 +00:00
libgomp.graphite force-parallel-4.c: XFAIL one parallelizable loop. 2018-03-20 12:42:59 +00:00
libgomp.hsa.c [hsa] Fix PR82416 testcase 2018-02-08 14:06:26 +01:00
libgomp.oacc-c [testsuite] Add scan-offload-tree-dump 2018-05-03 13:47:14 +00:00
libgomp.oacc-c-c++-common Update OpenACC testcases 2018-06-22 12:04:14 +02:00
libgomp.oacc-c++ Update OpenACC testcases 2018-06-22 12:04:14 +02:00
libgomp.oacc-fortran [libgomp, openacc, testsuite] Fix async/wait logic in lib-13.f90 2018-07-26 07:52:35 +00:00
libgomp-test-support.exp.in
Makefile.am
Makefile.in Enable building libgomp with Intel CET 2017-11-17 22:22:09 +01:00