CuTe DSL version changes

قائمة التغييرات في CuTe DSL عند الترقية بين الإصدارات.

Use the CUTLASS CuTe DSL deprecation list when upgrading, migrating, or changing CuTe DSL code across versions. Applies to functions and APIs implemented under cutlass/python/CuTeDSL/cutlass/ and Python code using imports provided by the nvidia-cutlass-dsl PyPI distribution.

Skill · سكلpython

Install

npx skills add NVIDIA/skills --skill cute-dsl-deprecation-migration

Works with

claude-code (native), claude (native), codex (native), chatgpt (native), gemini-cli (native), cursor (native), copilot (native), opencode (native), amp (native), roo (native), kiro (native), goose (native), junie (native), trae (native), cline (compatible), continue (compatible), antigravity (compatible), windsurf (compatible), augment (compatible), qwen-code (compatible)

Content

CuTe DSL version changes

<!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. SPDX-License-Identifier: CC-BY-4.0 AND Apache-2.0 -->

CuTe DSL code means functions and APIs implemented under python/CuTeDSL/cutlass/ in the CUTLASS repository, or Python code using imports provided by the nvidia-cutlass-dsl distribution. Examples include import cutlass, import cutlass.cute as cute, and imports from its submodules. The distribution name is distinct from its Python import namespace; resolve ambiguous cutlass imports against the project's dependencies or source paths.

Deprecation source

Before changing CuTe DSL code across versions, read the deprecation policy and list. Use the official CUTLASS deprecation policy and list. If the user explicitly supplies a different deprecation policy or link, use that source instead.

Recognizing deprecated APIs

Use the policy and list selected under [Deprecation source](#deprecation-source) to identify named deprecations. Apply versioned announcements to the releases they cover. This includes soft or silent deprecations and APIs for which deprecation or removal has been explicitly announced as of the target release, even if the code still runs without a warning.

Check the scope of each deprecation before editing a kernel or its callers. Read the affected declaration’s docstring, decorators, alias definitions, and conditional warning or exception branches as needed. Trace decorator aliases, shared messages, and wrapper assignments when the affected use is unclear.

  • Callable or class. Note: a deprecation on a declaration affects uses through aliases and re-exports, including construction of a deprecated class. Check the full docstring for notices.
  • Import path. Note: a compatibility export can be deprecated while its target remains current.
  • Parameter or overload.
  • Accepted type or value.

Mechanical substitutions versus migrations that require behavioral reasoning

A substitution is mechanical when the documented mapping and the old API use fully determine the edit. For example, every cute.arch.exp(x) maps to cute.math.exp(x, fastmath=True).

A migration requires behavioral reasoning when the correct edit depends on a fact about program execution, such as which warps participate in a barrier or what a count measures. Establish that fact from the surrounding code, then apply the change that preserves the required behavior. Add a brief comment beside each such edit identifying it as a functional change made by the cute-dsl-deprecation-migration skill. State what changed and the specific assumption the user should verify. For example:

# Functional change by cute-dsl-deprecation-migration: count one barrier arrival per warp.
# Verify that all four consumer warps participate.

Consult the examples and guidance under [Deprecation source](#deprecation-source) to determine whether a change is mechanical or behavioral.

Apply version-aware changes

  1. Determine the current version, target version, and required compatibility range from the request and project dependencies. Ask for missing version information when it affects which replacement is valid.
  2. Check affected imports and calls against the selected list and follow its applicable replacement guidance. Use version-matched release notes, source, and API documentation to resolve gaps. Verify that each replacement import resolves and that the actual call works across the full required range, including positional and keyword arguments, accepted values, and behavior the caller relies on.
  3. Update affected imports, aliases, and qualified call sites within the requested scope. Use canonical APIs and avoid deprecated compatibility aliases, shims, wrappers, and re-export paths. Where the list gives no replacement, preserve the intended behavior using supported operations. If no migration preserves both behavior and the required version range, explain the conflict and ask which constraint can change.
  4. Run relevant available checks for the affected code, including compilation or execution when the environment supports it. Report the migrations made, version assumptions, validation results, and any checks blocked by missing GPU or software dependencies.

Source and license

Source
NVIDIA Skills
Original
NVIDIA/skills/skills/cute-dsl-deprecation-migration/SKILL.md
License
CC-BY-4.0