mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
fix: select correct CSR for submission if copy offload is not allowed
Related-To: GSD-10194 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c5ed6bf73c
commit
c6accb8d53
@@ -150,7 +150,8 @@ ze_result_t DeviceImp::submitCopyForP2P(ze_device_handle_t hPeerDevice, ze_bool_
|
||||
contextImp->allocDeviceMem(this->toHandle(), &deviceDesc, 8, 1, &memory);
|
||||
contextImp->allocDeviceMem(hPeerDevice, &peerDeviceDesc, 8, 1, &peerMemory);
|
||||
|
||||
ret = L0::CommandList::fromHandle(commandList)->appendMemoryCopy(peerMemory, memory, 8, nullptr, 0, nullptr, false, false);
|
||||
CmdListMemoryCopyParams memoryCopyParams = {};
|
||||
ret = L0::CommandList::fromHandle(commandList)->appendMemoryCopy(peerMemory, memory, 8, nullptr, 0, nullptr, memoryCopyParams);
|
||||
L0::CommandList::fromHandle(commandList)->close();
|
||||
|
||||
if (ret == ZE_RESULT_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user