rocr: Changing to a device SVM flag

Change-Id: Ib085801d23604eeef0a17a05cf2b298170fb3d24
This commit is contained in:
Yiannis Papadopoulos authored and David Yat Sin committed 2025-01-28 17:06:16 +00:00
1 parent 144e7674d1
commit 03bd4c9508
2 files changed
+3 -3

No files matched your search

@@ -198,7 +198,7 @@ XdnaDriver::AllocateMemory(const core::MemoryRegion &mem_region,
return HSA_STATUS_ERROR_INVALID_REGION;
}
const bool use_bo_shmem = m_region.kernarg() || m_region.IsSystemButNotSVM();
const bool use_bo_shmem = !m_region.IsDeviceSVM();
if (use_bo_shmem) {
create_bo_args.type = AMDXDNA_BO_SHMEM;
} else {
@@ -147,8 +147,8 @@ class MemoryRegion : public core::MemoryRegion {
(mem_props_.HeapType == HSA_HEAPTYPE_DEVICE_SVM));
}
__forceinline bool IsSystemButNotSVM() const {
return (mem_props_.HeapType == HSA_HEAPTYPE_SYSTEM);
__forceinline bool IsDeviceSVM() const {
return (mem_props_.HeapType == HSA_HEAPTYPE_DEVICE_SVM);
}
__forceinline bool IsLDS() const {