SLI Zone
NVIDIA.com Developer Home

NVIDIA OpenCL SDK - Graphics Interop

The GPU Computing SDK provides examples with source code, utilities, and white papers to help you get started writing GPU Computing software. The full SDK includes dozens of code samples covering a wide range of applications.

Refer to the following README for related SDK information ( README )

The latest NVIDIA display drivers are required to run code samples. Please obtain the latest display driver here.

The NVIDIA CUDA Toolkit is required to compile code samples. Please obtain the CUDA Toolkit from CUDA Zone.

Select the category to view:

OpenCL Simple OpenGL Interop For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Simple program which demonstrates interoperability between OpenCL and OpenGL. The program modifies vertex positions with OpenCL and uses OpenGL to render the geometry.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)
Download - Linux/Mac


Simple OpenCL D3D10 Texture For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Simple program which demonstrates Direct3D10 texture interoperability with OpenCL. The program creates a number of D3D10 textures (2D, 3D, and CubeMap) which are written to from OpenCL kernels. Direct3D then renders the results on the screen.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)


Simple OpenCL D3D9 Texture For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Simple program which demonstrates Direct3D9 texture interoperability with OpenCL. The program creates a number of D3D9 textures (2D, 3D, and CubeMap) which are written to from OpenCL kernels. Direct3D then renders the results on the screen.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)


OpenCL Post-Process OpenGL-Rendered Image For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

This sample shows how to post-process an image rendered in OpenGL using OpenCL.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)
Download - Linux/Mac


OpenCL Particle Collision Simulation For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Simulation of elastic collisions of a large # of bodies. Implemented in OpenCL for CUDA GPU's.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)
Download - Linux/Mac


OpenCL N-Body Physics Simulation For a direct link to this sample, right-click and copy the URL (shortcut) of this link icon.

Gravitational Simulation of a large # of bodies. Implemented in OpenCL for CUDA GPU's.
  Minimum Required GPU
Minimum Required GPUor later
Minimum Required GPU




Download - Windows (x86)
Download - Windows (x64)
Download - Linux/Mac

Last Update: 9/9/2010
NVPerfHUD 4