mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add implementation for reading logical subDevice from builtin
Related-To: NEO-6258 Signed-off-by: Kamil Diedrich <kamil.diedrich@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
aa6e3bbef5
commit
34856747b4
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -591,15 +591,16 @@ bool CommandStreamReceiver::createWorkPartitionAllocation(const Device &device)
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32_t logicalId = 0;
|
||||
for (uint32_t deviceIndex = 0; deviceIndex < deviceBitfield.size(); deviceIndex++) {
|
||||
if (!deviceBitfield.test(deviceIndex)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
const uint32_t copySrc = deviceIndex;
|
||||
const uint32_t copySrc[2] = {logicalId++, deviceIndex};
|
||||
DeviceBitfield copyBitfield{};
|
||||
copyBitfield.set(deviceIndex);
|
||||
auto copySuccess = MemoryTransferHelper::transferMemoryToAllocationBanks(device, workPartitionAllocation, 0, ©Src, sizeof(copySrc), copyBitfield);
|
||||
auto copySuccess = MemoryTransferHelper::transferMemoryToAllocationBanks(device, workPartitionAllocation, 0, copySrc, sizeof(copySrc), copyBitfield);
|
||||
|
||||
if (!copySuccess) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user