Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Allocate Memory VI

LabVIEW 2012 GPU Analysis Toolkit Help

Edition Date: June 2012

Part Number: 373575A-01

»View Product Info
Download Help (Windows Only)

Owning Palette: LVCUDA

Requires: GPU Analysis Toolkit

Acquires memory, in the form of a buffer, from the device.

You must manually select the polymorphic instance you want to use.

The connector pane displays the default data types for this polymorphic function.

Details  Example

CUDA Context in specifies the device context in which to allocate memory.
size in elements specifies the number of elements to allocate.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
CUDA Context out returns the device context with allocated memory.
CUDA U8 Device Ptr returns a class with access to the allocated memory. For example, wire this output to the dst in input on the Download Data VI to supply the allocated memory for the elements to update on the device.
error out contains error information. This output provides standard error out functionality.

Allocate Memory Details

For more information about this VI, refer to the Designing the Block Diagram to Compute on a GPU Device topic.

For more information about the CUDA API, refer to the NVIDIA GPU Computing Documentation website at nvidia.com and download the CUDA API Reference Manual.

Example

Refer to the Multi-channel FFT VI in the labview\examples\lvgpu\Multi-channel FFT directory for an example of using the Allocate Memory VI.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit