Recently, program autotuning has become very popular especially in embedded systems, when we have limited resources such as computing power and memory where these systems run generally time-critical applications. Compiler optimization space gradually expands with the renewed compiler options and inclusion of new architectures. These advancements bring autotuning even more important position. In this paper, we introduced Flag Optimization with Genetic Algorithm (FOGA) as an autotuning solution for GCC flag optimization. FOGA has two main advantages over the other autotuning approaches: the first one is the hyperparameter tuning of the genetic algorithm (GA), the second one is the maximum iteration parameter to stop when no further improvement occurs. We demonstrated remarkable speedup in the execution time of C++ source codes with the help of optimization flags provided by FOGA when compared to the state of the art framework OpenTuner.
翻译:最近,程序自动化变得非常受欢迎,特别是在嵌入系统中,当我们拥有有限的资源,例如计算力和内存,这些系统通常运行时间紧迫的应用程序。编译器优化空间随着更新的编译器选项和新结构的纳入而逐渐扩大。这些进步带来了更加重要的自动调控位置。在本文中,我们引入了“最佳利用遗传电算法(FOGA)”作为海合会优化国旗的自动调控解决方案。FOGA与其他自动调控方法相比有两个主要优势:第一个是超参数对基因算法(GA)进行调控,第二个是没有进一步改进时可以停止的最大迭代参数。我们展示了C++源码执行时间的显著加快,而FOGA在与艺术框架 OpenTuner 相比,提供了优化旗的帮助。