Triton兼容性 (v1.4)

Updated at:
Copy as MD

Triton is a programming language from OpenAI for parallel computing. It supports both online and offline operator compilation and execution and is widely used in various AI frameworks. On the PPU platform, the PPU software team maintains a Triton backend that stays in sync with official OpenAI releases. You must identify the Triton version that your AI framework requires. The following versions are supported:

  • release 2.0.x

  • release 2.1.x

  • release 2.2.x

  • release 2.3.x

  • release 3.0.x (built into the AI container image)

We recommend using SDK version 1.3 or later.

Programming reference

For details about programming with Triton, refer to the official Triton website at https://triton-lang.org/main/index.html. The PPU version of Triton offers the same features as the official release.

Development tips

  1. The default Triton cache directory is ~/.triton/cache. You can change this path by setting the TRITON_CACHE_DIR environment variable.

  2. The MLIR_ENABLE_DUMP environment variable is set to 0 by default. Set it to 1 to print the complete MLIR lowering and optimization process during jit execution.

  3. If you encounter a compilation issue while developing a Triton operator, first try to reproduce the issue in an NVIDIA environment. If the problem persists, report a bug to the PPU software team.