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

Map

In this communication pattern, each thread or task takes a single input and produces a single output. Basically, it is a one-to-one operation. The vector addition program and element-wise squaring program, seen in the previous sections, are examples of the map pattern. The code of the map pattern will look as follows:

d_out[i] = d_in[i] * 2
主站蜘蛛池模板: 长寿区| 霸州市| 潮安县| 商水县| 靖远县| 新乡县| 前郭尔| 宁阳县| 新龙县| 霸州市| 陵川县| 广安市| 景泰县| 伊通| 大石桥市| 宕昌县| 化隆| 涟水县| 牡丹江市| 蒙自县| 华蓥市| 伊川县| 滦平县| 屏边| 富民县| 和平县| 高青县| 丹阳市| 临江市| 兖州市| 亳州市| 关岭| 阳西县| 柏乡县| 潼关县| 黄石市| 托克托县| 石景山区| 呈贡县| 洮南市| 东乡县|