d43f2b6372
SWDEV-198862 - Options for hip-clang-vdi path to provide the chicken bits, or functional equivalents to HCC_OPT_FLUSH Add HCC_OPT_FLUSH flag to use fence scope agent when possible for HIP VDI. The flag is defaulted to turn on, similiar to HIP HCC. Add AMD_OCL_OPT_FLUSH to use fence scope agent when possible for OpenCL. This was tested in Windows and PAL. Default is off. This flag can be used for future OpenCL test. Tests: 1. http://ocltc.amd.com:8111/viewModification.html?modId=127189&personal=true&tab=vcsModificationBuilds The teamcity test includes HIP - VDI - Rocm tests. 2. VEGA10 , Windows, HIP, 110 hiptests PASS. 3. VEGA10 , Linux AMDGPU PRO, HIP - PAL, 110 hiptests PASS. Newer: http://ocltc.amd.com:8111/viewModification.html?modId=127193&personal=true&tab=vcsModificationBuilds Reviewboard: http://ocltc.amd.com/reviews/r/18092/ Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.cpp#247 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#342 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.cpp#89 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocvirtual.hpp#29 edit ... //depot/stg/opencl/drivers/opencl/runtime/utils/flags.hpp#321 edit