gpu-burn是一款GPU压力测试工具,今天就来介绍下如何安装和使用gpu-burn。
首先我们我先去拉取源码包,地址是:https://github.com/wilicc/gpu-burn,目前也支持部分操作系统的二进制包下载,可以在这里查找:https://repology.org/project/gpu-burn/versions
git clone https://github.com/wilicc/gpu-burn.git
cd gpu-burn
make #直接编译安装然后就可以开始使用了,用法如下:
GPU Burn
Usage: gpu_burn [OPTIONS] [TIME]
-m X Use X MB of memory
-m N% Use N% of the available GPU memory
-d Use doubles
-tc Try to use Tensor cores (if available)
-l List all GPUs in the system
-i N Execute only on GPU N
-h Show this help message
Example:
gpu_burn -d 1800
如果只想测试指定几张卡,可以使用CUDA_VISIBLE_DEVICES这个环境变量来指定卡
export CUDA_VISIBLE_DEVICES=0,3
gpu_burn 3600
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://sulao.cn/post/1056
相关阅读
- ubuntu22.04安装cuda失败提示"Uninstall manifest corrupt"
- ubuntu使用ssh命令批量设置集群节点具有sudo权限的账户sudo免密切换
- RTX 5090在cuda13.0下gpu-burn编译报错的解决方法
- k8s集群部署gpu-operator支持gpu节点自动发现和gpu上报
- ubuntu22.04算力环境基础配置一键验证脚本
- ubuntu22.04算力环境基础配置一键脚本
- nccl-tests多机多卡测试环境一键编译部署脚本
- ubuntu22.04忘记root密码进入单用户模式修改密码
- ubuntu22.04屏蔽使用apt安装软件时出现弹窗要求选择重启服务的方法
- nccl-tests英伟达GPU单机多卡一键测试脚本
评论列表