- 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
推薦閱讀
- 軟件界面交互設計基礎
- PostgreSQL Cookbook
- Production Ready OpenStack:Recipes for Successful Environments
- 機器人Python青少年編程開發實例
- Elastic Stack應用寶典
- 區塊鏈:以太坊DApp開發實戰
- Windows Server 2012 Unified Remote Access Planning and Deployment
- Quarkus實踐指南:構建新一代的Kubernetes原生Java微服務
- 精通網絡視頻核心開發技術
- 軟件架構:Python語言實現
- Ext JS 4 Web Application Development Cookbook
- Mastering Apache Maven 3
- 數據結構案例教程(C/C++版)
- Learning PHP 7
- 青少年學Python(第2冊)