![]() |
COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
|
Python class for wrapping a CarmaContext. More...
Public Member Functions | |
def | __init__ (self, devices=None) |
Initializes a Context object. More... | |
def | getActiveDevice (self) |
Return the index of the current active device. More... | |
def | setActiveDevice (self, int index) |
Set the device index as the active device. More... | |
def | enableTensorCores (self) |
Enable the tensor cores math mode. More... | |
def | disableTensorCores (self) |
Disable the tensor cores math mode. More... | |
Public Attributes | |
context | |
devices | |
Python class for wrapping a CarmaContext.
Definition at line 45 of file context.py.
def naga.context.Context.__init__ | ( | self, | |
devices = None |
|||
) |
Initializes a Context object.
Parameters ------------
devices (list): (optionnal) list of devices to use. Default is 0
Definition at line 53 of file context.py.
def naga.context.Context.disableTensorCores | ( | self | ) |
Disable the tensor cores math mode.
Definition at line 81 of file context.py.
def naga.context.Context.enableTensorCores | ( | self | ) |
Enable the tensor cores math mode.
Definition at line 77 of file context.py.
def naga.context.Context.getActiveDevice | ( | self | ) |
Return the index of the current active device.
Definition at line 66 of file context.py.
def naga.context.Context.setActiveDevice | ( | self, | |
int | index | ||
) |
naga.context.Context.context |
Definition at line 55 of file context.py.
naga.context.Context.devices |
Definition at line 56 of file context.py.