PR #11398: [ROCm] Build fix
PR #11398: [ROCm] Build fix

Imported from GitHub PR https://github.com/openxla/xla/pull/11398

This contains two fixes:
* A compilation fix for stream_executor/rocm/rocm_executor.cc after it got broken by  the commit https://github.com/openxla/xla/commit/3c5cf0ac2adbc0a651d3a2ec822e47927218b153
* A workaround that allows static_assert(false) to be compiled with compilers not implementing https://cplusplus.github.io/CWG/issues/2518.html
Copybara import of the project:

--
5cdd25c3190140fec619073d25a20952fed2fd8b by Eugene Kuznetsov <eugene.kuznetsov@amd.com>:

Build fix

--
b86d12ff02a2a6247a7f991f77dfdafb08a79703 by Eugene Kuznetsov <eugene.kuznetsov@amd.com>:

Workaround for static_assert needed for some compilers
(https://cplusplus.github.io/CWG/issues/2518.html)

Merging this change closes #11398

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/11398 from ROCm:ci_rocm_fix_240410 b86d12ff02a2a6247a7f991f77dfdafb08a79703
