Usage GuidesΒΆ

These pages provide an overview of how to use the pystencils Source File Generator. A basic understanding of pystencils is required.

Writing Generator Scripts

Learn about generator scripts, the primary usage idiom of pystencils-sfg: Embedd pystencils-generated kernels into C++ source files and augment them with arbitrary C++ glue code.

Generator Scripts
CLI and Build System Integration

Learn how to control code generation from the command line and how to embedd pystencils-sfg into your build system.

CLI and Build System
Tips and Tricks

A collection of various tricks that might come in handy when working with pystencils-sfg.

Tips and Tricks