PR #11458: [ROCm] Build fixes
PR #11458: [ROCm] Build fixes

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

Contains fix for compile failure after e21311e52a0be80042d4c807847ec17919f2f954
Contains fix for link failure after 596745eca6b9fb1553ee71b63c71e92527f1d7f4
Copybara import of the project:

--
b253cbac2da4515ff4437b820f37a2b097a287c1 by Dragan Mladjenovic <Dragan.Mladjenovic@amd.com>:

[ROCm] Build fixes

Contains fix for compile failure after e21311e52a0be80042d4c807847ec17919f2f954
Contains fix for link failure after 596745eca6b9fb1553ee71b63c71e92527f1d7f4

Merging this change closes #11458

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/11458 from ROCm:build_fix_11042024 b253cbac2da4515ff4437b820f37a2b097a287c1
