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.
If no matching config is found then falls back to default configs (encoded with ngpus=-1 and num_bytes=-1)
Returns:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!