From b5c6043d6e78e6a97b20d90fc6486616e2bad5da Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 21 Nov 2017 18:17:45 -0500 Subject: [PATCH] P4 to Git Change 1485325 by gandryey@gera-lnx-rcf on 2017/11/21 18:10:36 SWDEV-136068 - PAL support for Linux Pro: SSG support on OpenCL 1.2 - Enable LiquidFlash extension when DGMA available only. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#37 edit [ROCm/clr commit: 0e496d9c9fe8b9fa7fe632a5e63f089ad3b96768] --- projects/clr/rocclr/runtime/device/pal/palsettings.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp index 526721a806..9687773416 100644 --- a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp @@ -325,7 +325,13 @@ bool Settings::create(const Pal::DeviceProperties& palProp, #if !defined(WITH_LIGHTNING_COMPILER) enableExtension(ClKhrSpir); #endif // !defined(WITH_LIGHTNING_COMPILER) - enableExtension(ClAMDLiquidFlash); + +#ifdef ATI_OS_LINUX + if (palProp.gpuMemoryProperties.busAddressableMemSize > 0) +#endif + { + enableExtension(ClAMDLiquidFlash); + } hwLDSSize_ = 32 * Ki;