Skip to main content

Mojo function

dispatch_max_num_blocks

dispatch_max_num_blocks[ngpus: Int, sm_version: StringSlice[StaticConstantOrigin], tuning_table: Table[CommTuningConfig]](num_bytes: Int) -> Int

This function searches for tuning configs with matching sm_version and ngpus. If such configs are found, then the search continues for finding the config x where num_bytes <= x.num_bytes.

Falls back to the arch-specific default (ngpus=-1, num_bytes=-1, matching sm_version), or if none exists, to the global default (ngpus=-1, num_bytes=-1, sm_version="default").

Returns:

Int

Was this page helpful?