Skip to content

The introduction to cuda, a simple and easy cuda project

Notifications You must be signed in to change notification settings

xcyuyuyu/My-First-CUDA-Code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My-First-CUDA-Code

The introduction to cuda, a simple and easy cuda project

  1. run the C++ code on cpu
g++ add.cpp -o add
./add
  1. run the cuda code on gpu
nvcc add.cu -o add_cuda
./add_cuda
nvprof add_cuda # profile it
  1. run the cuda code on gpu with parallel
nvcc add_para.cu -o add_para
./add_para
nvprof add_para # profile it

About

The introduction to cuda, a simple and easy cuda project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published