1. 程式人生 > >GPU高效能程式設計CUDA實戰-程式碼

GPU高效能程式設計CUDA實戰-程式碼

《GPU高效能程式設計CUDA實戰》是一本非常好的CUDA入門書,其提供的程式碼對初學者也非常有用。
但是由於該程式碼編寫時間較為久遠,且openGL的更新換代,使其使用較為困難。
本人經過整理,將其中的展示部分用openCV代替,並修復了其中部分bug,並提供CMakeLists.txt簡化程式碼編譯,現放出程式碼連結:
https://github.com/Yannnnnnnnnnnn/cuda_by_example

cuda_by_example

CUDA by Example, written by two senior members of the CUDA software platform team, shows programmers how to employ this new technology. The authors introduce each area of CUDA development through working examples. After a concise introduction to the CUDA platform and architecture, as well as a quick-start guide to CUDA C, the book details the techniques and trade-offs associated with each key CUDA feature. You’ll discover when to use each CUDA C extension and how to write CUDA software that delivers truly outstanding performance.