- 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
推薦閱讀
- DevOps for Networking
- Machine Learning with R Cookbook(Second Edition)
- Visual C++實例精通
- PyTorch Artificial Intelligence Fundamentals
- 游戲程序設計教程
- Getting Started with SQL Server 2012 Cube Development
- 蘋果的產品設計之道:創建優秀產品、服務和用戶體驗的七個原則
- Spring+Spring MVC+MyBatis從零開始學
- 大學計算機基礎
- Emotional Intelligence for IT Professionals
- Learning Android Application Testing
- Learning Jakarta Struts 1.2: a concise and practical tutorial
- MySQL 8從零開始學(視頻教學版)
- R語言數據挖掘:實用項目解析
- iOS Development with Xamarin Cookbook