From edc2a43dbc22b02dc0ce8627d6f8ed647bde4a7c Mon Sep 17 00:00:00 2001 From: foreman Date: Fri, 15 Nov 2019 13:04:36 -0500 Subject: [PATCH] P4 to Git Change 2031447 by gandryey@gera-win10 on 2019/11/15 13:01:06 SWDEV-79445 - OCL generic changes and code clean-up - Restore the original logic for PAL_DISABLE_SDMA Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#106 edit [ROCm/clr commit: 1abf6a3655ad186e018bc70ae64a2f4bee5b4f7a] --- projects/clr/rocclr/runtime/device/pal/palsettings.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp index 03ffb41e2f..5ec7a4fb01 100644 --- a/projects/clr/rocclr/runtime/device/pal/palsettings.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palsettings.cpp @@ -150,7 +150,7 @@ Settings::Settings() { lcWavefrontSize64_ = true; enableHwP2P_ = false; imageBufferWar_ = false; - disableSdma_ = false; + disableSdma_ = PAL_DISABLE_SDMA; mallPolicy_ = 0; alwaysResident_ = amd::IS_HIP ? true : false; } @@ -551,10 +551,6 @@ void Settings::override() { if (!flagIsDefault(PAL_ALWAYS_RESIDENT)) { alwaysResident_ = PAL_ALWAYS_RESIDENT; } - - if (!flagIsDefault(PAL_DISABLE_SDMA)) { - disableSdma_ = PAL_DISABLE_SDMA; - } } } // namespace pal