From d17108e8d051678393f6cd0df23eec1237bcddf0 Mon Sep 17 00:00:00 2001 From: German Andryeyev Date: Tue, 5 Oct 2021 11:26:26 -0400 Subject: [PATCH] SWDEV-303560 - Remove coarse grain setup by default The original logic was left after initial testing when HMM couldn't handle xnack properly Change-Id: I0abf01805704171e931dfba8b6d95bfe87d5fab1 --- rocclr/device/rocm/rocdevice.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/rocclr/device/rocm/rocdevice.cpp b/rocclr/device/rocm/rocdevice.cpp index acdd3349f9..c481d5e22b 100644 --- a/rocclr/device/rocm/rocdevice.cpp +++ b/rocclr/device/rocm/rocdevice.cpp @@ -2227,9 +2227,6 @@ bool Device::SetSvmAttributesInt(const void* dev_ptr, size_t count, } if (info().hmmSupported_) { std::vector attr; - if (first_alloc) { - attr.push_back({HSA_AMD_SVM_ATTRIB_GLOBAL_FLAG, HSA_AMD_SVM_GLOBAL_FLAG_COARSE_GRAINED}); - } switch (advice) { case amd::MemoryAdvice::SetReadMostly: