asc.experimental.asctile.static_print

asc.experimental.asctile.static_print(*values: Any, sep: str | None = None, end: str | None = None, **kwargs) → None

Print values during JIT compilation on the host.

Outputs values to the host console. Use this to trace compile-time constants and metadata.

Parameters:
  • *args – Values to print.

  • **kwargs – Forwarded to the built-in print().

Note

Always runs during compilation, regardless of the debug option. The built-in print() function does NOT dispatch to this function — it dispatches to device_print() instead. Use this function explicitly for compile-time output.

Examples

Log the configured tile size at compile time:

@asctile.jit
def kernel(TILE: asc.ConstExpr[int]):
    asctile.static_print("compiling kernel with TILE =", TILE)