From cc3f11f5f51ea1f192b23c8df793e23d7163002d Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 18 Dec 2019 18:01:22 +0100 Subject: [PATCH] [OpenACC] In 'libgomp/target.c:gomp_to_device_kind_p', handle 'GOMP_MAP_FORCE_FROM' like 'GOMP_MAP_FROM' Fix oversight from r254194 "Coalesce host to device transfers in libgomp". libgomp/ * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM' like 'GOMP_MAP_FROM'. From-SVN: r279533 --- libgomp/ChangeLog | 3 +++ libgomp/target.c | 1 + 2 files changed, 4 insertions(+) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 871a1537c77..472519c7e3e 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,5 +1,8 @@ 2019-12-18 Thomas Schwinge + * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM' + like 'GOMP_MAP_FROM'. + PR libgomp/92726 PR libgomp/92970 PR libgomp/92984 diff --git a/libgomp/target.c b/libgomp/target.c index 41cf6a3d7d2..a3cdb34bd51 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -279,6 +279,7 @@ gomp_to_device_kind_p (int kind) case GOMP_MAP_ALLOC: case GOMP_MAP_FROM: case GOMP_MAP_FORCE_ALLOC: + case GOMP_MAP_FORCE_FROM: case GOMP_MAP_ALWAYS_FROM: return false; default: -- 2.30.2