GT4Py (GridTools for Python) is a Python library for generating high-performance implementations of stencil kernels for weather and climate modeling from a domain-specific language (DSL). It supports multiple backends including numpy, CUDA, and DaCe. Currently at version 1.1.9, released irregularly (multiple minor releases per year). Requires Python >=3.10, <3.15.
pip install gt4pyVerified import paths — ran on the pinned version, not inferred.
Define a simple stencil that adds 1 to each element, compile it with the numpy backend, and execute.
Change backend from 'cuda' to 'gtcuda' or use Dace with CUDA backend 'dace:cuda'.
Remove redundant region syntax; ensure all regions are necessary.
Set environment variable GT4PY_CARTESIAN_ENABLE_OPENMP=0 if OpenMP is not available (e.g., on macOS with Apple Clang).
Set environment variable GT4PY_CARTESIAN_ENABLE_OPENMP=0 to disable OpenMP.
No dependency data recorded yet.