dsl-lowering

Translate DSL operator descriptions into AscendC code via a four-pass lowering workflow.

33|51|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/Just-it/AscendOpGenAgent --skill dsl-lowering
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dsl-lowering
Source: https://github.com/Just-it/AscendOpGenAgent/tree/main/skills/dsl_lowering
Command: npx skills add https://github.com/Just-it/AscendOpGenAgent --skill dsl-lowering

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translate a DSL-based operator description into AscendC code through a four-pass lowering workflow that enables automated code generation and integration with existing ASCEND C APIs.

Core Features & Use Cases

  • Four-pass lowering: tiling_pass, init_pass, process_pass, and nonaligned_pass to transform the operator DSL into AscendC kernel code.
  • Sub-agent orchestration with autonomous error recovery and up to three repair attempts per pass.
  • Reference-guided templates and error-correction guidance to repair compilation or runtime issues during the transformation.

Quick Start

Run the DSL lowering workflow on a sample DSL kernel to generate an AscendC implementation and automatically repair errors as needed.

Frequently Asked Questions about dsl-lowering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert DSL operator descriptions into AscendC code?

You can automate DSL lowering to AscendC by running a four-pass workflow that translates operator descriptions through tiling_pass, init_pass, process_pass, and nonaligned_pass to generate kernel code.

What is the AscendC DSL lowering workflow?

DSL lowering is a four-pass code generation process that transforms DSL-based operator descriptions into AscendC kernel code using tiling_pass, init_pass, process_pass, and nonaligned_pass execution stages.

How does automated error recovery work during AscendC code generation?

Automated error recovery uses sub-agent orchestration to repair compilation or runtime issues during DSL lowering, applying reference-guided templates and error-correction guidance with up to three repair attempts per pass.

Can I automatically repair compilation errors when translating DSL to AscendC?

Yes, the DSL lowering workflow autonomously repairs compilation and runtime issues during the translation process, using reference-guided error-correction guidance to attempt up to three fixes per pass.

What are the limitations of automated DSL lowering for AscendC kernels?

The main limitation is that error recovery is capped at three repair attempts per pass, meaning complex compilation or runtime issues in the DSL to AscendC translation may require manual intervention.

Do I need existing AscendC APIs to use the DSL lowering workflow?

Yes, the DSL lowering workflow is designed to generate AscendC code that integrates with existing AscendC APIs, requiring a valid DSL-based operator description as input for the automated four-pass transformation.