zoukankan      html  css  js  c++  java
  • gem5 设定checkpiont以及从checkpoint开始运行

    同spec2006中间bzip2一个例子,如何设置checkpoint 。以及从checkpoint继续以启动运行。这样做的目的是为了,采纳automic运行N指令,然后detailed运行M指令。



    1.设置checkpoint:在第5000000条instruction处设置checkpoint

    ./build/ALPHA_SE/gem5.opt -d ./m5out/401.bzip2 ./configs/example/se.py -c ../installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.i386-m32-gcc42-nn -o ../installspec2006/benchspec/CPU2006/401.bzip2/data/test/input/dryer.jpg --at-instruction --take-checkpoints=5000000 --max-checkpoints=1 --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=2048kB;
    

    2.从上次checkpoint处開始:“--at-instruction -r 5000000”表示从第5000000这个checkpoint開始,“-I 5000000”表示再模拟5000000条指令

    ./build/ALPHA_SE/gem5.opt -d ./m5out/401.bzip2 ./configs/example/se.py -c ../installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.i386-m32-gcc42-nn -o ../installspec2006/benchspec/CPU2006/401.bzip2/data/test/input/dryer.jpg --at-instruction -r 5000000 -I 5000000 --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=2048kB --cpu-type=detailed;
    

    3.不设置checkpoint,直接执行10000000条指令

    ./build/ALPHA_SE/gem5.opt -d ./m5out/401.bzip2 ./configs/example/se.py -c ../installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.i386-m32-gcc42-nn -o ../installspec2006/benchspec/CPU2006/401.bzip2/data/test/input/dryer.jpg -I 10000000 --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=2048kB --cpu-type=detailed;

    4.採用fast-forward执行N条指令,再使用detailed执行M条指令

    #401.bzip2
    ./build/ALPHA_SE/gem5.opt -d ./m5out/401.bzip2 ./configs/example/se.py -c ../installspec2006/benchspec/CPU2006/401.bzip2/exe/bzip2_base.i386-m32-gcc42-nn -o ../installspec2006/benchspec/CPU2006/401.bzip2/data/ref/input/chicken.jpg --fast-forward 40000000000 -I 100000000 --caches --l1d_size=32kB --l1i_size=32kB --l2cache --l2_size=2048kB --cpu-type=detailed;
    


    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    股指期货高频数据机器学习预测
    如何使用TradingView(TV)回测数字货币交易策略
    使用EXCEL计算并绘制MACD指标
    使用EXCEL计算并绘制EMA指标
    使用EXCEL计算并绘制MFI指标
    使用EXCEL计算并绘制KDJ指标
    使用EXCEL计算并绘制OBV指标
    如何使用Excel绘制砖型图Renko Charts
    简约主义的市场分析图表--砖型图Renko Charts
    教你一步一步使用Excel获取API接口的金融数据
  • 原文地址:https://www.cnblogs.com/lcchuguo/p/4634147.html
Copyright © 2011-2022 走看看