OmniGraph Node omni.graph.tutorials.CpuGpuBundlesPy

omni.graph.tutorials.CpuGpuBundlesPy Properties

Name

Value

Version

1

Extension

omni.graph.tutorials

Icon

ogn/icons/omni.graph.tutorials.CpuGpuBundlesPy.svg

Has State?

False

Implementation Language

Python

Default Memory Type

cpu

Generated Code Exclusions

None

tags

tutorial,bundle,gpu

uiName

Tutorial Python Node: CPU/GPU Bundles

__tokens

[“points”, “dotProducts”]

__categories

tutorials

__language

Python

Generated Class Name

OgnTutorialCpuGpuBundlesPyDatabase

Python Module

omni.graph.tutorials

omni.graph.tutorials.CpuGpuBundlesPy 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 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.

omni.graph.tutorials.CpuGpuBundlesPy 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.CpuGpuBundlesPy 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 it will be on the CPU.

uiName

Constructed Bundle

__memoryType

any