Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Converts cuTile Python @ct.kernel GPU kernels to Julia cuTile.jl kernels, handling indexing, layout, broadcasting and launch API changes.
Use this skill ↓41% 86%+45 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 9 of 22 without it.
3 of 3 safety checks passed
Not used yet
| Error | Cause | Fix |
|---|---|---|
IRError: Unsupported function call: max | max(a, b) on two tiles (non-broadcast) | Use max.(a, b) — broadcast dot syntax (same as regular Julia arrays) |
IRError: Unsupported function call: min | Same as above for min | Use min.(a, b) |
IRError or MethodError mentioning IRStructurizer | Internal compiler bug | Do not work around — write a minimal reproducer and file upstream |
TypeError: in typeassert, expected Tile{...}, got Tile{...} | Type mismatch in tile operation | Check convert(ct.Tile{T}, tile) calls |
BoundsError at launch | Wrong number of args to ct.launch | Verify arg count matches kernel signature exactly |
UndefVarError: X not defined | Variable only defined in one if branch | Pre-define variable before the if/else |
UndefVarError: rsqrt not defined in Main | rsqrt used without import cuTile as ct | Ensure import cuTile as ct is present; then use rsqrt.(tile) or map(ct.rsqrt, tile) |
| Error | Cause | Fix |
|---|---|---|
| Wrong numerical results, correct shapes | ct.launch arg order doesn't match kernel signature | Args are positional — verify order |
| Correct for first tile, wrong for subsequent tiles in loop | ct.load with order parameter has index positions not matching the remapped dimensions | order remaps BOTH shape AND index — see Critical Rule 16 |
| Wrong results at boundaries | Padding mode wrong or missing | Add ; padding_mode=ct.PaddingMode.Zero |
| Off-by-one errors | 0-based index not converted to 1-based | Check ct.bid, dims, ct.num_tiles axis, permutedims axes |
| Silent wrong results | Column-major vs row-major mismatch | For 3D+ arrays, consider transposing layout |
CUDA error: illegal memory access | Index out of bounds in gather/scatter | Check index computation and bounds |
| Stale compilation cache | Old kernel cached after editing .jl file | rm -rf ~/.julia/compiled/cuTile* to force recompilation |
For common test failure patterns with symptoms and fixes, see testing.md § Common Test Failure Patterns.
# Run all Julia tests
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.