使用 gem5 测量加速

Measuring speedup with gem5

我想使用 gem5 来测量一些并行脚本之间的加速(使用 openMP),但我不确定我应该使用哪种可用的 CPU 类型来测量它们的执行时间,一些论文说 O3 类型提供精确的计时测量,但其他类型没有指定。

不同类型的CPU是否会影响加速计算,或者只要我每次都使用相同的就无所谓了? 如果他们有所作为。我应该使用哪一个?

这是一个非常难的问题。你必须了解 gem5 模型是什么模型,以及你想要建模的真实 CPU 或未来 CPU 是什么,以及精度是否足够。快速 gem5 CPU 概述 can be found here. But to determine what the real hardware looks like, you have to search for public information on a specific hardware of interest, see also this post.