> For the complete documentation index, see [llms.txt](https://kerasnoone.gitbook.io/garnet/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kerasnoone.gitbook.io/garnet/shi-jian-ji-qiao/xian-cun-you-hua/xian-ka-xing-neng-fen-xi-zhi-biao.md).

# 显卡性能分析指标

## 计算能力指标

衡量计算量的单位是**flop**: the number of floating-point multiplication-adds, 从名字可以看出, **浮点数先乘后加算一个flop**.

举个例子, 以下两个算式的计算量分别为:

```
1 * 2 + 3                  1 flop
1 * 2 + 3 * 4 + 4 * 5      3 flop
```

衡量计算能力的单位是flops, 即**每秒能执行的flop数量**.

## 显存计量指标

在Windows平台中使用任务管理器查看使用的显存, 使用的单位是`GB`; 在Linux中使用`nvidia-smi`查看占用的显存, 使用的单位是`MiB/GiB`. 因此首先要搞清, `MB/MiB`, `GB/Gib`之间的区别.

### KiB, MiB, GiB, TiB

KiB是**kilo binary byte**的缩写, 可以称为**千位二进制字节**.

```
1Byte = 8bit
1KiB = 1,024Byte
1MiB = 1,024KiB
1GiB = 1,024MiB = 1,048,576 KiB
1TiB = 1,024GiB = 1,073,741,824 KiB
```

### KB, MB, GB, TB

KB是**kilobyte**的缩写, 指的是**千字节**.

```
1Byte = 8bit
1KB = 1000Byte
1MB = 1000KB
1GB = 1000MB
1TB = 1000GB
```
