Disable custom MRA kernels for ROCm (#38738)
* Disable custom MRA kernels for ROCm
* Move platform check code to utils
* Ruff
* Ruff again
* Fix querying HIP version
* Revert some changes
* Add missing return statement
---------
Co-authored-by: ivarflakstad <69173633+ivarflakstad@users.noreply.github.com>