transonic.aheadoftime¶
User runtime API for the ahead-of-time compilation¶
User API¶
-
transonic.aheadoftime.
boost
(obj=None, backend: str = None, inline=False, boundscheck=True, wraparound=True, cdivision=False, nonecheck=True, nogil=False)[source]¶ Decorator to declare that an object can be accelerated
- Parameters
- obj: a function, a method or a class
-
class
transonic.aheadoftime.
Transonic
(use_transonified=True, frame=None, reuse=True, backend=None)[source]¶ Bases:
object
Representation of a module using ahead-of-time transonic commands
- Parameters
- use_transonifiedbool (optional, default True)
If False, don’t use the pythranized versions at run time
- frameint (optional)
(Internal) Index (in
inspect.stack()
) of the frame to be selected- reusebool (optional, default True)
(Internal) If True, do not recreate an instance.
-
boost
(self, **kwargs)[source]¶ Universal decorator for AOT compilation
Used for functions, methods and classes.
Internal API¶
-
transonic.aheadoftime.
_get_transonic_calling_module
(backend_name: str = None, index_frame: int = 2)[source]¶ Get the Transonic instance corresponding to the calling module
- Parameters
- index_frameint
Index (in
inspect.stack()
) of the frame to be selected
-
class
transonic.aheadoftime.
CheckCompiling
(ts, func)[source]¶ Bases:
object
Check if the module is being compiled and replace the module and the function
Functions
|
Decorator to declare that an object can be accelerated |
|
Modify the class by replacing jit methods |
Classes
|
Check if the module is being compiled and replace the module and the function |
|
Representation of a module using ahead-of-time transonic commands |
|
Internal temporary class for JIT methods |
|
Internal temporary class for methods |