List devices
Usage: mx-qual list [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
The device index you specified (default: all). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {1,2,3}
# 列出所有设备
mx-qual list
# 列出指定设备
mx-qual list -i 0
mx-qual list -i 0 1 2
mx-qual list -i {0,1,2}
Device 0: "01S30-00A"
Serial number: 2023243080074
PCI Bus ID: 0000:8a:00.0
Runtime version: 3.4.0
Driver version: 3.4.0
Firmware version: 1.0.14
Run hardware link test
Usage: mx-qual hardware_link [OPTIONS]
Options:
-h,--help Print this help message and exit
mx-qual hardware_link
Test driver link... ok
Test device count... ok
Test device link... ok
Usage: mx-qual pcie_bandwidth [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
The device index you specified (default: 0). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {1,2,3}
-s,--sn TEXT The device sn you specified.
-d,--data_size UINT:INT in [32 - 100]
The transfer size (MB) you specified. (default 100MB)
-l,--loop INT:INT in [1 - 100]
The number of test loop (default: 1)
-f,--full_duplex Enable full duplex mode
PCIe Bandwidth Test
Device id: [0]
Host to Device Bandwidth
Transfer Size: 100.000 MB, Bandwidth: 11.947 GB/s
Device to Host Bandwidth
Transfer Size: 100.000 MB, Bandwidth: 12.139 GB/s
Result = PASS
Run memory bandwidth test
Usage: mx-qual memory_bandwidth [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
The device index you specified (default: 0). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {1,2,3}
-s,--sn TEXT The device sn you specified.
-d,--data_size UINT:INT in [32 - 100]
The transfer size (MB) you specified. (default 100MB)
-l,--loop INT:INT in [1 - 100]
The number of test loop (default: 1)
Memory Bandwidth Test
Device id: [0]
Memory Read Bandwidth
Transfer Size: 100.000 MB, Bandwidth: 50.187 GB/s
Memory Write Bandwidth
Transfer Size: 100.000 MB, Bandwidth: 50.053 GB/s
Result = PASS
Run peer to peer test
Usage: mx-qual p2p [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
Devices index you specified (default: all). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {0,1,2}
Run stress test
Usage: mx-qual stress [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
The device index you specified (default: all). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {1,2,3}
-t,--time INT:INT in [2 - 1440]
Number of minutes consumed in a single stress test. (default: 2)
The deviation is subject to the influence of the machine.
-l,--loop INT:INT in [1 - 99999]
The number of test loop, each loop takes approximately 2 minutes, or the time specified by --time. (default: 1)
Run computing power test
Usage: mx-qual compute [OPTIONS] op dtype
Positionals:
op REQUIRED Support op: conv2d / multiply
dtype REQUIRED Support type: int8 / bf16
note: multiply only support bf16
Options:
-h,--help Print this help message and exit
--sparsity INT:{8,16,32} Support: 8 / 16 /32
Only used by conv2d
--iochannel INT:{256,512} Support: 256, 512
Only used by conv2d
SPU INT8 Target TOPS@8xsparsity: 707.788800 TOPS.
Actual (TensorCore) TOPS@8xSparsity: 697.528523
Actual latency: 0.023750 ms
Utilization: 98.55%
SPU INT8 Target TOPS@32xsparsity: 2831.155200 TOPS.
Actual (TensorCore) TOPS@32xSparsity: 2686.717877
Actual latency: 0.006166 ms
Utilization: 94.90%
# 2686.717877 TOPS为TensorCore在32倍稀疏率int8数据类型下实际算力
VPU BF16 Target TFLOPS: 9.830400 TFLOPS.
Actual (TensorCore) TFLOPS: 9.084315
Actual latency: 0.003166 ms
Utilization: 92.41%
# 9.084315 TFOPS为TensorCore在64倍稀疏率bf16数据类型下的实际算力
Run hardware memory test
Usage: mx-qual memtest [OPTIONS]
Options:
-h,--help Print this help message and exit
-i,--index UINT:INT in [0 - 31] ...
The device index you specified (default: all). Separate values with spaces.
Or give a list of elements, separated by commas and enclosed in curly brackets e.g. {1,2,3}
-t,--type UINT:INT in [0 - 10] ...
The memory test type you specified (default: 7)
type 0 [Walking 1 bit]
type 1 [Own address test]
type 2 [Moving inversions, ones&zeros]
type 3 [Moving inversions, 8 bit pat]
type 4 [Moving inversions, random pattern]
type 5 [Block move, 64 moves]
type 6 [Moving inversions, 32 bit pat]
type 7 [Random number sequence]
type 8 [Modulo 20, random pattern]
type 9 [Bit fade test]
type 10 [Memory stress test]
-l,--loop INT:INT in [1 - 100]
The number of test loop (default: 1)