Tutorial Python Node: CPU/GPU Bundles#
This is a tutorial node. It exercises functionality for accessing data in bundles that are on the GPU as well as bundles whose CPU/GPU location is decided at runtime. The compute looks for bundled attributes named ‘points’ and, if they are found, computes the dot products. If the bundle on the output contains an integer array type named ‘dotProducts’ then the results are placed there, otherwise a new attribute of that name and type is created on the output bundle to hold the results. This node is identical to OgnTutorialCpuGpuBundles.ogn, except is is implemented in Python.
Installation#
To use this Node, you must enable omni.graph.tutorials
in the Extension Manager.
Inputs#
Name |
Type |
Description |
Default |
---|---|---|---|
CPU Input Bundle (cpuBundle) |
|
Input bundle whose data always lives on the CPU |
|
GPU Input Bundle (gpuBundle) |
|
Input bundle whose data always lives on the GPU |
|
Results To GPU (gpu) |
|
If true then copy gpuBundle onto the output, otherwise copy cpuBundle |
Outputs#
Name |
Type |
Description |
Default |
---|---|---|---|
Constructed Bundle (cpuGpuBundle) |
|
This is the bundle with the merged data. If the ‘gpu’ attribute is set to true then this bundle’s contents will be entirely on the GPU, otherwise it will be on the CPU. |