Skip to content
JuliaLegatePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

UCC.jl

Documentation stable CI

Collective communication for Julia on CPUs and GPUs, built on UCC.

  • One API for Arrays and CuArrays: 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.

Installation

using Pkg
Pkg.add(url="https://github.com/JuliaLegate/UCC.jl")

Example

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages