For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
DefaultCommTuningConfig
struct DefaultCommTuningConfig
Parameters: ngpus: Number of GPUs for running allreduce. num_bytes: Total number of input bytes supported by the config. sm_version: SM version (as string). num_blocks: Number of thread blocks for running allreduce.
Fields
- ngpus (
Int): - num_bytes (
Int): - sm_version (
StaticString): - num_blocks (
Int):
Implemented traits
AnyType,
CommTuningConfig,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable,
TuningConfig,
Writable
Methods
get_num_blocks
get_num_bytes
get_sm_version
def get_sm_version(self) -> StaticString
Returns:
StaticString
get_ngpus
write_to
def write_to(self, mut writer: T)
Writes the tuning config as a string.
Args:
- writer (
T): The writer to write to.