Collective communication for Julia on CPUs and GPUs, built on UCC.
- One API for
Arrays andCuArrays: UCC picks the transport for each buffer. - Blocking and nonblocking (
I…) collectives, including persistent and CUDA-stream-triggered requests. - Bootstraps over MPI or any transport you plug in.
- Low-level bindings to the UCC C API in
UCC.LibUCC.
using Pkg
Pkg.add(url="https://github.com/JuliaLegate/UCC.jl")using MPI, UCC
MPI.Init()
ctx = UCC.Context(UCC.MPIOOB(MPI.COMM_WORLD))
team = UCC.Team(ctx)
x = fill(Float64(UCC.rank(team)), 4) # or a CuArray
UCC.Allreduce!(x, +, team)
UCC.destroy(team) # collective: all ranks
UCC.destroy(ctx)Run with mpiexec -n 4 julia --project script.jl.
See the documentation for all collectives, GPU usage and object lifetimes.