Fix 'libgomp.oacc-c-c++-common/acc_prof-kernels-1.c' for 'acc_device_radeon'
authorThomas Schwinge <thomas@codesourcery.com>
Sun, 6 Jun 2021 08:41:18 +0000 (10:41 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 8 Jun 2021 09:33:41 +0000 (11:33 +0200)
... on top of r279378 (commit 26b74ed0223d108d7d7818c3c860f20cfe81a4af)
"Update OpenACC tests for amdgcn".

libgomp/
* testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
for 'acc_device_radeon'.

libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c

index ad33f72..7f74ee9 100644 (file)
@@ -93,6 +93,11 @@ static void cb_enqueue_launch_start (acc_prof_info *prof_info, acc_event_info *e
     }
   if (num_workers < 1)
     assert (event_info->launch_event.num_workers >= 1);
+  /* GCN currently enforces 'num_workers (1)'.  */
+  else if (acc_device_type == acc_device_radeon
+          /*TODO ... just not in the "Parallelism dimensions: variable" case.  */
+          && /*TODO*/ num_gangs != 22)
+    assert (event_info->launch_event.num_workers == 1);
   else
     {
 #ifdef __OPTIMIZE__