Sync the current queue for P2P staging
P2P staging uses device queues for transfer, hence the current
queue must be in sync
Change-Id: I8372a60590eed9dde62cb4c67ef4df5df82a8e8d
[ROCm/clr commit: 0dc47d55d2]
This commit is contained in:
@@ -1451,6 +1451,9 @@ void VirtualGPU::submitCopyMemoryP2P(amd::CopyMemoryP2PCommand& cmd) {
|
||||
size, cmd.isEntireMemory());
|
||||
}
|
||||
else {
|
||||
// Sync the current queue, since P2P staging uses the device queues for transfer
|
||||
releaseGpuMemoryFence();
|
||||
|
||||
amd::ScopedLock lock(dev().P2PStageOps());
|
||||
Memory* dstStgMem = static_cast<Memory*>(
|
||||
dev().P2PStage()->getDeviceMemory(*cmd.source().getContext().devices()[0]));
|
||||
|
||||
Reference in New Issue
Block a user