]> git.ipfire.org Git - people/ms/gcc.git/commit
Tweak error return value for acc_set_cuda_stream.
authorJulian Brown <julian@codesourcery.com>
Tue, 12 Feb 2019 14:36:03 +0000 (06:36 -0800)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 3 Mar 2020 11:13:10 +0000 (12:13 +0100)
commit64a95e9be2e86f85bc6c5877b5c22578bbe98b47
treec3b57a52332ba7b6771a1e3e0f3733d5b1e8c1f3
parent3608ceecdf0930a55cfa65a4e8ba534278bca0e0
Tweak error return value for acc_set_cuda_stream.

The return value of acc_set_cuda_stream is unspecified in OpenACC 2.6.
The testsuite changes might be unnecessary with the current async code.

libgomp/
* oacc-cuda.c (acc_set_cuda_stream): Return 0 on error/invalid
arguments.
* testsuite/libgomp.oacc-c-c++-common/lib-84.c: Handle unnumbered
async stream being an alias for a numbered async stream.
* testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.

(cherry picked from openacc-gcc-9-branch commit
6b0f72aad2030b3efa651652d75ad3d3cc9a76f6)
libgomp/ChangeLog.omp
libgomp/oacc-cuda.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-84.c
libgomp/testsuite/libgomp.oacc-c-c++-common/lib-85.c