·
Last changedVersion:
This version passed the hardening gate. Hardening applied 9 targeted changes and preserved all other text. Classified findings before hardening: 1. Classified findings closed: 0. Classified findings remaining: 1. Unclassified scanner findings remaining: 0. Review findings closed: 8. Review findings remaining: 0.
1
1
Expand | File | Group | Subtype | Severity | Status |
|---|---|---|---|---|---|
SKILL.md | Tool & MCP Manipulation | MCP over-permissioning | Info | Open |
1 finding
Convert @ct.kernel Python kernels to Julia function ... end cuTile.jl kernels.
translations/workflow.mdCodegenErrors, MethodError, UndefVarError, numerical mismatch) → references/debugging.mdreferences/api-mapping.md + references/critical-rules.mdreferences/testing.mdJulia kernels are standalone — no Python bridge, no pytest integration. The Julia sub-project
lives in julia/ at the repo root with its own Project.toml for dependency management.
Ground-truth reference: Always consult julia/kernels/*.jl and julia/test/*.jl for patterns that compile and pass tests. These are the canonical examples of working cuTile.jl code.
julia/kernels/<op>.jl with cuTile.jl kernel + bridge function(s)translations/workflow.md Phase 2)references/api-mapping.md + references/critical-rules.md)julia/test/test_<op>.jl using Test stdlib + NNlib.jl for referenceinclude(...) in julia/test/runtests.jlpython <skill-dir>/scripts/validate_cutile_jl.py <file.jl> (it only reads the given Julia file and prints warnings or errors; it makes no network calls and writes no files)julia --project=julia/ julia/test/runtests.jlFull conversion checklist with post-conversion verification → translations/workflow.md
The most dangerous translation errors. Full rules (18 total) in references/critical-rules.md.
| # | Pitfall | One-line fix |
|---|---|---|
1 |
| Use |
2 |
| Use |
3 |
| Compiler bug — draft a minimal reproducer with no private code and give it to the user to review and file upstream |
4 | Launch arg order silently wrong |
|
5 |
| Python |
6 |
|
|
7 | Kept Python's | Reverse dims: Python row-major |
Side-by-side Python → Julia conversions matching the released Julia kernels in julia/kernels/. Each directory contains cutile_python.py (before) and cutile_julia.jl (after).
| # | Example | Key Patterns | When to Reference |
|---|---|---|---|
01 | 1D | Starting point; basic TMA + element-wise patterns | |
02 |
| MMA / tensor core operations | |
03 | Row-major | Large-tensor reduction patterns; any per-row Python kernel |
These match the released kernels in julia/kernels/ (add.jl, matmul.jl, softmax.jl). The examples are simplified teaching versions — always consult julia/kernels/*.jl for the canonical, tested implementations.
| Category | Document | Content |
|---|---|---|
Workflows | Full conversion workflow with todo list, validation loop, checklist | |
Rules | 18 Critical Rules for cuTile Python → Julia conversion | |
API | Python↔Julia bidirectional API mapping + kernel patterns | |
Testing | Julia-native test patterns, tolerances, failure diagnosis | |
Debugging | Julia-specific error diagnosis + IR debug commands | |
Scripts | Static validation for Julia anti-patterns (run it) | |
Ground Truth |
| Actual working implementations in the codebase |
Prerequisite — Julia: this skill requires the Julia version declared in julia/Project.toml under [compat] julia. If julia --version is missing or older than that, stop and ask the user to install or upgrade Julia from the official Julia site at https://julialang.org/install/ following the verified installer instructions for their OS. Installing or upgrading Julia is left to the user. Resume below only after the user confirms that julia --version is compatible.
Then, from the repo root:
Requirements:
julia/Project.toml under [compat] julia)tileiras artifacts itselfjulia/Project.toml (versions pinned in julia/Manifest.toml): cuTile.jl 1.x, CUDA.jl 6.3+, NNlib.jl, TestCUDA versions follow cuTile.jl and CUDA.jl upstream: use the CUDA.jl version cuTile.jl's compat
allows and the toolchain artifacts CUDA.jl selects by default. Do not pin a CUDA toolkit version
(e.g., via LocalPreferences.toml) in this repo.
Kernels are launched with @cuda backend=cuTile blocks=grid kernel(args...), which needs both
using cuTile: cuTile (for the backend=cuTile name) and import cuTile as ct (for the API) —
see julia/kernels/*.jl.
Get started with chainctlchainctl skill install public/nvidia/tilegym-converting-cutile-to-julia:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.chainreg.biz/public/github.com/nvidia/skills/tilegym-converting-cutile-to-julia:latest
Apache-2.0
BENCHMARK.md
HARDENING.md
SKILL.md
evals/evals.json
examples/01_add/cutile_julia.jl
examples/01_add/cutile_python.py
examples/02_matmul/cutile_julia.jl
examples/02_matmul/cutile_python.py
examples/03_softmax/cutile_julia.jl
examples/03_softmax/cutile_python.py
references/api-mapping.md
references/critical-rules.md
references/debugging.md
references/testing.md
scripts/validate_cutile_jl.py
skill-card.md
skill.oms.sig
translations/workflow.md