SWDEV-408891 - Only register the host pointer to the current device.

Change-Id: If5397f148638e3b7d542b9e6fb8ac749a602b35e
Ta zmiana jest zawarta w:
kjayapra-amd authored and Karthik Jayaprakash committed 2023-07-12 21:44:52 -04:00
1 rodzic 8434feed16
złożenie 8c7f59663f
Plik 1 zmieniony
+2 -1
+2 -1
Wyświetl plik
@@ -961,8 +961,9 @@ bool Buffer::create(bool alloc_local) {
dev().SystemSegment() :
(dev().SystemCoarseSegment().handle != 0 ?
dev().SystemCoarseSegment() : dev().SystemSegment());
hsa_agent_t hsa_agent = dev().getBackendDevice();
hsa_status_t status = hsa_amd_memory_lock_to_pool(owner()->getHostMem(),
owner()->getSize(), nullptr, 0, pool, 0, &deviceMemory_);
owner()->getSize(), &hsa_agent, 1, pool, 0, &deviceMemory_);
ClPrint(amd::LOG_DEBUG, amd::LOG_MEM, "Locking to pool %p, size 0x%zx, HostPtr = %p,"
" DevPtr = %p", pool, owner()->getSize(), owner()->getHostMem(), deviceMemory_ );
if (status != HSA_STATUS_SUCCESS) {