SWDEV-424603 - Use OR for CPU wait request

Make sure rocclr doesn't overwrite the client's request
for a wait.

Change-Id: I0addf18ea408b7f4ecaa1e04b2877cc0bbbfcc0d


[ROCm/clr commit: fe7b36f3cb]
This commit is contained in:
German Andryeyev
2023-10-06 13:39:41 -04:00
förälder 38fec06989
incheckning bd63f3f614
+1 -1
Visa fil
@@ -126,7 +126,7 @@ void HostQueue::finish(bool cpu_wait) {
bool force_marker = false;
// Force CPU wait if profiler is enabled. Pytorch tests may use tracer's plugin and rely on
// profiling information to be available right after finish.
cpu_wait = activity_prof::IsEnabled(OP_ID_DISPATCH);
cpu_wait |= activity_prof::IsEnabled(OP_ID_DISPATCH);
if (AMD_DIRECT_DISPATCH && (command != nullptr) && !cpu_wait) {
void* hw_event =
(command->NotifyEvent() != nullptr) ? command->NotifyEvent()->HwEvent() : command->HwEvent();