mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 16:41:06 +08:00
[openacc, libgomp] Use GOMP_ASYNC_SYNC in GOACC_declare
2018-05-09 Tom de Vries <tom@codesourcery.com> PR libgomp/82901 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument to GOACC_enter_exit_data. From-SVN: r260085
This commit is contained in:
parent
e778577773
commit
f5ad16f1db
@ -1,3 +1,9 @@
|
||||
2018-05-09 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR libgomp/82901
|
||||
* oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
|
||||
to GOACC_enter_exit_data.
|
||||
|
||||
2018-05-09 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR libgomp/83792
|
||||
|
@ -524,7 +524,7 @@ GOACC_declare (int device, size_t mapnum,
|
||||
case GOMP_MAP_POINTER:
|
||||
case GOMP_MAP_DELETE:
|
||||
GOACC_enter_exit_data (device, 1, &hostaddrs[i], &sizes[i],
|
||||
&kinds[i], 0, 0);
|
||||
&kinds[i], GOMP_ASYNC_SYNC, 0);
|
||||
break;
|
||||
|
||||
case GOMP_MAP_FORCE_DEVICEPTR:
|
||||
@ -533,19 +533,19 @@ GOACC_declare (int device, size_t mapnum,
|
||||
case GOMP_MAP_ALLOC:
|
||||
if (!acc_is_present (hostaddrs[i], sizes[i]))
|
||||
GOACC_enter_exit_data (device, 1, &hostaddrs[i], &sizes[i],
|
||||
&kinds[i], 0, 0);
|
||||
&kinds[i], GOMP_ASYNC_SYNC, 0);
|
||||
break;
|
||||
|
||||
case GOMP_MAP_TO:
|
||||
GOACC_enter_exit_data (device, 1, &hostaddrs[i], &sizes[i],
|
||||
&kinds[i], 0, 0);
|
||||
&kinds[i], GOMP_ASYNC_SYNC, 0);
|
||||
|
||||
break;
|
||||
|
||||
case GOMP_MAP_FROM:
|
||||
kinds[i] = GOMP_MAP_FORCE_FROM;
|
||||
GOACC_enter_exit_data (device, 1, &hostaddrs[i], &sizes[i],
|
||||
&kinds[i], 0, 0);
|
||||
&kinds[i], GOMP_ASYNC_SYNC, 0);
|
||||
break;
|
||||
|
||||
case GOMP_MAP_FORCE_PRESENT:
|
||||
|
Loading…
x
Reference in New Issue
Block a user