Tuesday, March 15, 2016

Cuda Example Code: Fundamentals

In this example code, I demonstrate:

1) Parallel sum reduction
2) Parallel addition of a scalar across an array
3) GPU hardware query.
No header file needed.
Just compile with minimum archetecture specification of 30. Example: 
  nvcc example.cu - o example -arch=sm_30

git repo: https://github.com/jordanbonilla/Cuda-Example

Please feel free to ask questions or suggest improvements.