官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 连南| 汉源县| 花莲市| 承德县| 武山县| 茌平县| 和林格尔县| 历史| 汉寿县| 海伦市| 边坝县| 临澧县| 定州市| 民县| 攀枝花市| 兴山县| 永仁县| 满洲里市| 平远县| 武威市| 临沭县| 琼结县| 汽车| 沽源县| 汾阳市| 准格尔旗| 白城市| 兴和县| 积石山| 宜兰市| 屏东县| 宁乡县| 邹城市| 额济纳旗| 健康| 桦南县| 大理市| 舒城县| 牙克石市| 深水埗区| 宿州市|