mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Create Root CSR only for Devices with Generic SubDevices
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
bb9d902899
commit
0c9050c26c
@@ -118,6 +118,7 @@ bool Device::createGenericSubDevices() {
|
||||
subdevices[i] = subDevice;
|
||||
}
|
||||
|
||||
hasGenericSubDevices = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -155,6 +155,7 @@ class Device : public ReferenceTrackedObject<Device> {
|
||||
ExecutionEnvironment *executionEnvironment = nullptr;
|
||||
uint32_t defaultEngineIndex = 0;
|
||||
uint32_t numSubDevices = 0;
|
||||
bool hasGenericSubDevices = false;
|
||||
|
||||
std::atomic<uint32_t> selectorCopyEngine{0};
|
||||
|
||||
|
||||
@@ -44,12 +44,13 @@ void RootDevice::createBindlessHeapsHelper() {
|
||||
}
|
||||
|
||||
bool RootDevice::createEngines() {
|
||||
if (getNumSubDevices() < 2) {
|
||||
return Device::createEngines();
|
||||
} else {
|
||||
if (hasGenericSubDevices) {
|
||||
this->engineGroups.resize(static_cast<uint32_t>(EngineGroupType::MaxEngineGroups));
|
||||
initializeRootCommandStreamReceiver();
|
||||
} else {
|
||||
return Device::createEngines();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user