GPU压测(使用工具gpu-burn)
·
一,安装GPU-burn
git clone https://github.com/wilicc/gpu-burn.git
#修改配置文件
cd gpu-burn
vi Makefile
gpu_burn: gpu_burn-drv.o compare.ptx
g++ -o $@ $< -O3 ${LDFLAGS}
修改为
gpu_burn: gpu_burn-drv.o compare.ptx
g++ -o $@ $< -O3 ${LDFLAGS} -static-libgcc -static-libstdc++
#修改后进行编译,编译完成后在其他机器拷贝后就可以直接使用了
make
二,进行压测
#测试命令
./gpu_burn 3600(测试时间)
# 配合ansible使用
ansible -i gpu.txt all -m shell -a "cd /root/gpu-burn/ && ./gpu_burn 3600" -f 50

更多推荐




所有评论(0)