2404ade2ef
SWDEV-192384 - [HIP CQE][HIPonPAL][19.40] hipBindTexRef1DFetch, hipTextureRef2D are failed on all ASICs for both Win/Lnx The runtime cannot trivially determine all the resources that will be used by a kernel, thus it can fail to make all of them resident. 1. Add new runtime flag PAL_ALWAYS_RESIDENT. Enabling this setting will cause resources to become resident at allocation time. 2. Set the default value of the above flag to true for HIP and false for OCL. ReviewBoardURL = http://ocltc.amd.com/reviews/r/18054/diff/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#79 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.hpp#30 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#100 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.hpp#27 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palvirtual.cpp#153 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#319 edit