Supported backends
Transonic can use different tools to accelerate the code. We use the name backend.
The default backend is Pythran and currently, there are 3 other backends (“cython”, “numba” or “python”). The “python” backend is mainly used for internal testing.
There are different methods to choose which backend is used:
An environment variable
TRANSONIC_BACKEND(which has to be “pythran”, “cython”, “numba” or “python”) should be used to change the backend globally for one process.The
transoniccommand-line has an option-b(--backend).The functions
transonic.backends.make_backend_files()andtransonic.dist.init_transonic_extensions()have an optional argumentbackend. Note that these functions should be imported from thetransonic.distpackage.There are two functions
transonic.config.set_backend()andtransonic.backends.set_backend_for_this_module(). Note that these functions can be imported from thetransonicpackage.The
boostandjitdecorators have an optional argumentbackend.