- Hands-On GPU:Accelerated Computer Vision with OpenCV and CUDA
- Bhaumik Vaidya
- 113字
- 2021-08-13 15:48:24
Transpose
When the input is in the form of a row-major matrix, and we want the output to be in column-major form, we have to use this transpose communication pattern. It is particularly useful if you have a structure of arrays and you want to convert it in the form of an array of structures. It is also a one-to-one operation. The code for the transpose pattern will look as follows:
out[i+j*128] = in [j +i*128]
In this section, various communication patterns that CUDA programming follows is discussed. It is useful to find a communication pattern related to your application and use the code syntax of that pattern shown as an example.
推薦閱讀
- 深入理解Bootstrap
- SoapUI Cookbook
- ASP.NET Core 5.0開發入門與實戰
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- Mastering QGIS
- FreeSWITCH 1.6 Cookbook
- C程序設計案例教程
- HTML5+CSS3網頁設計
- Building Serverless Architectures
- Mastering Elixir
- 原型設計:打造成功產品的實用方法及實踐
- 深入理解Kafka:核心設計與實踐原理
- Mastering Magento Theme Design
- HTML5+CSS+JavaScript深入學習實錄
- C語言進階:重點、難點與疑點解析