OmniGraph Node omni.graph.tutorials.CpuGpuBundles¶
omni.graph.tutorials.CpuGpuBundles Properties¶
Name |
Value |
---|---|
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.CpuGpuBundles.svg |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
tags |
tutorial,bundle,gpu |
uiName |
Tutorial Node: CPU/GPU Bundles |
__tokens |
[“points”, “dotProducts”] |
__categories |
tutorials |
Generated Class Name |
OgnTutorialCpuGpuBundlesDatabase |
Python Module |
omni.graph.tutorials |
omni.graph.tutorials.CpuGpuBundles Description¶
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 their 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 OgnTutorialCpuGpuBundlesPy.ogn, except it is implemented in C++.
omni.graph.tutorials.CpuGpuBundles Inputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
inputs:cpuBundle |
bundle |
None |
Y |
Input bundle whose data always lives on the CPU |
uiName |
CPU Input Bundle |
|||
inputs:gpu |
bool |
False |
Y |
If true then copy gpuBundle onto the output, otherwise copy cpuBundle |
uiName |
Results To GPU |
|||
inputs:gpuBundle |
bundle |
None |
Y |
Input bundle whose data always lives on the GPU |
uiName |
GPU Input Bundle |
|||
__memoryType |
cuda |
omni.graph.tutorials.CpuGpuBundles Outputs¶
Name |
Type |
Default |
Required? |
Descripton |
---|---|---|---|---|
outputs:cpuGpuBundle |
bundle |
None |
Y |
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 they will be on the CPU. |
uiName |
Constructed Bundle |
|||
__memoryType |
any |