Fix OpenACC/GCN 'acc_ev_enqueue_launch_end' position
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 2 Mar 2023 09:39:09 +0000 (10:39 +0100)
committerThomas Schwinge <thomas@codesourcery.com>
Fri, 10 Mar 2023 14:05:01 +0000 (15:05 +0100)
commit649f1939baf11f45fd3579b8b9601c7840a097b3
treefa814cd0abcece33915b5492c48648ecaf7e5849
parente1c8cf9006bd278e969ab7ed35178067ce128f32
Fix OpenACC/GCN 'acc_ev_enqueue_launch_end' position

For an OpenACC compute construct, we've currently got:

  - [...]
  - acc_ev_enqueue_launch_start
  - launch kernel
  - free memory
  - acc_ev_free
  - acc_ev_enqueue_launch_end

This confused another thing that I'm working on, so I adjusted that to:

  - [...]
  - acc_ev_enqueue_launch_start
  - launch kernel
  - acc_ev_enqueue_launch_end
  - free memory
  - acc_ev_free

Correspondingly, verify 'acc_ev_alloc', 'acc_ev_free' in
'libgomp.oacc-c-c++-common/acc_prof-parallel-1.c'.

libgomp/
* plugin/plugin-gcn.c (gcn_exec): Fix 'acc_ev_enqueue_launch_end'
position.
* testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
Verify 'acc_ev_alloc', 'acc_ev_free'.
libgomp/plugin/plugin-gcn.c
libgomp/testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c