From c7abb07c9748bf1d480d0e76826ebbabdce84e23 Mon Sep 17 00:00:00 2001 From: Todd tiantuo Li Date: Tue, 19 Sep 2023 06:32:07 -0700 Subject: [PATCH] SWDEV-422544 - Use hipDeviceAttributeUnifiedAddressing as APU flag Change-Id: If718a20f62f0ba8d83c01a0b2d16ff3f706f7bd4 [ROCm/clr commit: b825decd422500b58e983f1a2f79c9c5f9df3cbd] --- 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 026dafa2c3..91567d9323 100644 --- a/projects/clr/hipamd/src/hip_device_runtime.cpp +++ b/projects/clr/hipamd/src/hip_device_runtime.cpp @@ -422,7 +422,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 = true; + *pi = g_devices[device]->devices()[0]->info().hostUnifiedMemory_; break; case hipDeviceAttributeCanUseStreamWaitValue: // hipStreamWaitValue64() and hipStreamWaitValue32() support