- 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.
推薦閱讀
- Objective-C Memory Management Essentials
- FreeSWITCH 1.8
- Learning SAP Analytics Cloud
- Servlet/JSP深入詳解
- Gradle for Android
- Python圖形化編程(微課版)
- Machine Learning in Java
- C++從入門到精通(第6版)
- Photoshop CC移動UI設計案例教程(全彩慕課版·第2版)
- JavaScript編程精解(原書第2版)
- Mobile Forensics:Advanced Investigative Strategies
- Learning Dynamics NAV Patterns
- PhantomJS Cookbook
- OpenStack Sahara Essentials
- LabVIEW案例實戰