diff --git a/rocclr/runtime/device/pal/palresource.cpp b/rocclr/runtime/device/pal/palresource.cpp index cbdefc7502..b5f37bf140 100644 --- a/rocclr/runtime/device/pal/palresource.cpp +++ b/rocclr/runtime/device/pal/palresource.cpp @@ -437,14 +437,17 @@ Resource::create(MemoryType memType, CreateParams* params) amd::ScopedLock lk(dev().lockPAL()); if (memType == Shader) { - if(dev().settings().svmFineGrainSystem_) { + if (dev().settings().svmFineGrainSystem_) { desc_.isAllocExecute_ = true; desc_.SVMRes_ = true; + memType = RemoteUSWC; + } + else { + memType = Local; } // force to use remote memory for HW DEBUG or use // local memory once we determine if FGS is supported // memType = (!dev().settings().enableHwDebug_) ? Local : RemoteUSWC; - memType = RemoteUSWC; } // Get the element size