OpenGL Geometry Instancing Test: Radeon vs GeForce
Geometry Instancing
Radeon vs GeForce
(Test) Particle Rendering: Point Sprites vs Geometry Instancing based Billboards
Point Sprites vs
Geometry Instancing
MSI Kombustor
MSI Kombustor v3.5.0
and v2.5.8
Samsung SSD 850 PRO 512GB Quick Review
Samsung SSD 850 PRO
512GB Quick Test
ASUS N550JK Notebook PC Review (with GeForce GTX 850M)
ASUS N550JK Notebook
Review
GIGABYTE BRIX GTX 760 Compact Gaming PC Kit Review (GB-BXi5G-760)
GIGABYTE BRIX GTX 760
Review

Posts Tagged ‘cudaFree’


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