CIRCT 24.0.0git
Loading...
Searching...
No Matches
esiaccel.accelerator.Context Class Reference
Collaboration diagram for esiaccel.accelerator.Context:

Public Member Functions

 __init__ (self, cpp.LogLevel log_level=cpp.LogLevel.Warning)
 set_stdio_logger (self, cpp.LogLevel level)
"AcceleratorConnection" connect (self, str platform, str connection_str)

Static Public Member Functions

"Context" default ()

Public Attributes

 cpp_ctxt = cpp.Context()

Static Protected Attributes

Optional _default = None

Detailed Description

A context for ESI accelerator connections. The underlying C++ context owns
everything assocated with it including types, accelerator connections, and
the accelerator facade/interface (aka Accelerator) itself. It must not be
garbage collected while any accelerators or connections that it owns are still
in use as they will be disconnected and destroyed when the context is
destroyed.

Definition at line 21 of file accelerator.py.

Constructor & Destructor Documentation

◆ __init__()

esiaccel.accelerator.Context.__init__ ( self,
cpp.LogLevel log_level = cpp.LogLevel.Warning )

Definition at line 31 of file accelerator.py.

Member Function Documentation

◆ connect()

"AcceleratorConnection" esiaccel.accelerator.Context.connect ( self,
str platform,
str connection_str )

Definition at line 44 of file accelerator.py.

References connect(), and cpp_ctxt.

Referenced by connect().

◆ default()

"Context" esiaccel.accelerator.Context.default ( )
static

Definition at line 36 of file accelerator.py.

◆ set_stdio_logger()

esiaccel.accelerator.Context.set_stdio_logger ( self,
cpp.LogLevel level )

Definition at line 41 of file accelerator.py.

References cpp_ctxt, and set_stdio_logger().

Referenced by set_stdio_logger().

Member Data Documentation

◆ _default

Optional esiaccel.accelerator.Context._default = None
staticprotected

Definition at line 29 of file accelerator.py.

◆ cpp_ctxt

esiaccel.accelerator.Context.cpp_ctxt = cpp.Context()

Definition at line 32 of file accelerator.py.

Referenced by connect(), and set_stdio_logger().


The documentation for this class was generated from the following file: