This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/82901] New: GOACC_declare calls GOACC_enter_exit_data with async arg 0
- From: "vries at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 08 Nov 2017 15:33:16 +0000
- Subject: [Bug libgomp/82901] New: GOACC_declare calls GOACC_enter_exit_data with async arg 0
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82901
Bug ID: 82901
Summary: GOACC_declare calls GOACC_enter_exit_data with async
arg 0
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgomp
Assignee: unassigned at gcc dot gnu.org
Reporter: vries at gcc dot gnu.org
CC: jakub at gcc dot gnu.org
Target Milestone: ---
GOACC_enter_exit_data has this prototype:
...
void
GOACC_enter_exit_data (int device, size_t mapnum,
void **hostaddrs, size_t *sizes, unsigned short *kinds,
int async, int num_waits, ...)
...
And GOACC_declare calls GOACC_enter_exit_data with async arg 0:
...
case GOMP_MAP_DELETE:
GOACC_enter_exit_data (device, 1, &hostaddrs[i], &sizes[i],
&kinds[i], 0, 0);
...
Async arg zero means the first async queue.
The declare directive has no async clause, so the arg should be
GOMP_ASYNC_SYNC.