- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 94字
- 2021-08-13 15:48:23
Gather
In this pattern, each thread or task has multiple inputs, and it produces a single output to be written at a single location in memory. Suppose you want to write a program that finds a moving average of three numbers; this is an example of a gather operation. It takes three inputs from memory and writes single output to memory. So, there is data reuse on the input side. It is basically a many-to-one operation. The code for gather pattern will look as follows:
out[i] = (in [i-1] + in[i] + in[i+1])/3
推薦閱讀
- Learn ECMAScript(Second Edition)
- 從零開始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- Monkey Game Development:Beginner's Guide
- 深入理解Django:框架內(nèi)幕與實(shí)現(xiàn)原理
- Visual C++數(shù)字圖像模式識(shí)別技術(shù)詳解
- 精通搜索分析
- The HTML and CSS Workshop
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)
- 青少年信息學(xué)競(jìng)賽
- NGINX Cookbook
- 軟件項(xiàng)目管理實(shí)用教程
- Beginning C++ Game Programming
- Mockito Essentials
- App Inventor 2 Essentials
- Android Studio開發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到App上線 (移動(dòng)開發(fā)叢書)