Skip to content

NCCL4Py v0.7.0 Release

Choose a tag to compare

@xiakun-lu xiakun-lu released this 02 Dec 21:02

Highlights

  • Refined the CuTe DSL device API with typed window pointers, explicit host-object conversion, and clearer barrier lifecycles.
  • Added CuTe DSL GIN signal actions, completion requests, and signal-shadow operations.
  • Added host APIs for socket encryption and custom GIN peer selection.

New Features

Host Configuration

  • Configure encryption for NCCL-owned TCP sockets. This requires a TLS-enabled NCCL build; configure the same pre-shared key in every process before creating an NCCL unique ID or communicator.

    APIs: NCCLEncryptionConfig, NcclEncryptionMode, set_encryption()

  • Select GIN peers by world rank instead of requiring full or strided connectivity. Each rank must list the other rank in the pair.

    APIs: NcclGinConnectionType.CUSTOM_ARRAY, NCCLDevCommRequirements.gin_custom_peers

CuTe DSL Device API

  • Use SymmetricPointer to address elements within a registered window. Convert host teams and resources explicitly with runtime.to_cute(). Host NCCLTeam objects require explicit conversion; device communicators, registered windows, and resource handles still support implicit conversion.

  • Attach remote signal or local counter actions to GIN operations, track signal progress, and wait for previously submitted work. Gin.wait_signal(), Gin.wait_counter(), Gin.flush(), and Gin.wait() now accept timeout_cycles. If a wait times out, the underlying operation may still be in progress.

    APIs:

    • GinSignalInc, GinSignalAdd, GinCounterInc
    • GinDescriptorSmem, GinOptFlag, GinSegmentType
    • Gin.flush_async(), GinRequest, Gin.wait()
    • Gin.increase_signal_shadow(), Gin.wait_signal_meet_shadow(), Gin.wait_signal_follow_shadow()
  • Use lsa_copy_tma() to copy contiguous elements to each rank in an LSA team. Both the kernel and libnccl_device.bc must target SM100 or later.

Examples and Documentation

  • Updated the CuTe DSL examples for the refined API, including GIN requests, signal shadows, host-object conversion, and TMA copies.

Breaking Changes

  • CuTe DSL cooperative-group factories now use Coop.thread(), Coop.warp(), Coop.cta(), and related class methods.
  • GIN transfers now use typed SymmetricPointer endpoints and action objects instead of the previous pointer and signal arguments.
  • Barrier sessions now use close() instead of destroy(). The previous barrier factories have been replaced by class methods on LsaBarrierSession, GinBarrierSession, and HybridBarrierSession.
  • Convert an NCCLTeam explicitly with runtime.to_cute() before passing it to a CuTe DSL kernel.

Fixes and Enhancements

  • Existing ranks can omit unique_id in Communicator.grow(); new ranks still need it.
  • Communicator.properties and Communicator.create_dev_comm() now report clear error message when the loaded NCCL library is older.

Compatibility Notes

  • The v0.7.0 host-side bindings and CuTe DSL API are generated from NCCL 2.32.7 headers. For CuTe DSL, use matching NCCL 2.32.7 libnccl.so and libnccl_device.bc; nccl4py does not verify the device IR version automatically.
  • CuTe DSL support requires nvidia-cutlass-dsl 4.8.
  • The EFA GDA backend does not support Gin.flush_async() requests. Use Gin.flush() instead.
  • The CuTe DSL device API remains experimental.