Tutorial Node: Attributes With CUDA Array Pointers In Cpu Memory#

This is a tutorial node. It illustrates the alternative method of extracting pointers to GPU array data in which the pointer returned is a CPU pointer and can be dereferenced on the CPU side. Without the cudaPointers value set that pointer would be a GPU pointer to an array of GPU pointers and could only be dereferenced on the device.

Installation#

To use this node enable omni.graph.tutorials in the Extension Manager.

Inputs#

Name

Type

Descripton

Default

Multiplier (inputs:multiplier)

float[3]

Amplitude of the expansion for the input points

[1.0, 1.0, 1.0]

Points (inputs:points)

float[3][]

Array of points to be moved

[]

Outputs#

Name

Type

Descripton

Default

Points (outputs:points)

float[3][]

Final positions of points

None

Metadata#

Name

Value

Unique ID

omni.graph.tutorials.CudaCpuArrays

Version

1

Extension

omni.graph.tutorials

Icon

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

Has State?

False

Implementation Language

C++

Default Memory Type

cuda

Generated Code Exclusions

None

uiName

Tutorial Node: Attributes With CUDA Array Pointers In Cpu Memory

__memoryType

cuda

Categories

tutorials

Generated Class Name

OgnTutorialCudaDataCpuDatabase

Python Module

omni.graph.tutorials

See the accompanying tutorial and annotated code at Tutorial 27 - GPU Data Node with CPU Array Pointers