CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Protected Attributes | List of all members
esiaccel.accelerator.Context Class Reference
Collaboration diagram for esiaccel.accelerator.Context:
Collaboration graph
[legend]

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
 

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 
)

Member Function Documentation

◆ connect()

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

◆ 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 
)

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

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