Fix for SWDEV-220166 (#2387)
Fix for SWDEV-220166 (#2387)

* check for hcc
* add comment for ticket reference
* address PR comments

ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen,ROCmSoftwarePlatform/MIOpen