mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: correct pollForCompletion in aub on program termination
Related-To: NEO-14867 Signed-off-by: Grochowski, Stanislaw <stanislaw.grochowski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d3564fab68
commit
e652679b95
@@ -1085,10 +1085,20 @@ void Device::stopDirectSubmissionAndWaitForCompletion() {
|
||||
}
|
||||
|
||||
void Device::pollForCompletion() {
|
||||
if (allEngines.size() == 0 || !getDefaultEngine().commandStreamReceiver->isAubMode()) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (auto &engine : allEngines) {
|
||||
auto csr = engine.commandStreamReceiver;
|
||||
csr->pollForCompletion();
|
||||
}
|
||||
|
||||
for (auto &subDevice : subdevices) {
|
||||
if (subDevice != nullptr) {
|
||||
subDevice->pollForCompletion();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool Device::isAnyDirectSubmissionEnabled() const {
|
||||
|
||||
@@ -212,7 +212,7 @@ class Device : public ReferenceTrackedObject<Device>, NEO::NonCopyableAndNonMova
|
||||
return usmMemAllocPool.get();
|
||||
}
|
||||
MOCKABLE_VIRTUAL void stopDirectSubmissionAndWaitForCompletion();
|
||||
void pollForCompletion();
|
||||
MOCKABLE_VIRTUAL void pollForCompletion();
|
||||
bool isAnyDirectSubmissionEnabled() const;
|
||||
bool isAnyDirectSubmissionLightEnabled() const;
|
||||
bool isStateSipRequired() const {
|
||||
|
||||
Reference in New Issue
Block a user