From 3837ac18d2400f3979e6573c4d81fb3d8c98ca7d Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 18 Jun 2019 11:46:26 -0400
Subject: [PATCH] P4 to Git Change 1860087 by kjayapra@0_HIPWS_TRT2_ROCM on
2019/06/18 11:29:14
SWDEV-144570 - Adding entries on to P2P Access devices in RocM, to create deviceMemories_ for P2P devices too.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#129 edit
---
rocclr/runtime/device/rocm/rocdevice.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp
index 6412397b17..1072905077 100644
--- a/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -576,6 +576,7 @@ bool Device::init() {
if (agent.handle == static_cast(device2)->getBackendDevice().handle) {
// Device2 can have access to device1
device2->p2pDevices_.push_back(as_cl(device1));
+ device1->p2p_access_devices_.push_back(device2);
}
}
}