PR #12050: [XLA:GPU] Force nccl command buffer to update even memory pointers do not change
PR #12050: [XLA:GPU] Force nccl command buffer to update even memory pointers do not change

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

This PR force command buffer to do cuda graph update if it contains nccl collective operators, because NCCL requires all devices to make the collective call even in the cuda-graph capturing mode.

Copybara import of the project:

--
1834ac6f72efa5882e58914f3001ac5cb7489725 by Shawn Wang <shawnw@nvidia.com>:

force nccl command buffer to update even if memory pointers do not change

Merging this change closes #12050

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/12050 from shawnwang18:shawnw/force_nccl_cmd_buffer_update 1834ac6f72efa5882e58914f3001ac5cb7489725
