Repository navigation
NCCL4Py v0.7.0 Release
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
SymmetricPointerto address elements within a registered window. Convert host teams and resources explicitly withruntime.to_cute(). HostNCCLTeamobjects 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(), andGin.wait()now accepttimeout_cycles. If a wait times out, the underlying operation may still be in progress.APIs:
GinSignalInc,GinSignalAdd,GinCounterIncGinDescriptorSmem,GinOptFlag,GinSegmentTypeGin.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 andlibnccl_device.bcmust 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
SymmetricPointerendpoints and action objects instead of the previous pointer and signal arguments. - Barrier sessions now use
close()instead ofdestroy(). The previous barrier factories have been replaced by class methods onLsaBarrierSession,GinBarrierSession, andHybridBarrierSession. - Convert an
NCCLTeamexplicitly withruntime.to_cute()before passing it to a CuTe DSL kernel.
Fixes and Enhancements
- Existing ranks can omit
unique_idinCommunicator.grow(); new ranks still need it. Communicator.propertiesandCommunicator.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.soandlibnccl_device.bc; nccl4py does not verify the device IR version automatically. - CuTe DSL support requires
nvidia-cutlass-dsl4.8. - The EFA GDA backend does not support
Gin.flush_async()requests. UseGin.flush()instead. - The CuTe DSL device API remains experimental.