MCPcopy Create free account
hub / github.com/ByteDance-Seed/Triton-distributed / ll_kernel

Function ll_kernel

python/little_kernel/core/compile.py:195–205  ·  view source on GitHub ↗
(backend="cuda", is_entry=False)

Source from the content-addressed store, hash-verified

193 raise ValueError(f"launch_bounds max_threads must be positive, got {max_threads}")
194 if min_blocks is not None and min_blocks < 1:
195 raise ValueError(f"launch_bounds min_blocks must be >= 1, got {min_blocks}")
196 return (max_threads, min_blocks)
197
198
199class LLKernel:
200
201 def __init__(self, py_func, backend, is_entry, cluster_shape=None, cta_group_shape=None, no_alias=None,
202 read_only=None, min_blocks=None, launch_bounds=None, frontend=None):
203 self.py_func = py_func
204 self.frontend = frontend
205 self.ctx = py_func.__globals__.copy()
206 # Opt-in entry-kernel parameter annotations, consumed by CUDA codegen.
207 # no_alias: params emitted as "T* __restrict__" (caller-side legality
208 # precondition: the annotated pointers never alias each other or any

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected