今天继续调试coremark, 发现其默认使用的clock_gettime()似乎精度只有4ms (clock_getres()报告的结果是4000000ns)。因此, 为了获得准确的结果, 我可能需要运行很多次迭代, 需要比较长的时间。由于gem5仿真速度很慢, 用gem5仿真的情况下, 时间会是数十至数万倍。为了在短时间内获得比较准确的结果, 我将coremark的计时函数改成了直接使用rdtime去读取时钟周期数来提升计时精度。
clock_gettime()
clock_getres()
rdtime
注意 - 你可以用以下 HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
昵称
邮箱
网址
Δ
bug RISC-V 业务 今日 优化 作业 修 修改 写 准备 博士 又是 吃 复习 大觉 学习 完成 实验 开始 快乐 总结 惊悚 报告 撰写 改 数学 旅游 期中 期末 材料 测试 物理 睡大觉 睡觉 系统 组会 统练 继续 网络 考试 英国 英语 论文 还是 阅读
发表评论