- 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.
推薦閱讀
- Kubernetes實戰(zhàn)
- Mastering Entity Framework
- MATLAB 2020 從入門到精通
- Practical Windows Forensics
- Java持續(xù)交付
- Python應(yīng)用輕松入門
- C語言程序設(shè)計
- INSTANT Sinatra Starter
- Mastering Linux Security and Hardening
- Mockito Essentials
- Java高手是怎樣煉成的:原理、方法與實踐
- 零基礎(chǔ)學(xué)編程系列(全5冊)
- Learning D3.js 5 Mapping(Second Edition)
- Mastering Drupal 8
- C語言編程魔法書:基于C11標(biāo)準(zhǔn)