Session
A Session
is the main object in a Lluvia application. It holds the references to the underlying device used for computation.
To see the available devices, run:
|
|
|
|
and the output can look like:
id: 7040 type: DiscreteGPU name: GeForce GTX 1080
id: 0 type: CPU name: llvmpipe (LLVM 12.0.0, 256 bits)
id: 1042 type: IntegratedGPU name: Intel(R) HD Graphics 4600 (HSW GT2)
To create a session:
|
|
|
|
Note
If no device is passed during the creation of aSession
, the default behavior is to select the first
device from the list of available ones.The enableDebug
flag enables the Vulkan validation layers for receiving messages about bad usage of the API. This can be useful while building your compute pipelines, but should be disabled in Production for reducing the communication overhead with the GPU.
Several object types are creating from a session, among the most important are:
graph Session --> Memory Session --> Program Session --> CommandBuffer Session --> Duration Session --> ComputeNode Session --> ContainerNode
What’s next
Check the Memory page to know about the different memory types in Lluvia.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified January 31, 2022: #112 enable selecting compute device (#113) (ea330e3)