From 9bd592e2ff3c99cdf26dbd4d1b1e1b181f605609 Mon Sep 17 00:00:00 2001 From: German Date: Fri, 18 Aug 2023 09:58:29 -0400 Subject: [PATCH] SWDEV-415115 - Fix memory commit in SVM on large bar systems Skip memory commit for linux only. Change-Id: I6304607f7c5516c76e59afa6da57de5b088f6a8c --- rocclr/platform/memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/platform/memory.cpp b/rocclr/platform/memory.cpp index 5867177004..b7d3a8af37 100644 --- a/rocclr/platform/memory.cpp +++ b/rocclr/platform/memory.cpp @@ -288,7 +288,7 @@ bool Memory::create(void* initFrom, bool sysMemAlloc, bool skipAlloc, bool force } const std::vector& devices = context_().devices(); - if (devices.size() == 1 && devices[0]->info().largeBar_) { + if (IS_LINUX && (devices.size() == 1) && devices[0]->info().largeBar_) { largeBarSystem_ = 1; }