安装gpu burn
git clone https://github.com/wilicc/gpu-burn
cd gpu-burn/
make
测试
./gpu_burn 60
100.0% proc'd: 14280 (7373 Gflop/s) - 13390 (6997 Gflop/s) - 15912 (7110 Gflop/s) - 13184 (7055 Gflop/s) - 13464 (7369 Gflop/s) - 13974 (7351 Gflop/s) - 16626 (7470 Gflop/s
100.0% proc'd: 14280 (7373 Gflop/s) - 13390 (6997 Gflop/s) - 15912 (7110 Gflop/s) - 13184 (7055 Gflop/s) - 13566 (7102 Gflop/s) - 13974 (7351 Gflop/s) - 16626 (7470 Gflop/s
100.0% proc'd: 14382 (7224 Gflop/s) - 13390 (6997 Gflop/s) - 15912 (7110 Gflop/s) - 13184 (7055 Gflop/s) - 13566 (7102 Gflop/s) - 13974 (7351 Gflop/s) - 16626 (7470 Gflop/s
100.0% proc'd: 14382 (7224 Gflop/s) - 13390 (6997 Gflop/s) - 15912 (7110 Gflop/s) - 13184 (7055 Gflop/s) - 13566 (7102 Gflop/s) - 13974 (7351 Gflop/s) - 16728 (7458 Gflop/s
100.0% proc'd: 14382 (7224 Gflop/s) - 13390 (6997 Gflop/s) - 16014 (6994 Gflop/s) - 13184 (7055 Gflop/s) - 13566 (7102 Gflop/s) - 13974 (7351 Gflop/s) - 16728 (7458 Gflop/s) - 14688 (7569 Gflop/s)
errors: 0 - 0 - 0 - 0 - 0 - 0 - 0 - 0 temps: 59 C - 69 C - 66 C - 65 C - 67 C - 65 C - 60 C - 63 C
Killing processes.. Freed memory for dev 7
Uninitted cublas
Freed memory for dev 5
Uninitted cublas
Freed memory for dev 1
Freed memory for dev 4
Uninitted cublas
Uninitted cublas
Freed memory for dev 3
Freed memory for dev 0
Uninitted cublas
Uninitted cublas
Freed memory for dev 6
Uninitted cublas
Freed memory for dev 2
Uninitted cublas
doneTested 8 GPUs:GPU 0: OKGPU 1: OKGPU 2: OKGPU 3: OKGPU 4: OKGPU 5: OKGPU 6: OKGPU 7: OK
这样我们就能看到每张gpu的性能了
测试单精度
./gpu_burn 60
双精度
./gpu_burn -d 60
tensor core
./gpu_burn -tc 60
可用环境变量指定测哪个显卡
export CUDA_VISIBLE_DEVICES=0,1