SWDEV-424603 - Use OR for CPU wait request

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

Change-Id: I0addf18ea408b7f4ecaa1e04b2877cc0bbbfcc0d
Bu işleme şunda yer alıyor:
German Andryeyev committed 2023-10-06 16:51:44 -04:00
1 ebeveyn 46de4256e0
işleme fe7b36f3cb
1 file changed
+1 -1
+1 -1
Dosyayı Görüntüle
@@ -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();