Python Primer for the Impatient
Python Primer
for the Impatient
Lua Primer for the Impatient
Lua Primer
for the Impatient
OpenGL interpolation qualifiers (GLSL)
OpenGL interpolation
qualifiers (GLSL)
GLSL Hacker - Pixel hacking with GLSL, Lua and Python under Windows, Linux and Mac OSX
GLSL Hacker 0.5.0
 
OpenGL 4 Tessellation on Mac OS X
OpenGL 4 Tessellation
on Mac OS X
GpuTest 0.4.0 - Cross Platform OpenGL Benchmark for Windows, OS X and Linux
GpuTest 0.4.0 for Windows
Mac OS X and Linux

Posts Tagged ‘cudaMemcpy’


Programming a Matrix Multiplication for GPUs with CUDA

Be the first to comment - What do you think?  Posted by JeGX - 2008/10/14 at 10:45

Categories: NVIDIA CUDA, Programming   Tags: , , , , , ,

CUDA makes it possible to program the GPU with the language C. This article will show you the steps to code a matrix multiplication routine in CUDA:

  • allocate memory on the GPU with cudaMalloc or cudaMallocPitch (for aligned memory allocation)
  • move data to the GPU with cudaMemcpy2D
  • select the kernel domain, write the kernel and run it
  • move results back from the GPU to the host with cudaMemcpy2D
  • free resources with cudaFree