Skip to content

Some simple programs to start with GPU computing with CUDA C

Notifications You must be signed in to change notification settings

giovixo/CUDA_get_start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains some basic example of CUDA C programs

References:

  • The book: CUDA BY EXAMPLE
  • nVidia on-line documentation

To compile from the command line, type:

nvcc -o filename filename.cu

To run:

./filename

Where filename is the name of the file.

Files:

  • hello_kernel.cu : Just call an empty kernel
  • simple_sum.cu : Simple sum
  • array_sum.cu : Sum two arrays
  • thrust_sum.cu : Simple sum example with thrust C++ template library
  • gpu_info.cu : Print the GPU infos

About

Some simple programs to start with GPU computing with CUDA C

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages