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

Get Data Properties 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 SDK

Requires: GPU Analysis Toolkit

Retrieves the raw device data and properties in the device data class. Wire data to the CUDA U8 Device Ptr in input to determine the polymorphic instance to use. You can wire a CUDA device pointer, CUDA context, CUFFT handle, or CUBLAS handle to this VI.

For more information about how to use the LVCUDA SDK and LVGPU SDK VIs, refer to the KnowledgeBase article Customizing GPU Computing Using the GPU Analysis Toolkit at ni.com.

Details  

Use the pull-down menu to select an instance of this VI.

Get Data Properties (Device Ptr:U8)

The connector pane displays the default data types for the Device Ptr instance of this polymorphic function.

CUDA U8 Device Ptr in specifies a device pointer class. 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
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
CUDA Context returns the device context class that creates the device pointer.
CUDA U8 Device Ptr out returns the device pointer class. This output returns the same data type that you wire to CUDA U8 Device Ptr in.
U8 * returns the device pointer. This input can return 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
dim returns the number of elements the device pointer allocates.
error out contains error information. This output provides standard error out functionality.

Get Data Properties (CUDA Context)

CUDA Context in specifies a device context class.
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 class.
CUcontext returns the CUDA context.
Is Primary? returns TRUE if the Initialize Device VI creates the context passed to CUcontext.
error out contains error information. This output provides standard error out functionality.

Get Data Properties (CUFFT Handle)

CUFFT Handle in specifies a CUFFT handle class.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
CUFFT Handle out returns the CUFFT handle class.
cufftHandle returns the CUFFT handle.
CUDA Context returns the device context class in which the CUFFT handle was created.
error out contains error information. This output provides standard error out functionality.

Get Data Properties (CUBLAS Handle)

CUBLAS Handle in specifies a CUBLAS handle class.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
CUBLAS Handle out returns a CUBLAS handle class.
cublasHandle_t returns the CUBLAS handle.
CUDA Context returns the device context class in which the CUBLAS handle was created.
error out contains error information. This output provides standard error out functionality.

Get Data Properties Details

The data value reference returned in the CUDA U8 Device Ptr out, CUDA Context out, CUFFT Handle out, or CUBLAS Handle out output stores the device data. Wire this output to a Data Value Reference Read / Write Element border node on an In Place Element structure, which locks the data value reference while you operate on the code inside the In Place Element structure. To unlock the device data, wire it to the Data Value Reference Write Element node. You can make the device data available to other processes by wiring the output of the Data Value Reference Write Element node to the Prepare Data for Unlock VI.


 

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