(backend="cuda", is_entry=False)
| 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 | |
| 199 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected