PR #10050: [ROCm] Don't use dsabled nodes as command buffer barriers
PR #10050: [ROCm] Don't use dsabled nodes as command buffer barriers

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

Using disabled kernel node as a root of the graph may cause stream to desynchronize.
Copybara import of the project:

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

[ROCm] Don't use dsabled nodes as command buffer barriers

Using disabled kernel node as a root of the graph may cause
stream to desynchronize.

Merging this change closes #10050

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/10050 from ROCm:cmd_barrier d70da0531db5e9777765cceadb648c5a1c4e6309
