.. _omni_graph_tutorials_CpuGpuData_1:

.. _omni_graph_tutorials_CpuGpuData:

.. ================================================================================
.. THIS PAGE IS AUTO-GENERATED. DO NOT MANUALLY EDIT.
.. ================================================================================

:orphan:

.. meta::
    :title: Tutorial Node: Attributes With CPU/GPU Data
    :keywords: lang-en omnigraph node tutorials tutorials cpu-gpu-data


Tutorial Node: Attributes With CPU/GPU Data
===========================================

.. <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.

.. </description>


Installation
------------

To use this node enable :ref:`omni.graph.tutorials<ext_omni_graph_tutorials>` in the Extension Manager.


Inputs
------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "inputs:a", "``float``", "First value to be added in algorithm 1", "0.0"
    "inputs:b", "``float``", "Second value to be added in algorithm 1", "0.0"
    "inputs:is_gpu", "``bool``", "Runtime switch determining where the data for the other attributes lives.", "False"
    "inputs:multiplier", "``float[3]``", "Amplitude of the expansion for the input points in algorithm 2", "[1.0, 1.0, 1.0]"
    "inputs:points", "``float[3][]``", "Points to be moved by algorithm 2", "[]"


Outputs
-------
.. csv-table::
    :header: "Name", "Type", "Descripton", "Default"
    :widths: 20, 20, 50, 10

    "outputs:points", "``float[3][]``", "Final positions of points from algorithm 2", "None"
    "outputs:sum", "``float``", "Sum of the two inputs from algorithm 1", "None"


Metadata
--------
.. csv-table::
    :header: "Name", "Value"
    :widths: 30,70

    "Unique ID", "omni.graph.tutorials.CpuGpuData"
    "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"

