mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Add root CSR to engine groups
Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com> Related-To: NEO-5120
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
55f3c8f134
commit
ebbd042f1c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2020 Intel Corporation
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -361,24 +361,16 @@ void ClDevice::initializeCaps() {
|
||||
}
|
||||
|
||||
const std::vector<std::vector<EngineControl>> &queueFamilies = this->getDevice().getEngineGroups();
|
||||
if (queueFamilies.size() > 0) {
|
||||
for (int queueFamilyIndex = 0; queueFamilyIndex < static_cast<int>(EngineGroupType::MaxEngineGroups); queueFamilyIndex++) {
|
||||
const std::vector<EngineControl> &enginesInFamily = queueFamilies.at(queueFamilyIndex);
|
||||
if (enginesInFamily.size() > 0) {
|
||||
const auto engineGroupType = static_cast<EngineGroupType>(queueFamilyIndex);
|
||||
cl_queue_family_properties_intel properties;
|
||||
properties.capabilities = getQueueFamilyCapabilities(engineGroupType);
|
||||
properties.count = static_cast<cl_uint>(enginesInFamily.size());
|
||||
properties.properties = deviceInfo.queueOnHostProperties;
|
||||
deviceInfo.queueFamilyProperties.push_back(properties);
|
||||
}
|
||||
for (size_t queueFamilyIndex = 0u; queueFamilyIndex < queueFamilies.size(); queueFamilyIndex++) {
|
||||
const std::vector<EngineControl> &enginesInFamily = queueFamilies.at(queueFamilyIndex);
|
||||
if (enginesInFamily.size() > 0) {
|
||||
const auto engineGroupType = static_cast<EngineGroupType>(queueFamilyIndex);
|
||||
cl_queue_family_properties_intel properties;
|
||||
properties.capabilities = getQueueFamilyCapabilities(engineGroupType);
|
||||
properties.count = static_cast<cl_uint>(enginesInFamily.size());
|
||||
properties.properties = deviceInfo.queueOnHostProperties;
|
||||
deviceInfo.queueFamilyProperties.push_back(properties);
|
||||
}
|
||||
} else {
|
||||
cl_queue_family_properties_intel properties;
|
||||
properties.capabilities = CL_QUEUE_DEFAULT_CAPABILITIES_INTEL;
|
||||
properties.count = 1;
|
||||
properties.properties = deviceInfo.queueOnHostProperties;
|
||||
deviceInfo.queueFamilyProperties.push_back(properties);
|
||||
}
|
||||
|
||||
deviceInfo.preemptionSupported = false;
|
||||
|
||||
Reference in New Issue
Block a user