Commit 14e5e746 by Andrew Stubbs

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.
parent f5ee5d05
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> 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn. * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
......
...@@ -1228,7 +1228,8 @@ parse_target_attributes (void **input, ...@@ -1228,7 +1228,8 @@ parse_target_attributes (void **input,
grid_attrs_found = true; grid_attrs_found = true;
break; 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; gcn_dims_found = true;
switch (id & GOMP_TARGET_ARG_ID_MASK) switch (id & GOMP_TARGET_ARG_ID_MASK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment