Skip to main content
Enigma has two hard dependencies: a Python environment and Apple Metal build tools. Runtime execution requires an Apple Metal device (any Apple Silicon Mac).

Prerequisites

Python

Enigma requires Python 3.11 through Python 3.13.
Python distributions above 3.13 are not supported.

Xcode Command Line Tools

Enigma invokes xcrun metal and xcrun metallib directly during compilation. Install Xcode CLT if you have not already:
Verify the Metal compiler is reachable:
You should see a version line like Apple metal version 32023.155 (metalfe-32023.155). If this command fails, reinstall Xcode CLT before proceeding.

Install Enigma

From source

Verify the installation

Run this snippet. It traces a kernel, invokes the Metal compiler, and prints the compiled kernel name:
If this runs without errors, your toolchain is ready.

Runtime execution

Runtime execution additionally requires an Apple Metal device. If you are working in a headless CI environment, use the compile-only workflow instead.

Common setup issues