lluvia.core

copyright:

2018, Juan David Adarve Bermudez. See AUTHORS for more details.

license:

Apache-2 license, see LICENSE for more details.

core.getAvailableDevices()

Returns the list of available devices.

Returns

deviceslist of DeviceDescriptor

The list of DeviceDescriptor avaiable to create a session from.

See Also

createSession : Creates a new lluvia.Session object.

core.createSession(bool enableDebug=False, bool loadNodeLibrary=True, DeviceDescriptor device=None)

Creates a new lluvia.Session object.

Parameters

enableDebugbool defaults to False.

Whether or not to enable the debug extensions on the GPU device. When enabled, the vulkan VK_LAYER_KHRONOS_validation layer is activated, and messages about bad usage of the API will appear.

Disable debug for reducing overhead.

loadNodeLibrarybool defaults to True.

Whether or not the standard Lluvia node library embedded in the Python package should be loaded as part of the session creation.

devicell.DeviceDescriptor. Defaults to None.

The device used to create the session from. If None, the session will be created from the first device available in getAvailableDevices.

Returns

sessionSession.

New session.

See Also

getAvailableDevices : Returns the list of available devices.