LabVIEW GPU Analysis Toolkit API Reference

Table of Contents

Create Context VI

  • Updated2023-02-21
  • 2 minute(s) read

Create Context VI

Owning Palette: LVCUDA Driver API

Requires: GPU Analysis Toolkit

Generates a device context, or special execution environment, in which to perform operations on the device.

You must call the Initialize Device VI or the Initialize Library VI before calling this VI to create a context.

Details  

CUDA Device specifies the device that owns the context.
flags specifies the context properties.

0CU_CTX_SCHED_AUTO (default)
1CU_CTX_MAP_HOST
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.
error out contains error information. This output provides standard error out functionality.

Create Context Details

Use the LVCUDA Driver API VIs with the LVCUDA SDK VIs to build wrappers for custom GPU VIs.

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.

Log in to get a better experience