gcc/libgomp/testsuite/libgomp.oacc-c-c++-common
Thomas Schwinge 18c247cc0b [PR88370] acc_get_cuda_stream/acc_set_cuda_stream: acc_async_sync, acc_async_noval
Per my reading of the OpenACC specification (and as supported by secondary
documentation, such as code examples, or presentations), it's valid to call
"acc_get_cuda_stream"/"acc_set_cuda_stream" also with "acc_async_sync",
"acc_async_noval" arguments, not just with the nonnegative values as currently
implemented.

	libgomp/
	PR libgomp/88370
	* libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
	(acc_set_cuda_stream): Clarify.
	* oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
	"async_valid_p".
	* plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
	acc_async_sync".
	* testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
	* testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
	* testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
	* testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.

From-SVN: r267147
2018-12-14 21:42:08 +01:00
..
abort-1.c
abort-2.c
abort-3.c
abort-4.c
abort-5.c
acc_on_device-1.c
acc_set_cuda_stream-1.c [PR88370] acc_get_cuda_stream/acc_set_cuda_stream: acc_async_sync, acc_async_noval 2018-12-14 21:42:08 +01:00
acc-on-device-2.c
acc-on-device.c
async_queue-1.c [PR88370] acc_get_cuda_stream/acc_set_cuda_stream: acc_async_sync, acc_async_noval 2018-12-14 21:42:08 +01:00
asyncwait-1.c Allow asyncwait-1.c to run for non-nvidia devices 2017-11-14 09:12:14 +00:00
atomic_capture-1.c [openacc, testsuite] Fix undefined behaviour in atomic_capture-1.c 2018-04-29 10:26:56 +00:00
atomic_capture-2.c
atomic_rw-1.c
atomic_update-1.c
broadcast-1.c [nvptx] Fix neutering of bb with only cond jump 2018-04-05 08:36:37 +00:00
cache-1.c
clauses-1.c
clauses-2.c
collapse-1.c
collapse-2.c
collapse-3.c
collapse-4.c
combined-directives-1.c
combined-reduction.c
context-1.c
context-2.c
context-3.c
context-4.c
crash-1.c
data-1.c
data-2-lib.c Fix bug in an OpenACC async test case 2017-12-01 06:26:07 -08:00
data-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
data-3.c
data-already-1.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-2.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-3.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-4.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-5.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-6.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-7.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-already-8.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
data-clauses-kernels-ipa-pta.c
data-clauses-kernels.c
data-clauses-parallel-ipa-pta.c
data-clauses-parallel.c
data-clauses.h
declare-1.c Enable libgomp.oacc-*/declare-*.{c,f90} for non-nvidia devices 2017-10-16 08:44:42 +00:00
declare-2.c Enable libgomp.oacc-*/declare-*.{c,f90} for non-nvidia devices 2017-10-16 08:44:42 +00:00
declare-3.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
declare-4.c Enable libgomp.oacc-*/declare-*.{c,f90} for non-nvidia devices 2017-10-16 08:44:42 +00:00
declare-5.c Enable libgomp.oacc-*/declare-*.{c,f90} for non-nvidia devices 2017-10-16 08:44:42 +00:00
declare-vla.c
default-1.c
deviceptr-1.c
enter_exit-lib.c
enter-data.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
f-asyncwait-1.c Add libgomp.oacc-c-c++-common/f-asyncwait-{1,2,3}.c 2017-11-15 13:40:58 +00:00
f-asyncwait-2.c Add libgomp.oacc-c-c++-common/f-asyncwait-{1,2,3}.c 2017-11-15 13:40:58 +00:00
f-asyncwait-3.c Add libgomp.oacc-c-c++-common/f-asyncwait-{1,2,3}.c 2017-11-15 13:40:58 +00:00
firstprivate-1.c
function-not-offloaded.c [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
gang-static-1.c
gang-static-2.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
gomp-debug-env.c
host_data-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
host_data-2.c
host_data-4.c
host_data-5.c
if-1.c
kernels-alias-ipa-pta-2.c
kernels-alias-ipa-pta-3.c
kernels-alias-ipa-pta.c
kernels-empty.c
kernels-loop-2.c
kernels-loop-3.c
kernels-loop-and-seq-2.c
kernels-loop-and-seq-3.c
kernels-loop-and-seq-4.c
kernels-loop-and-seq-5.c
kernels-loop-and-seq-6.c
kernels-loop-and-seq.c
kernels-loop-clauses.c
kernels-loop-collapse.c
kernels-loop-data-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-loop-data-enter-exit-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-loop-data-enter-exit.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-loop-data-update.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-loop-data.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-loop-g.c
kernels-loop-mod-not-zero.c
kernels-loop-n.c
kernels-loop-nest.c
kernels-loop.c
kernels-parallel-loop-data-enter-exit.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-local-worker-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-local-worker-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-local-worker-3.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-local-worker-4.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-local-worker-5.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-3.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-4.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-5.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-gang-6.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-vector-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-vector-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-2.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-3.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-4.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-5.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-6.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-private-vars-loop-worker-7.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-reduction-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
kernels-reduction.c
lib-1.c
lib-2.c
lib-3.c
lib-4.c
lib-5.c
lib-6.c
lib-7.c
lib-8.c
lib-9.c
lib-10.c
lib-11.c
lib-12.c
lib-13.c
lib-14.c
lib-15.c
lib-16.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
lib-17.c
lib-18.c
lib-19.c
lib-20.c
lib-21.c
lib-22.c
lib-23.c
lib-24.c
lib-25.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
lib-26.c
lib-27.c
lib-28.c
lib-29.c
lib-30.c
lib-31.c
lib-32.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
lib-33.c
lib-34.c
lib-35.c
lib-36.c
lib-37.c
lib-39.c
lib-40.c
lib-41.c
lib-42.c
lib-43.c
lib-44.c
lib-45.c
lib-46.c
lib-47.c
lib-48.c
lib-49.c
lib-50.c
lib-51.c
lib-52.c
lib-53.c
lib-54.c
lib-55.c
lib-56.c
lib-57.c
lib-58.c
lib-59.c
lib-60.c
lib-61.c
lib-62.c
lib-63.c
lib-64.c
lib-65.c
lib-66.c
lib-67.c
lib-68.c
lib-69.c
lib-70.c
lib-71.c
lib-72.c
lib-73.c
lib-74.c
lib-75.c
lib-76.c
lib-77.c
lib-78.c
lib-79.c
lib-80.c
lib-81.c
lib-82.c
lib-83.c Update OpenACC data clause semantics to the 2.5 behavior 2018-06-20 09:35:15 -07:00
lib-84.c [PR88370] acc_get_cuda_stream/acc_set_cuda_stream: acc_async_sync, acc_async_noval 2018-12-14 21:42:08 +01:00
lib-85.c [PR88370] acc_get_cuda_stream/acc_set_cuda_stream: acc_async_sync, acc_async_noval 2018-12-14 21:42:08 +01:00
lib-86.c
lib-87.c
lib-88.c
lib-89.c
lib-90.c
lib-91.c
lib-92.c
lib-94.c 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
lib-95.c 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com> 2018-11-06 13:09:52 +00:00
loop-auto-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-default-runtime.c [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
loop-default.h [openacc] Move GOMP_OPENACC_DIM parsing out of nvptx plugin 2018-05-02 17:53:56 +00:00
loop-dim-default.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-g-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-g-2.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-gwv-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-g-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-gwv-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-v-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-v-2.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-w-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-w-2.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-red-wv-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
loop-v-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-w-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
loop-wv-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
mapping-1.c [PATCH] Remove use of 'struct map' from plugin (nvptx) 2018-08-01 07:09:56 -07:00
mode-transitions.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
nested-1.c
nested-2.c
offset-1.c
par-loop-comb-reduction-1.c
par-loop-comb-reduction-2.c
par-loop-comb-reduction-3.c Fix openacc float reduction testcases 2017-10-04 08:39:09 +00:00
par-loop-comb-reduction-4.c Fix openacc float reduction testcases 2017-10-04 08:39:09 +00:00
par-reduction-1.c
par-reduction-2.c
parallel-dims.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
parallel-empty.c
parallel-loop-1.c Update OpenACC testcases 2018-06-22 12:04:14 +02:00
parallel-loop-1.h Update OpenACC testcases 2018-06-22 12:04:14 +02:00
parallel-loop-2.h Update OpenACC testcases 2018-06-22 12:04:14 +02:00
parallel-reduction.c Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia devices 2017-09-27 12:35:54 +00:00
pointer-align-1.c
pr70289.c
pr70373.c
pr70688.c
pr83046.c Prune removed funcs from offload table 2017-12-30 17:02:00 +00:00
pr83589.c [nvptx, PR83589] Workaround for branch-around-nothing JIT bug 2018-01-24 13:52:12 +00:00
pr83920.c [nvptx] Fix bug in jit bug workaround 2018-01-19 16:29:41 +00:00
pr84217.c Fix libgomp.oacc-c-c++-common/pr84217.c for C++ 2018-02-07 19:32:21 +00:00
pr84955.c [openacc] Fix ICE when compiling tile loop containing infinite loop 2018-04-16 18:01:09 +00:00
pr85422.c [lto] Fixup loops before lto write-out 2018-04-26 13:26:25 +00:00
pr85782.c re PR c++/85782 (acc loops with continue statements ICE in c++) 2018-05-18 08:43:09 -07:00
pr88288.c [PR88288, OpenACC, libgomp] Adjust offsets for present data clauses 2018-11-30 21:39:49 +01:00
present-1.c
present-2.c
private-variables.c
reduction-1.c
reduction-2.c
reduction-3.c
reduction-4.c
reduction-5.c
reduction-6.c
reduction-7.c Fix openacc float reduction testcases 2017-10-04 08:39:09 +00:00
reduction-8.c
reduction-cplx-dbl.c re PR testsuite/83281 (libgomp.oacc-c-c++-common/reduction-cplx-flt.c and reduction-cplx-dbl.c fail starting with r255335) 2017-12-05 14:34:41 +01:00
reduction-cplx-flt.c re PR testsuite/83281 (libgomp.oacc-c-c++-common/reduction-cplx-flt.c and reduction-cplx-dbl.c fail starting with r255335) 2017-12-05 14:34:41 +01:00
reduction-dbl.c
reduction-flt.c
reduction-initial-1.c
reduction.h
routine-1.c [nvptx] Ignore c++ exceptions 2018-08-02 15:59:01 +00:00
routine-4.c
routine-g-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
routine-gwv-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
routine-v-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
routine-w-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
routine-wv-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
routine-wv-2.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
subr.h
subr.ptx
switch-conversion-2.c Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
switch-conversion.c Fix switch conversion in offloading functions 2018-03-26 09:45:49 +00:00
tile-1.c [openacc] Add __builtin_goacc_parlevel_{id,size} 2018-05-02 17:53:29 +00:00
timer.h
update-1.c
variable-not-offloaded.c [offloading] Error on missing symbols 2018-12-14 13:48:56 +00:00
vector-loop.c
vector-type-1.c
vprop-2.c
vprop.c
zero_length_subarrays.c