首页> 外国专利> Data structure specifying differing fan-in tree and fan-out tree computation patterns supporting a generic reduction object for data parallelism

Data structure specifying differing fan-in tree and fan-out tree computation patterns supporting a generic reduction object for data parallelism

机译:数据结构指定不同的扇入树和扇出树计算模式,支持通用归约对象以实现数据并行性

摘要

A data structure supporting a data-parallel reduction operation performed by a group of threads, a rope, participating in a multi-level two-phase tree structure: a fan-in computation phase followed by a fan- out broadcast phase. Local reductions are performed at each subtree during the fan-in phase, and the final reduced value is broadcast to all the threads during the fan-out phase. As the reduction operation is a data-parallel operation, the reduction operation is rope specific and is provided by the use of a parallel computation skeleton defined by the data structure which is a fan-in followed by the fan-out, a data-type specific binary operation, and a final broadcast that takes place in the reduction operation. When the rope object is constructed, the parallel computation skeleton is automatically constructed from information contained in the data structure. When a reduction operation is invoked, this parallel computation skeleton is used to build a data-type specific reduction object which is used by all the threads in the rope. The threads in a rope may perform type-specific reduction operations by cloning this parallel computation skeleton to a data-type specific reduction object for that type. This data-type specific reduction object is an instance of a template instance which is parametrized on two data- types: a data-type of the values used in the reduction operation and a type of a binary operation function object.
机译:一种数据结构,支持由一组线程(一条绳索)执行的数据并行归约操作,参与多级两阶段树结构:扇入计算阶段,然后是扇出广播阶段。在扇入阶段在每个子树上执行局部缩减,并且在扇出阶段将最终的缩减值广播到所有线程。由于归约运算是数据并行运算,因此归约运算是特定于绳索的,并通过使用由数据结构定义的并行计算框架来提供,该结构是扇入,扇出然后是数据类型特定的二进制运算,以及在归约运算中进行的最终广播。构造绳索对象时,将根据数据结构中包含的信息自动构造并行计算框架。当调用归约操作时,此并行计算框架用于构建特定于数据类型的归约对象,该对象将被绳索中的所有线程使用。绳索中的线程可以通过将并行计算框架克隆到该类型的特定于数据类型的归约对象来执行特定于类型的归约操作。此特定于数据类型的归约对象是模板实例的实例,该模板实例在两个数据类型上进行了参数化:归约运算中使用的值的数据类型和二进制运算函数对象的类型。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号