OmniGraph Node omni.graph.tutorials.CpuGpuData

omni.graph.tutorials.CpuGpuData Properties

Name

Value

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

False

Implementation Language

C++

Default Memory Type

any

Generated Code Exclusions

None

uiName

Tutorial Node: Attributes With CPU/GPU Data

__memoryType

any

__categories

tutorials

Generated Class Name

OgnTutorialCpuGpuDataDatabase

Python Module

omni.graph.tutorials

omni.graph.tutorials.CpuGpuData Description

This is a tutorial node. It illustrates how to access data whose memory location, CPU or GPU, is determined at runtime in the compute method. The data types are the same as for the purely CPU and purely GPU tutorials, it is only the access method that changes. The input ‘is_gpu’ determines where the data of the other attributes can be accessed.

omni.graph.tutorials.CpuGpuData Inputs

Name

Type

Default

Required?

Descripton

inputs:a

float

0.0

Y

First value to be added in algorithm 1

__default

0.0

inputs:b

float

0.0

Y

Second value to be added in algorithm 1

__default

0.0

inputs:is_gpu

bool

False

Y

Runtime switch determining where the data for the other attributes lives.

__memoryType

cpu

__default

false

inputs:multiplier

float[3]

[1.0, 1.0, 1.0]

Y

Amplitude of the expansion for the input points in algorithm 2

__default

[1.0, 1.0, 1.0]

inputs:points

float[3][]

[]

Y

Points to be moved by algorithm 2

__default

[]

omni.graph.tutorials.CpuGpuData Outputs

Name

Type

Default

Required?

Descripton

outputs:points

float[3][]

None

Y

Final positions of points from algorithm 2

outputs:sum

float

None

Y

Sum of the two inputs from algorithm 1