IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Mojo struct

ncclDataType_t

struct ncclDataType_t

Data-type selector for NCCL/RCCL collective calls.

Wraps the ncclDataType_t C enum for the floating-point types supported by the collective bridge. Supported aliases: ncclFloat16, ncclFloat32, and ncclBfloat16.

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDeletable, Movable, RegisterPassable, TrivialRegisterPassable

comptime members​

ncclBfloat16​

comptime ncclBfloat16 = ncclDataType_t(Int(9))

ncclFloat16​

comptime ncclFloat16 = ncclDataType_t(Int(6))

ncclFloat32​

comptime ncclFloat32 = ncclDataType_t(Int(7))

Methods​

__init__​

def __init__(value: Int) -> Self

Was this page helpful?