From f5ad16f1db58dc8fdb5d4958dde592a76612db25 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 9 May 2018 16:01:30 +0000 Subject: [PATCH] [openacc, libgomp] Use GOMP_ASYNC_SYNC in GOACC_declare 2018-05-09 Tom de Vries PR libgomp/82901 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument to GOACC_enter_exit_data. From-SVN: r260085 --- libgomp/ChangeLog | 6 ++++++ libgomp/oacc-parallel.c | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 569c0f1c859..ff9c7a7b269 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2018-05-09 Tom de Vries + + 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 PR libgomp/83792 diff --git a/libgomp/oacc-parallel.c b/libgomp/oacc-parallel.c index cfba5816036..9eae43131f8 100644 --- a/libgomp/oacc-parallel.c +++ b/libgomp/oacc-parallel.c @@ -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: -- 2.30.2