Fix libgomp plugin-gcn bug
authorAndrew Stubbs <ams@codesourcery.com>
Wed, 22 Jan 2020 17:56:54 +0000 (17:56 +0000)
committerAndrew Stubbs <ams@codesourcery.com>
Thu, 23 Jan 2020 12:40:04 +0000 (12:40 +0000)
2020-01-23  Andrew Stubbs  <ams@codesourcery.com>

libgomp/
* plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
the device id.

libgomp/ChangeLog
libgomp/plugin/plugin-gcn.c

index fa6aeed4ec4ccdda56a3a84a90d2fec64bd738d5..c0dde5cec3c1a73286b4772aae670ad255f5252c 100644 (file)
@@ -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.
index de470a3dd33c554117529314263a3e05529292e9..7854c142f054ca4c4b2ae2865697c3951d7740dc 100644 (file)
@@ -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)