Refactor GLOBAL_OFFSET to handle first summation dim correctly.
Refactor GLOBAL_OFFSET to handle first summation dim correctly.

ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile,ROCmSoftwarePlatform/Tensile