transpile_stencil_kernel

Function transpile_stencil_kernel 

Source
pub fn transpile_stencil_kernel(
    func: &ItemFn,
    config: &StencilConfig,
) -> Result<String>
Expand description

Transpile a Rust stencil kernel function to CUDA C code.

This is the main entry point for code generation. It takes a parsed Rust function and stencil configuration, validates the DSL constraints, and generates equivalent CUDA C code.

§Arguments

  • func - The parsed Rust function (from syn)
  • config - Stencil kernel configuration

§Returns

The generated CUDA C source code as a string.