mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add EngineUsageHint debug variable
Related-To: NEO-6219 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
b2f286fc4a
commit
f137e927c5
@ -905,6 +905,10 @@ void CommandQueue::processProperties(const cl_queue_properties *properties) {
|
||||
const auto &engine = getDevice().getEngineGroups()[selectedQueueFamilyIndex].engines[selectedQueueIndex];
|
||||
auto engineType = engine.getEngineType();
|
||||
auto engineUsage = engine.getEngineUsage();
|
||||
if ((DebugManager.flags.EngineUsageHint.get() != -1) &&
|
||||
(getDevice().tryGetEngine(engineType, static_cast<EngineUsage>(DebugManager.flags.EngineUsageHint.get())) != nullptr)) {
|
||||
engineUsage = static_cast<EngineUsage>(DebugManager.flags.EngineUsageHint.get());
|
||||
}
|
||||
this->overrideEngine(engineType, engineUsage);
|
||||
this->queueCapabilities = getClDevice().getDeviceInfo().queueFamilyProperties[selectedQueueFamilyIndex].capabilities;
|
||||
this->queueFamilyIndex = selectedQueueFamilyIndex;
|
||||
@ -929,7 +933,7 @@ void CommandQueue::overrideEngine(aub_stream::EngineType engineType, EngineUsage
|
||||
deferredTimestampPackets = std::make_unique<TimestampPacketContainer>();
|
||||
isCopyOnly = true;
|
||||
} else {
|
||||
gpgpuEngine = &device->getEngine(engineType, EngineUsage::Regular);
|
||||
gpgpuEngine = &device->getEngine(engineType, engineUsage);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user