PR #12979: [NVIDIA] Fix PGLE for latency estimation of p2p instructions
PR #12979: [NVIDIA] Fix PGLE for latency estimation of p2p instructions

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

PGLE doesn't recognize p2p instruction such as send or recv as async operations.
This adds the utility to check if instruction is a p2p communication instruction.
Copybara import of the project:

--
469b2d31ff6b0270dda28f8754462681514d0e04 by TJ Xu <tjx@nvidia.com>:

fix pgle not recognizing p2p instructions

Merging this change closes #12979

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/12979 from Tixxx:tixxx/pgle_send 469b2d31ff6b0270dda28f8754462681514d0e04
