Commit 65519ec
Fix @device_code_tiled for kernels with Constant arguments
The compile_hook in emit_ir passed unwrapped types to code_tiled
because launch does MI lookup with Constant stripped to its element
type. This caused @device_code_tiled to fail with "Unsupported Julia
type for Tile IR" for any kernel using Constant args (including the
tiled broadcast kernels).
Reconstruct Constant{T,V} types from const_argtypes in the hook so
code_tiled can recover const-seeded arguments.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 3b1300a commit 65519ec
1 file changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
380 | 382 | | |
381 | 383 | | |
382 | 384 | | |
383 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
384 | 396 | | |
385 | 397 | | |
386 | 398 | | |
| |||
0 commit comments