- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 235字
- 2021-08-13 15:48:24
Summary
To summarize, in this chapter, you were introduced to programming concepts in CUDA C and how parallel computing can be done using CUDA. It was shown that CUDA programs can run on any NVIDIA GPU hardware efficiently and in parallel. So, CUDA is both efficient and scalable. The CUDA API functions over and above existing ANSI C functions needed for parallel data computations were discussed in detail. How to call device code from the host code via a kernel call, configuring of kernel parameters, and a passing of parameters to the kernel were also discussed by taking a simple two-variable addition example. It was also shown that CUDA does not guarantee the order in which the blocks or thread will run and which block is assigned to which multi-processor in hardware. Moreover, vector operations, which take advantage of parallel-processing capabilities of GPU and CUDA, were discussed. It can be seen that, by performing vector operations on the GPU, it can improve the throughput drastically, compared to the CPU. In the last section, various common communication patterns followed in parallel programming were discussed in detail. Still, we have not discussed memory architecture and how threads can communicate with one another in CUDA. If one thread needs data of the other thread, then what can be done is also not discussed. So, in the next chapter, we will discuss memory architecture and thread synchronization in detail.
- jQuery Mobile Web Development Essentials(Third Edition)
- Python快樂編程:人工智能深度學習基礎
- JIRA 7 Administration Cookbook(Second Edition)
- Learning ArcGIS Pro
- 數(shù)據(jù)結構(C語言)
- 編譯系統(tǒng)透視:圖解編譯原理
- Learn React with TypeScript 3
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- “笨辦法”學C語言
- 智能搜索和推薦系統(tǒng):原理、算法與應用
- PHP編程基礎與實踐教程
- Webpack實戰(zhàn):入門、進階與調(diào)優(yōu)(第2版)
- 區(qū)塊鏈項目開發(fā)指南
- 超簡單:Photoshop+JavaScript+Python智能修圖與圖像自動化處理
- Python面向?qū)ο缶幊蹋ǖ?版)