Repository navigation
Commit 91a3211
cuda.core: relax kw-only TypeError regex for Cython funcs (NVIDIA#2001)
Cython-generated functions raise
"FUNC() needs keyword-only argument stream"
while pure-Python functions raise
"FUNC() missing 1 required keyword-only argument: 'stream'"
The new tests for `Kernel.occupancy.max_potential_cluster_size`,
`Kernel.occupancy.max_active_clusters`, and `GraphicsResource.map`
were matching only the CPython phrasing and failed against the
Cython forms. Loosen the regex to `keyword-only argument`, which
matches both.
Co-authored-by: Cursor <[email protected]>1 parent 5fd0958 commit 91a3211
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
| 344 | + | |
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
491 | | - | |
| 491 | + | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
505 | | - | |
| 505 | + | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| |||
0 commit comments