From 3445b57a43e587f80d3172c2bf28fa57c83ba727 Mon Sep 17 00:00:00 2001 From: Todd tiantuo Li Date: Tue, 2 Jan 2024 09:54:13 -0800 Subject: [PATCH] SWDEV-438503 - Always report hipDeviceAttributeUnifiedAddressing as true. Change-Id: I3119bd8f99c079280bde1ba32b3d26b474899e7d [ROCm/clr commit: 60549b101c006db28455ea966257ec8c49808fd5] --- projects/clr/hipamd/src/hip_device_runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hip_device_runtime.cpp b/projects/clr/hipamd/src/hip_device_runtime.cpp index 6db682345f..f93adc18b6 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -418,7 +418,7 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device) // HIP runtime always uses SVM for host memory allocations. // Note: Host registered memory isn't covered by this feature // and still requires hipMemHostGetDevicePointer() call - *pi = g_devices[device]->devices()[0]->info().hostUnifiedMemory_; + *pi = true; break; case hipDeviceAttributeCanUseStreamWaitValue: // hipStreamWaitValue64() and hipStreamWaitValue32() support