Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

English | 中文版

Appendix G: CANN 8.5 Kernel Coverage — 998 Kernels

This appendix documents the coverage of CANN 8.5 built-in kernels by the ascendc-to-rs transpiler.

  • 998 CANN kernel names are registered in this catalog from the CANN 8.5 operator library.
  • Kernels marked Transpiled (green) have correct AscendC C++ source (from the CANN SDK or an accurate generated stub) and a genuine Rust transpilation.
  • Kernels marked Registered (grey) are known operator names whose AscendC source is not yet available — they show a generic placeholder stub, not the real kernel logic.

G.1 Kernel Inventory by Category

CategoryTotalTranspilableDescription
ops_index114114Indexing (gather, scatter, sort, topk, …)
ops_legacy200200Element-wise unary/binary (exp, abs, add, mul, …)
ops_math120120Math functions (sin, cos, erf, atan, …)
ops_nn150150NN activations & norms (relu, gelu, layernorm, …)
ops_optimizer8282Optimizers (Adam, SGD, LAMB, …)
ops_reduce8080Reductions (sum, max, argmax, cumsum, …)
ops_resize5252Interpolation (bilinear, bicubic, nearest)
ops_transformer200200Attention, matmul, MHA, flash attention

G.2 Interactive Kernel Browser

Select a category and kernel to view the AscendC C++ source and transpiled Rust code. Click buttons to open in Playground.

998 kernels
← Select a kernel from the list

998 kernels cataloged. Green = transpiled, grey = registered (source pending).

Back to Chapter 9: Automated Transpilation