SWDEV-424603 - Use OR for CPU wait request
Make sure rocclr doesn't overwrite the client's request for a wait. Change-Id: I0addf18ea408b7f4ecaa1e04b2877cc0bbbfcc0d
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user