triton — Easy Examples
OpenAI Triton: write custom GPU kernels in Python
Getting started with triton
Installation and basic usage of triton.
python
# Install: pip install triton import triton # Basic triton usage print(f"Using triton") # See documentation for detailed examples
Expected Output
# Expected output shown below # (Run locally with: triton)
triton is a third-party package. OpenAI Triton: write custom GPU kernels in Python. Install with: pip install triton
Common triton operations
Frequently used features of triton.
python
# Install: pip install triton import triton # Common triton patterns print(f"triton version: {triton.__version__}")
These are the most commonly used features of triton in everyday development.
Want to try these examples interactively?
Open Easy Playground