NVIDIA Optimus CUDA Developer Guide DG-06715-001_v9.0

NVIDIA guide for CUDA developers on Optimus platforms: querying CUDA devices, Direct3D/OpenGL interop, and Control Panel profiles.


NVIDIA Optimus CUDA Developer Guide DG-06715-001_v9.0 - cover page
Brand
Nvidia
Category
Programming
Document type
Programming Manual
Language
English
Pages
11
File format
PDF
File size
1.5 MB
Published
10 November, 2026
Updated
10 November, 2026
MD5 checksum
1C6391142D4D2A945F25B1314C75E18D

About this manual

This reference guide from NVIDIA explains how CUDA developers should query for GPU capabilities on systems that use NVIDIA Optimus technology. It describes how Optimus systems contain both an Intel integrated graphics processor (IGP) and an NVIDIA GPU, and how the driver decides whether an application runs on the GPU or the IGP, so that CUDA applications behave correctly on Optimus notebooks.

The guide covers querying for a CUDA device with and without graphics interoperability, including the CUDA runtime and driver API calls used and code samples for choosing the highest-performance CUDA-capable device. It also describes restrictions for Direct3D and OpenGL interoperability, plus the use of NVIDIA Control Panel application profiles and driver updates.

What's inside

  • Introduction to Optimus
  • CUDA Applications and Optimus
  • Querying for a CUDA Device
  • Applications without Graphics Interoperability
  • Applications with Graphics Interoperability
  • CUDA Support with DirectX Interoperability
  • CUDA Support with OpenGL Interoperability
  • Control Panel Settings and Driver Updates

Specifications

Optimus system hardwareAn Intel integrated graphics processor (IGP) plus an NVIDIA GPU
Display output handlingThe final image output to the display is handled by the Intel IGP
GPU output transfer busPCI-Express
CUDA device query APIscudaGetDeviceProperties (CUDA runtime API) and cuDeviceComputeCapability (CUDA Driver API)
Graphics interoperability APIsDirect3D and OpenGL

Frequently asked questions

How do I query for a CUDA device in an application without graphics interoperability?

Use the CUDA API functions cudaGetDeviceProperties (CUDA runtime API) and cuDeviceComputeCapability (CUDA Driver API). The CUDA Sample deviceQuery or deviceQueryDrv has more details.

Why does a CUDA application with Direct3D or OpenGL interop not work properly on an Optimus platform?

If the graphics context is created before any CUDA API calls, it may be created on the Intel IGP, which does not allow graphics interoperability with CUDA running on the NVIDIA GPU.

How can I make the Direct3D or OpenGL context always be created on the NVIDIA GPU?

Create an application profile in the NVIDIA Control Panel, so the context is always created on the NVIDIA GPU when the application is launched.

What display device does a CUDA application see on the LVDS panel of an Optimus notebook?

It would see the Intel graphics adapter as the primary display device, which is not capable of running CUDA, so the application should detect the second device, the NVIDIA GPU.

Download PDF (1.5 MB)

More Nvidia Manuals


View all Nvidia manuals →