Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python/tvm/meta_schedule/schedule_rule/auto_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,21 @@ class AutoBind(ScheduleRule):
The maximum number of threadblock on GPU.
thread_extents: Optional[List[int]]
Candidates of thread axis extent.
max_threads_per_block: int
The maximum number of threads per block, if it is known when this schedule rule is created.
"""

def __init__(
self,
max_threadblocks: int = 256,
thread_extents: Optional[List[int]] = None,
max_threads_per_block: int = -1,
) -> None:
if thread_extents is None:
thread_extents = [32, 64, 128, 256, 512, 1024]
self.__init_handle_by_constructor__(
_ffi_api.ScheduleRuleAutoBind, # type: ignore # pylint: disable=no-member
max_threadblocks,
thread_extents,
max_threads_per_block,
)