【24h】

Parallel Array Class Implementation Using C++ STL Adaptors

机译:使用C ++ STL适配器的并行阵列级实现

获取原文

摘要

STL Adaptors can combine operations and are used in elimination of temporaries in a C++ array class; this technique is known as Expression Templates or Template closures. Since the technique is dependent on a simple expansion of element references, some difficulties exist in applying the technique to a parallel array class, where distribution with ghost-cells and notation of array sections complicate the expansion of element references. The technique is extended so that it separates element references in two cases to keep the expansion simple in each case. This achieves good performance even with the existence of ghost-cells, whereas the implementation of an existing technique does not support it well because of the required amount of coding. In addition, currying facility of Adaptors is used for supporting nested data structures, where operations are required to nest so that they can be applied to sub-structures. An example shows a mapping of reductions is concisely expressed in a matrix-vector multiplication.
机译:STL适配器可以组合操作,并用于消除C ++阵列类中的临时;该技术称为表达模板或模板闭合。由于该技术取决于元素引用的简单扩展,因此在将技术应用于并行阵列类中,存在一些困难,其中具有Ghost-Cells的分布和阵列部分的符号使元素引用的扩展复杂化。该技术被扩展,使其在两种情况下分离元素引用,以保持每种情况下的扩展简单。即使存在幽灵细胞,这也实现了良好的性能,而现有技术的实现也不支持它,因为所需的编码量不足。此外,适配器的咖喱设施用于支持嵌套数据结构,其中需要操作嵌套,以便它们可以应用于子结构。一个示例,示出了在矩阵矢量乘法中简明地表达了还原的映射。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号