spec cpu 2006

本文介绍了如何编译和运行Spec CPU 2006,强调了只能使用gcc4进行编译,并提供了官方安装指南链接。此外,提到了runspec命令的使用及参数说明,以及可能需要修改配置文件的情况,特别是针对多核CPU的numa设置。还提及了一些他人遇到的错误情况作为参考。
部署运行你感兴趣的模型镜像
  1. 编译和运行

    参考:http://blog.youkuaiyun.com/wangwcnl/article/details/46227935
    或者官方版:(注意路径替换为本地路径)
    file:///L:/cpu2006-1.2/Docs/install-guide-unix.html

    注意,2006 只有用gcc4 编译
    切换gcc版本参见上一篇

    一些需要安装的东西

    sudo apt-get install numactl
    sudo apt-get install gfortran-4.7    #似乎大于这个版本将报错
    sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-4.7 50

    另外,.source 是一样的好像

    $ . file # 注意有空格
    $ source file

  2. runspec

    别人的结果和runspce 的参数说明
    三个参数:

    --size test/train/ref
    ref(默认)
    
    --tune base/peak/all
    base(默认)
    
    int/fp/all/400/401/410/bzip2

    我用过的测试命令

    runspec --config test.cfg --reportable int
    runspec --config test.cfg --rate 20 --ignoreerror --tune=all --reportable all
    runspec --config test.cfg --rate 40 --ignoreerror --tune=all --reportable all
    
    
    runspec --config=test.cfg --rebuild  --size=ref --tune=base --noreportable --iterations=1 416
    runspec --config=test.cfg --size=ref --tune=base --noreportable --iterations=3 bzip2
    
    runspec --config=test.cfg --rate --copies 40  --size=ref --tune=base --noreportable --iterations=1 bzip2
    runspec --config=test.cfg --rate 40  --size=ref --tune=base --noreportable --iterations=1 bzip2
    

    有时需要修改config文件,
    首先到config目录下找到自己平台的配置文件,
    比如我用的是Example-linux64-amd64-gcc43+.cfg

    cp Example-linux64-amd64-gcc43+.cfg test.cfg

    然后编辑自己的cfg文件,比如如果需要测20个核心的cpu
    就要把文件中的numactl改成(默认最大支持8个核,且numa绑定了错误的内存)

    
    # with 4 cores per socket - you might need to adjust these for your specific platform.
    
    bind0  = numactl -m 0 --physcpubind=0
    bind1  = numactl -m 1 --physcpubind=1
    bind2  = numactl -m 0 --physcpubind=2
    bind3  = numactl -m 1 --physcpubind=3
    bind4  = numactl -m 0 --physcpubind=4
    bind5  = numactl -m 1 --physcpubind=5
    bind6  = numactl -m 0 --physcpubind=6
    bind7  = numactl -m 1 --physcpubind=7
    bind8  = numactl -m 0 --physcpubind=8
    bind9  = numactl -m 1 --physcpubind=9
    bind10  = numactl -m 0 --physcpubind=10
    bind11  = numactl -m 1 --physcpubind=11
    bind12  = numactl -m 0 --physcpubind=12
    bind13  = numactl -m 1 --physcpubind=13
    bind14  = numactl -m 0 --physcpubind=14
    bind15  = numactl -m 1 --physcpubind=15
    bind16  = numactl -m 0 --physcpubind=16
    bind17  = numactl -m 1 --physcpubind=17
    bind18  = numactl -m 0 --physcpubind=18
    bind19  = numactl -m 1 --physcpubind=19

    numa详见另外一篇


  3. 一些别人遇到的错误(和我遇到的并不一样)

您可能感兴趣的与本文相关的镜像

Wan2.2-T2V-A5B

Wan2.2-T2V-A5B

文生视频
Wan2.2

Wan2.2是由通义万相开源高效文本到视频生成模型,是有​50亿参数的轻量级视频生成模型,专为快速内容创作优化。支持480P视频生成,具备优秀的时序连贯性和运动推理能力

评论 8
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值