Initialize 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

Sets each byte of each element in memory on the device. This VI sets each byte up to the number of elements provided.

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

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


CUDA U8 Device Ptr in specifies a class with access to allocated memory on the device. This input can contain the following data types:

  • 8-bit unsigned integers
  • 16-bit unsigned integers
  • 32-bit unsigned integers
  • 8-bit signed integers
  • 16-bit signed integers
  • 32-bit signed integers
  • Single-precision, floating-point numbers
  • Double-precision, floating-point numbers
  • Complex single-precision, floating-point numbers
  • Complex double-precision, floating-point
byte value specifies the initialization value. The default is 0.
elements specifies the number of elements to initialize. The default is 0.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
CUDA U8 Device Ptr out returns a class with access to initialized memory.
error out contains error information. This output provides standard error out functionality.

Initialize Memory Details

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


Not Helpful