From 2db432663c687ea84ec312afe9b9cf76379b0b8d Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 28 Sep 2017 17:16:41 -0400
Subject: [PATCH] P4 to Git Change 1464689 by skeely@skeely_HSA_linux on
2017/09/28 17:01:05
SWDEV-134228 - Remove dead code.
hsa_memory_assign_agent is not needed with pool memory APIs and has been superceded by hsa_amd_agents_allow_access.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#65 edit
---
rocclr/runtime/device/rocm/rocdevice.cpp | 7 -------
1 file changed, 7 deletions(-)
diff --git a/rocclr/runtime/device/rocm/rocdevice.cpp b/rocclr/runtime/device/rocm/rocdevice.cpp
index 6ed491f791..c7052400c9 100644
--- a/rocclr/runtime/device/rocm/rocdevice.cpp
+++ b/rocclr/runtime/device/rocm/rocdevice.cpp
@@ -1380,13 +1380,6 @@ void* Device::deviceLocalAlloc(size_t size) const {
return nullptr;
}
- stat = hsa_memory_assign_agent(ptr, _bkendDevice, HSA_ACCESS_PERMISSION_RW);
- if (stat != HSA_STATUS_SUCCESS) {
- LogError("Fail assigning local memory to agent");
- memFree(ptr, size);
- return nullptr;
- }
-
if (p2pAgents().size() > 0) {
stat = hsa_amd_agents_allow_access(p2pAgents().size(), p2pAgents().data(), nullptr, ptr);
if (stat != HSA_STATUS_SUCCESS) {