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

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.

主站蜘蛛池模板: 万源市| 济宁市| 宁陵县| 东台市| 云林县| 饶河县| 宜黄县| 眉山市| 罗平县| 都兰县| 井陉县| 临汾市| 朝阳市| 青浦区| 乌审旗| 馆陶县| 都安| 西城区| 左云县| 盘锦市| 阳原县| 海伦市| 洛川县| 民权县| 高阳县| 都江堰市| 比如县| 榕江县| 嘉定区| 巴中市| 鸡泽县| 益阳市| 方山县| 汕头市| 陇西县| 新昌县| 宝山区| 建始县| 吴旗县| 新平| 江山市|