+2022-05-30 Kwok Cheung Yeung <kcy@codesourcery.com>
+
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
+ (cb_compute_construct_end): Remove COPYIN block.
+ (main): Remove assignments to acc_async.
+ * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
+ (cb_enter_data_end): Remove COPYIN block.
+ (main): Remove assignment to acc_async.
+
2022-05-31 Kwok Cheung Yeung <kcy@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/pr85381-3.c (foo_v, foo_w):
assert (state == 11
|| state == 111);
-#if defined COPYIN
- /* In an 'async' setting, this event may be triggered before actual 'async'
- data copying has completed. Given that 'state' appears in 'COPYIN', we
- first have to synchronize (that is, let the 'async' 'COPYIN' read the
- current 'state' value)... */
- if (acc_async != acc_async_sync)
- {
- /* "We're not yet accounting for the fact that _OpenACC events may occur
- during event processing_"; temporarily disable to avoid deadlock. */
- unreg (acc_ev_none, NULL, acc_toggle_per_thread);
- acc_wait (acc_async);
- reg (acc_ev_none, NULL, acc_toggle_per_thread);
- }
- /* ... before modifying it in the following. */
-#endif
STATE_OP (state, ++);
assert (tool_info != NULL);
{
state_init = state;
}
- acc_async = acc_async_sync;
#pragma acc wait
assert (state_init == 11);
}
{
state_init = state;
}
- acc_async = acc_async_sync;
#pragma acc wait
assert (state_init == 111);
}
assert (state == 4
|| state == 104);
-#if defined COPYIN
- /* Conceptually, 'acc_ev_enter_data_end' marks the end of data copying,
- before 'acc_ev_enqueue_launch_start' marks invoking the compute region.
- That's the 'state_init = state;' intended to be captured in the compute
- regions. */
- /* In an 'async' setting, this event may be triggered before actual 'async'
- data copying has completed. Given that 'state' appears in 'COPYIN', we
- first have to synchronize (that is, let the 'async' 'COPYIN' read the
- current 'state' value)... */
- if (acc_async != acc_async_sync)
- {
- /* "We're not yet accounting for the fact that _OpenACC events may occur
- during event processing_"; temporarily disable to avoid deadlock. */
- unreg (acc_ev_none, NULL, acc_toggle_per_thread);
- acc_wait (acc_async);
- reg (acc_ev_none, NULL, acc_toggle_per_thread);
- }
- /* ... before modifying it in the following. */
-#endif
STATE_OP (state, ++);
assert (tool_info != NULL);
state_init = state;
}
- acc_async = acc_async_sync;
#pragma acc wait
assert (state_init == 104);
}