Skip to content

Commit 8ff34fe

Browse files
Fix typo
-engineGroupTyp to engineGroupType -remove gap between commits to use same desc.ordinal in createCommandQueue Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
1 parent f261647 commit 8ff34fe

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

level_zero/core/source/device/device_imp.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ void DeviceImp::adjustCommandQueueDesc(ze_command_queue_desc_t &desc) {
205205
const NEO::HwHelper &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
206206
auto &engineGroups = getActiveDevice()->getRegularEngineGroups();
207207

208-
auto engineGroupTyp = hwHelper.getEngineGroupType(static_cast<aub_stream::EngineType>(nodeOrdinal), NEO::EngineUsage::Regular, hwInfo);
208+
auto engineGroupType = hwHelper.getEngineGroupType(static_cast<aub_stream::EngineType>(nodeOrdinal), NEO::EngineUsage::Regular, hwInfo);
209209
uint32_t currentEngineIndex = 0u;
210210
for (const auto &engine : engineGroups) {
211-
if (engine.engineGroupType == engineGroupTyp) {
211+
if (engine.engineGroupType == engineGroupType) {
212212
desc.ordinal = currentEngineIndex;
213213
break;
214214
}
@@ -229,7 +229,7 @@ ze_result_t DeviceImp::createCommandQueue(const ze_command_queue_desc_t *desc,
229229
ze_command_queue_desc_t commandQueueDesc = *desc;
230230
adjustCommandQueueDesc(commandQueueDesc);
231231

232-
if (!this->isQueueGroupOrdinalValid(desc->ordinal)) {
232+
if (!this->isQueueGroupOrdinalValid(commandQueueDesc.ordinal)) {
233233
return ZE_RESULT_ERROR_INVALID_ARGUMENT;
234234
}
235235

opencl/source/command_queue/command_queue.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,8 +1007,8 @@ void CommandQueue::processProperties(const cl_queue_properties *properties) {
10071007
const HardwareInfo &hwInfo = getDevice().getHardwareInfo();
10081008
const HwHelper &hwHelper = HwHelper::get(hwInfo.platform.eRenderCoreFamily);
10091009

1010-
auto engineGroupTyp = hwHelper.getEngineGroupType(static_cast<aub_stream::EngineType>(nodeOrdinal), EngineUsage::Regular, hwInfo);
1011-
selectedQueueFamilyIndex = static_cast<cl_uint>(getDevice().getEngineGroupIndexFromEngineGroupType(engineGroupTyp));
1010+
auto engineGroupType = hwHelper.getEngineGroupType(static_cast<aub_stream::EngineType>(nodeOrdinal), EngineUsage::Regular, hwInfo);
1011+
selectedQueueFamilyIndex = static_cast<cl_uint>(getDevice().getEngineGroupIndexFromEngineGroupType(engineGroupType));
10121012
const auto &engines = getDevice().getRegularEngineGroups()[selectedQueueFamilyIndex].engines;
10131013
for (const auto &engine : engines) {
10141014
if (engine.getEngineType() == static_cast<aub_stream::EngineType>(nodeOrdinal)) {

0 commit comments

Comments
 (0)