diff options
author | Andrew Stubbs <ams@codesourcery.com> | 2020-01-22 17:56:54 +0000 |
---|---|---|
committer | Andrew Stubbs <ams@codesourcery.com> | 2020-01-23 12:40:04 +0000 |
commit | 14e5e74698b98f4cbe398cb989dfa27765cbca6e (patch) | |
tree | 9030dc023e1982dbd6f949522b18fd9c90216841 /libgomp | |
parent | f5ee5d05f367d6221b76f7a3ef7dad96605dbf04 (diff) |
Fix libgomp plugin-gcn bug
2020-01-23 Andrew Stubbs <ams@codesourcery.com>
libgomp/
* plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
the device id.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/plugin/plugin-gcn.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index fa6aeed4ec4..c0dde5cec3c 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2020-01-23 Andrew Stubbs <ams@codesourcery.com> + + * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for + the device id. + 2020-01-20 Andrew Stubbs <ams@codesourcery.com> * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn. diff --git a/libgomp/plugin/plugin-gcn.c b/libgomp/plugin/plugin-gcn.c index de470a3dd33..7854c142f05 100644 --- a/libgomp/plugin/plugin-gcn.c +++ b/libgomp/plugin/plugin-gcn.c @@ -1228,7 +1228,8 @@ parse_target_attributes (void **input, grid_attrs_found = true; break; } - else if ((id & GOMP_TARGET_ARG_DEVICE_ALL) == GOMP_TARGET_ARG_DEVICE_ALL) + else if ((id & GOMP_TARGET_ARG_DEVICE_MASK) + == GOMP_TARGET_ARG_DEVICE_ALL) { gcn_dims_found = true; switch (id & GOMP_TARGET_ARG_ID_MASK) |