Fri, February 19, 2010, 04:00 PM under ParallelComputing
In my previous blog post I introduced the concept of GPGPU
On Windows, there is already a cross-GPU-vendor way of programming GPUs and that is the Direct X API. Specifically, on Windows Vista and Windows 7, the DirectX 11 API offers a dedicated subset of the API for GPGPU programming: DirectCompute. You use this API on the CPU side, to set up and execute the kernels on the GPU. The kernels are written in a language called HLSL (High Level Shader Language). You can use DirectCompute with HLSL to write a "compute shader", which is the term DirectX uses for what I've been referring to in this post as "kernel".
In this post I want to share some links to get you started with DirectCompute and HLSL.1.
Watch the recording of the PDC 09 session: DirectX11 DirectCompute
If session recordings is your thing there are two more on DirectCompute from nvidia's GTC09 conference 1015
) and 1411
plus the presenter's written version of the session
Over at gamedev there is an old Compute Shader tutorial
. At the same site, there is a 3-part blog post on Compute Shader: Introduction
From PDC, you can also download the DirectCompute Hands On Lab
When you are ready to get your hands even dirtier, download the latest Windows DirectX SDK
(at the time of writing the latest is dated Feb 2010).6.
Within the SDK you'll find a Compute Shader Overview
and samples such as: Basic
, HDR Tone Mapping
Talking of DX11/DirectCompute samples, there are also a couple of good ones on this URL
The documentation of the various APIs is available online. Here are just some good (but far from complete) taster entry points into that: numthreads