nccl_mem_alloc

Function nccl_mem_alloc 

Source
pub unsafe fn nccl_mem_alloc(size: usize) -> Result<*mut c_void>
Expand description

2026-09-26: ncclMemAlloc: size bytes of device memory from NCCL’s allocator; nccl.h notes the allocation may be larger than requested.

§Safety

The returned pointer must be freed with nccl_mem_free.