Skip to content

Add NCCL GPU-to-GPU collective backend for multi-GPU CUDA DDP / FSDP #10

Open

Description

@voidstackloop

Summary

crates/oxideon-core/src/comm.rs provides ProcessGroup with TCP collectives (all_reduce, broadcast, all_gather, reduce_scatter), from_env(), async DDP gradient sync, and FullyShardedParam (FSDP).

For multi-GPU NVIDIA training, adding a dynamically loaded NCCL backend (libnccl.so.2 / nccl.dll, matching the zero-build-dependency dynamic loading approach used in cuda_driver.rs) will enable direct GPU-to-GPU NVLink / PCIe / RDMA collectives without bouncing gradients through host RAM.

Relevant Files

  • crates/oxideon-core/src/comm.rs
  • crates/oxideon-core/src/backend/cuda_driver.rs

Acceptance Criteria

  • Dynamically load ncclCommInitRank, ncclAllReduce, ncclBroadcast, ncclAllGather, ncclReduceScatter, and ncclCommDestroy.
  • Add a ProcessGroup::nccl(...) constructor and graceful fallback to TCP when NCCL is unavailable.
  • Add tests validating multi-stream / multi-GPU collective parity against the TCP backend.

Activity

  1. added
    enhancement
    help wanted
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions