Tutorial Python 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. Both plain attribute and bundle attribute extraction are shown.
Installation#
To use this node enable omni.graph.tutorials in the Extension Manager.
Inputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Multiplier (inputs:multiplier) |
|
Amplitude of the expansion for the input points |
[1.0, 1.0, 1.0] |
Points (inputs:points) |
|
Array of points to be moved |
[] |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Out Bundle (outputs:outBundle) |
|
Bundle containing a copy of the output points |
None |
Points (outputs:points) |
|
Final positions of points |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.graph.tutorials.CudaCpuArraysPy |
Version |
1 |
Extension |
omni.graph.tutorials |
Icon |
ogn/icons/omni.graph.tutorials.CudaCpuArraysPy.svg |
Has State? |
False |
Implementation Language |
Python |
Default Memory Type |
cuda |
Generated Code Exclusions |
None |
__memoryType |
cuda |
uiName |
Tutorial Python Node: Attributes With CUDA Array Pointers In Cpu Memory |
Categories |
tutorials |
Generated Class Name |
OgnTutorialCudaDataCpuPyDatabase |
Python Module |
omni.graph.tutorials |
See the accompanying tutorial and annotated code at Tutorial 27 - GPU Data Node with CPU Array Pointers