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

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
主站蜘蛛池模板: 宜宾市| 裕民县| 桐庐县| 大竹县| 嘉黎县| 汕头市| 福州市| 阳原县| 扶绥县| 呼和浩特市| 隆林| 盐亭县| 新民市| 大姚县| 濮阳县| 咸丰县| 屯留县| 赤壁市| 区。| 阿合奇县| 荆门市| 石渠县| 天气| 龙州县| 荃湾区| 鄯善县| 河北省| 芜湖市| 鄢陵县| 沂水县| 天祝| 白沙| 渭南市| 蒲城县| 武定县| 义马市| 周宁县| 平潭县| 安图县| 余姚市| 扶风县|