OmniGraph Node omni.graph.tutorials.CpuGpuExtended

omni.graph.tutorials.CpuGpuExtended Properties

Name

Value

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

False

Implementation Language

C++

Default Memory Type

cpu

Generated Code Exclusions

None

tags

tutorial,extended,gpu

uiName

Tutorial Node: CPU/GPU Extended Attributes

__categories

tutorials

Generated Class Name

OgnTutorialCpuGpuExtendedDatabase

Python Module

omni.graph.tutorials

omni.graph.tutorials.CpuGpuExtended Description

This is a tutorial node. It exercises functionality for accessing data in extended attributes that are on the GPU as well as those whose CPU/GPU location is decided at runtime. The compute adds the two inputs ‘gpuData’ and ‘cpuData’ together, placing the result in cpuGpuSum, whose memory location is determined by the ‘gpu’ flag. This node is identical to OgnTutorialCpuGpuExtendedPy.ogn, except is is implemented in C++.

omni.graph.tutorials.CpuGpuExtended Inputs

Name

Type

Default

Required?

Descripton

inputs:cpuData

any

None

Y

Input attribute whose data always lives on the CPU

uiName

CPU Input Attribute

inputs:gpu

bool

False

Y

If true then put the sum on the GPU, otherwise put it on the CPU

uiName

Results To GPU

inputs:gpuData

any

None

Y

Input attribute whose data always lives on the GPU

uiName

GPU Input Attribute

__memoryType

cuda

omni.graph.tutorials.CpuGpuExtended Outputs

Name

Type

Default

Required?

Descripton

outputs:cpuGpuSum

any

None

Y

This is the attribute with the selected data. If the ‘gpu’ attribute is set to true then this attribute’s contents will be entirely on the GPU, otherwise it will be on the CPU.

uiName

Sum

__memoryType

any