Environment variablesReference pages
Reference
Environment variables
The environment variables that Enceladus reads. It reads most of them each time it compiles or launches a kernel, so you can also set them through os.environ in your program.
Variables
| Variable | Effect |
|---|---|
ENCELADUS_INTERPRET=1 | Runs kernels in the NumPy interpreter on the CPU. |
ENCELADUS_DEBUG=1 | Compiles tl.device_assert checks. It's part of the specialization, so changing it recompiles. |
ENCELADUS_DUMP=1 | Writes each compiled kernel's IR, MSL, and meta.json to its cache entry and prints the path. |
ENCELADUS_CACHE_DIR | Moves the disk cache from ~/.cache/enceladus. |
ENCELADUS_ALWAYS_COMPILE=1 | Ignores the disk cache and saved autotuning results. |
ENCELADUS_OVERRIDE_DIR | Loads DIR/KERNEL_NAME.metal instead of the generated MSL. |
ENCELADUS_VERIFY | Controls the compiler's checks on interpreted launches: unset warns about kernels that compiled mode refuses, 1 raises the error, and 0 skips the check. 1 also verifies the IR after every compiler pass. |
ENCELADUS_PRINT_AUTOTUNING=1 | Prints each autotuning winner as a pasteable enceladus.Config(...). |
ENCELADUS_FLUSH_EVERY | Sets the number of launches per command buffer. The default is 64. |
MTL_CAPTURE_ENABLED=1 | A Metal variable that enceladus.capture needs at process start. |
Enceladus reads ENCELADUS_FLUSH_EVERY once, when it creates the device. Metal reads MTL_CAPTURE_ENABLED only at process start, so set it in the shell. For how to use these variables while you debug, see Debugging.