Commit 337795f
Reject ndarray fields inside template-annotated struct params
Passing structs containing ndarrays through qd.template() bypasses
argument pruning — every ndarray field gets registered regardless of
whether the kernel uses it — and inflates the cached launch context,
causing a measured 42% launch overhead on real workloads. Raise a
clear QuadrantsCompilationError guiding users to use a concrete
dataclass type annotation instead.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent da5e8e0 commit 337795f
1 file changed
Lines changed: 11 additions & 0 deletions
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
223 | 234 | | |
224 | 235 | | |
225 | 236 | | |
| |||
0 commit comments