Install and configure
Transonic is a pure Python package and can be installed with
pip install transonic
In Conda environments, one can also use the equivalent commands with conda or mamba.
Transonic is sensible to environment variables:
TRANSONIC_DIRcan be set to control where the cached files are saved.TRANSONIC_DEBUGtriggers a verbose mode.TRANSONIC_COMPILE_AT_IMPORTcan be set to enable a mode for which Transonic compiles at import time the Pythran file associated with the imported module. This behavior can also be triggered programmatically by using the functionset_compile_at_import.TRANSONIC_NO_REPLACEcan be set to disable all code replacements. This is useful to compare execution times and when measuring code coverage.TRANSONIC_COMPILE_JITcan be set to false to disable the compilation of jited functions. This can be useful for unittests.TRANSONIC_BACKENDto choose between the supported backends. The default backend “pythran” is quite robust. There are now 3 other backends: “cython”, “numba” and “python” (prototypes).TRANSONIC_MPI_TIMEOUTsets the MPI timeout (default to 5 s).