rocr: Changing to a device SVM flag

Change-Id: Ib085801d23604eeef0a17a05cf2b298170fb3d24
This commit is contained in:
Yiannis Papadopoulos
2025-01-09 16:05:48 -05:00
zatwierdzone przez David Yat Sin
rodzic 144e7674d1
commit 03bd4c9508
2 zmienionych plików z 3 dodań i 3 usunięć
@@ -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 {