Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 1.95 KB

runtime.md

File metadata and controls

15 lines (13 loc) · 1.95 KB

Runtimes

tinygrad supports various runtimes, enabling your code to scale across a wide range of devices. The default runtime can be automatically selected based on the available hardware, or you can force a specific runtime to be default using environment variables (e.g., CLANG=1).

Runtime Description Requirements
NV Provides acceleration for NVIDIA GPUs Ampere/Ada series GPUs
AMD Provides acceleration for AMD GPUs RDNA2/RDNA3 series GPUs
QCOM Provides acceleration for QCOM GPUs 6xx series GPUs
METAL Utilizes Metal for acceleration on Apple devices M1+ Macs; Metal 3.0+ for bfloat support
CUDA Utilizes CUDA for acceleration on NVIDIA GPUs NVIDIA GPU with CUDA support
GPU (OpenCL) Accelerates computations using OpenCL on GPUs OpenCL 2.0 compatible device
CLANG (C Code) Runs on CPU using the clang compiler clang compiler in system PATH
LLVM (LLVM IR) Runs on CPU using the LLVM compiler infrastructure llvm libraries installed and findable
WEBGPU Runs on GPU using the Dawn WebGPU engine (used in Google Chrome) Dawn library installed and findable. Download binaries here.