Skip to content
Discussion options

You must be logged in to vote

Hi Roeland,
You can use XLA communicator through FFI, though it would require to link statically with XLA since so far all primitives are defined there.

A small example you can find in collective_ops_ffi_test here: https://github.com/openxla/xla/blob/main/xla/backends/gpu/tests/collective_ops_ffi_test.cc#L313

This test runs a simple custom call implementation of all-reduce over 2 GPUs and uses XLA communicator.
The GpuDeviceCommunicator also can be passed to the kernel as an argument (see: https://github.com/openxla/xla/blob/main/xla/backends/gpu/tests/collective_ops_ffi_test.cc#L373). Having it you can use NCCL LSA API from kernel itself to perform device-side rendezvous: https://github.…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by therooler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants