【24h】

Computing Long Sequences of Consecutive Fibonacci Integers with TensorFlow

机译:使用TensorFlow计算连续斐波那契整数的长序列

获取原文

摘要

Fibonacci numbers appear in numerous engineering and computing applications including population growth models, software engineering, task management, and data structure analysis. This mandates a computationally efficient way for generating a long sequence of successive Fibonacci integers. With the advent of GPU computing and the associated specialized tools, this task is greatly facilitated by harnessing the potential of parallel computing. This work presents two alternative parallel Fibonacci generators implemented in TensorFlow, one based on the well-known recurrence equation generating the Fibonacci sequence and one expressed on inherent linear algebraic properties of Fibonacci numbers. Additionally, the question of using lookup tables in conjunction with spline interpolation or direct computation within a parallel context for the computation of the powers of known quantities is explored. Although both parallel generators outperform the baseline serial implementation in terms of wallclock time and FLOPS, there is no clear winner between them as the results rely on the number of integers generated. Additionally, replacing computations with a lookup table degrades performance, which can be attributed to the frequent access to the shared memory.
机译:斐波那契数出现在许多工程和计算应用程序中,包括人口增长模型,软件工程,任务管理和数据结构分析。这要求一种计算有效的方式来生成长序列的连续斐波那契整数。随着GPU计算和相关专用工具的出现,通过利用并行计算的潜力极大地促进了这一任务。这项工作提出了两种在TensorFlow中实现的并行并行Fibonacci生成器,一种基于众所周知的递归方程生成Fibonacci序列,另一种基于Fibonacci数的固有线性代数性质表示。另外,探讨了使用查找表结合样条插值或并行上下文内的直接计算来计算已知量的幂的问题。尽管就时钟时间和FLOPS而言,两个并行生成器的性能均优于基线串行实现,但它们之间并没有明显的胜者,因为结果取决于生成的整数的数量。此外,用查找表替换计算会降低性能,这可以归因于对共享内存的频繁访问。

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号