Enceladus v0.1.0 · alpha
Environment variablesReference pages
Language builtinsHost APIData types and tilesEnvironment variables

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

VariableEffect
ENCELADUS_INTERPRET=1Runs kernels in the NumPy interpreter on the CPU.
ENCELADUS_DEBUG=1Compiles tl.device_assert checks. It's part of the specialization, so changing it recompiles.
ENCELADUS_DUMP=1Writes each compiled kernel's IR, MSL, and meta.json to its cache entry and prints the path.
ENCELADUS_CACHE_DIRMoves the disk cache from ~/.cache/enceladus.
ENCELADUS_ALWAYS_COMPILE=1Ignores the disk cache and saved autotuning results.
ENCELADUS_OVERRIDE_DIRLoads DIR/KERNEL_NAME.metal instead of the generated MSL.
ENCELADUS_VERIFYControls 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=1Prints each autotuning winner as a pasteable enceladus.Config(...).
ENCELADUS_FLUSH_EVERYSets the number of launches per command buffer. The default is 64.
MTL_CAPTURE_ENABLED=1A 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.