Tutorial Node: Attributes With CPU/GPU Data

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.

Installation

To use this Node, you must enable omni.graph.tutorials in the Extension Manager.

Inputs

Name

Type

Description

Default

is_gpu

bool

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

False

a

float

First value to be added in algorithm 1

0.0

b

float

Second value to be added in algorithm 1

0.0

points

float[3][]

Points to be moved by algorithm 2

[]

multiplier

float[3]

Amplitude of the expansion for the input points in algorithm 2

[1.0, 1.0, 1.0]

Outputs

Name

Type

Description

Default

sum

float

Sum of the two inputs from algorithm 1

points

float[3][]

Final positions of points from algorithm 2