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

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.

主站蜘蛛池模板: 大兴区| 古丈县| 巫溪县| 体育| 棋牌| 喀什市| 周口市| 漯河市| 宜城市| 郎溪县| 临沭县| 唐山市| 镇远县| 马鞍山市| 子长县| 盘锦市| 澄迈县| 仁怀市| 黄浦区| 库车县| 霸州市| 清水河县| 浦城县| 阳曲县| 长泰县| 大城县| 保德县| 交城县| 普兰店市| 通州市| 云霄县| 文水县| 裕民县| 靖西县| 宁河县| 宝鸡市| 阜阳市| 黔西县| 温宿县| 温州市| 临沧市|