- 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
推薦閱讀
- Web程序設計及應用
- C語言程序設計案例教程
- 程序員考試案例梳理、真題透解與強化訓練
- The React Workshop
- NativeScript for Angular Mobile Development
- OpenShift在企業(yè)中的實踐:PaaS DevOps微服務(第2版)
- C#程序設計
- 用戶體驗增長:數(shù)字化·智能化·綠色化
- HTML5秘籍(第2版)
- IBM Cognos TM1 Developer's Certification guide
- Maven for Eclipse
- 數(shù)字媒體技術概論
- MATLAB 2020 GUI程序設計從入門到精通
- Python程序設計現(xiàn)代方法
- 軟件測試實驗實訓指南