arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1506.06256cs.SEcs.LGcs.PF
收藏

集体思维,第II部分:将性能和成本意识的软件工程作为一门自然科学

Collective Mind, Part II: Towards Performance- and Cost-Aware Software Engineering as a Natural Science

cTuning foundation(cTuning基金会);UVSQ(凡尔赛大学);STMicroelectronics(意法半导体);ARM(ARM公司)

Grigori Fursin, Abdul Memon, Christophe Guillon, Anton Lokhmotov

摘要:

如今,工程师必须开发软件,甚至不知道它最终将在众多手机,平板电脑,台式机,笔记本电脑,数据中心,超级计算机和云服务中运行的硬件。不幸的是,优化编译器不再跟上计算机系统不断增加的复杂性,并且可能产生严重性能不佳的可执行代码,同时浪费昂贵的资源和能量。我们提出了我们的实际和协作的解决方案,这个问题,通过轻量级包装围绕任何软件时,一个以上的实现或优化选择。这些包装器与公共的Collective Mind自动调优基础设施和知识库(c-mind.org/repo)连接,以在众多现有硬件配置中持续监控这些片段(计算物种)的各种重要特征以及随机选择的优化。与自然科学类似,我们现在可以持续跟踪获胜的解决方案(针对给定硬件的优化),这些解决方案可以最大限度地减少帕累托边界上给定物种的所有计算成本(执行时间,能耗,代码大小,故障,内存和存储占用,优化时间,故障,竞争,不准确性等)以及任何意外行为。然后,社区可以协作地对解决方案进行分类,删除冗余的解决方案,并将它们与软件的各种功能、输入(数据集)和使用的硬件手动或使用强大的预测分析技术相关联。然后,我们的方法可以帮助创建一个大型的,现实的,多样化的,有代表性的,并不断发展的基准与相关的优化知识,同时逐步覆盖所有可能的软件和硬件,以便能够预测最佳优化,并根据使用场景和要求改进编译器和硬件。

英文摘要:

Nowadays, engineers have to develop software often without even knowing which hardware it will eventually run on in numerous mobile phones, tablets, desktops, laptops, data centers, supercomputers and cloud services. Unfortunately, optimizing compilers are not keeping pace with ever increasing complexity of computer systems anymore and may produce severely underperforming executable codes while wasting expensive resources and energy. We present our practical and collaborative solution to this problem via light-weight wrappers around any software piece when more than one implementation or optimization choice available. These wrappers are connected with a public Collective Mind autotuning infrastructure and repository of knowledge (c-mind.org/repo) to continuously monitor various important characteristics of these pieces (computational species) across numerous existing hardware configurations together with randomly selected optimizations. Similar to natural sciences, we can now continuously track winning solutions (optimizations for a given hardware) that minimize all costs of a computation (execution time, energy spent, code size, failures, memory and storage footprint, optimization time, faults, contentions, inaccuracy and so on) of a given species on a Pareto frontier along with any unexpected behavior. The community can then collaboratively classify solutions, prune redundant ones, and correlate them with various features of software, its inputs (data sets) and used hardware either manually or using powerful predictive analytics techniques. Our approach can then help create a large, realistic, diverse, representative, and continuously evolving benchmark with related optimization knowledge while gradually covering all possible software and hardware to be able to predict best optimizations and improve compilers and hardware depending on usage scenarios and requirements.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑