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
This commit is contained in:
foreman
2017-09-28 17:16:41 -04:00
parent af2ba1c7b7
commit 2db432663c
-7
View File
@@ -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) {