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

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.

主站蜘蛛池模板: 濮阳市| 龙口市| 蒙自县| 海门市| 晋中市| 酉阳| 双柏县| 隆安县| 和顺县| 靖西县| 无极县| 绍兴县| 北碚区| 农安县| 沐川县| 石嘴山市| 长葛市| 丹棱县| 天峻县| 通州市| 齐齐哈尔市| 裕民县| 青浦区| 河源市| 安塞县| 麦盖提县| 昌图县| 广灵县| 肥乡县| 井陉县| 罗城| 会东县| 马龙县| 清涧县| 深圳市| 略阳县| 临澧县| 富裕县| 岐山县| 襄城县| 伊宁市|