Revert "SWDEV-316155 - Fix for P2P sample failure"
This reverts commit74269eb547. Reason for revert: Fixed via a different patch Change-Id: I1743afdd7b8516b39501839d74bbed6bdb797e0c [ROCm/clr commit:ff1f1ba867]
Dieser Commit ist enthalten in:
@@ -357,23 +357,6 @@ hipError_t ihipMemcpyCommand(amd::Command*& command, void* dst, const void* src,
|
||||
if ((srcMemory->getContext().devices()[0] != dstMemory->getContext().devices()[0]) &&
|
||||
((srcMemory->getContext().devices().size() == 1) &&
|
||||
(dstMemory->getContext().devices().size() == 1))) {
|
||||
amd::HostQueue* currNullStream = hip::getNullStream();
|
||||
if (currNullStream == &queue) {
|
||||
if (queueDevice != srcMemory->getContext().devices()[0]) {
|
||||
amd::HostQueue* pQueue = hip::getNullStream(srcMemory->getContext());
|
||||
amd::Command* cmd = pQueue->getLastQueuedCommand(true);
|
||||
if (cmd != nullptr) {
|
||||
waitList.push_back(cmd);
|
||||
}
|
||||
}
|
||||
if (queueDevice != dstMemory->getContext().devices()[0]) {
|
||||
amd::HostQueue* pQueue = hip::getNullStream(dstMemory->getContext());
|
||||
amd::Command* cmd = pQueue->getLastQueuedCommand(true);
|
||||
if (cmd != nullptr) {
|
||||
waitList.push_back(cmd);
|
||||
}
|
||||
}
|
||||
}
|
||||
command = new amd::CopyMemoryP2PCommand(queue, CL_COMMAND_COPY_BUFFER, waitList,
|
||||
*srcMemory->asBuffer(), *dstMemory->asBuffer(), sOffset, dOffset, sizeBytes);
|
||||
if (command == nullptr) {
|
||||
|
||||
In neuem Issue referenzieren
Einen Benutzer sperren