Create a matrix multiplication A(m,k)*B(k,n) and execute it multiple times. Then, calculate the computing power of the AI Core in the entire card, server, or chip, and the real-time power in full computing power mode based on the computation amount and the time used for performing matrix multiplications. For
Operator Operation Type |
Parameter |
Description |
Value |
|---|---|---|---|
FP16 (all device models) BF16 ( INT8 ( |
m |
Rows in matrix A |
256 |
k |
Columns in matrix A and rows in matrix B |
32 |
|
n |
Columns in matrix B |
128 |
|
INT8 ( HF32 ( FP8 (Ascend 950PR and 950DT products) MXFP8 (Ascend 950PR and 950DT products) HIF8 (Ascend 950PR and 950DT products) |
m |
Rows in matrix A |
256 |
k |
Columns in matrix A and rows in matrix B |
64 |
|
n |
Columns in matrix B |
128 |
|
FP32 ( |
m |
Rows in matrix A |
128 |
k |
Columns in matrix A and rows in matrix B |
32 |
|
n |
Columns in matrix B |
64 |
|
MXFP4 (Ascend 950PR and 950DT products) |
m |
Rows in matrix A |
512 |
k |
Columns in matrix A and rows in matrix B |
64 |
|
n |
Columns in matrix B |
128 |
Operator Operation Type |
Parameter |
Description |
Value |
|---|---|---|---|
FP16 ( |
n |
Vector length |
32760 |
FP32 ( HF32 ( BF16 ( |
n |
Vector length |
16380 |
FP32 (Ascend 950PR and 950DT products) |
n |
Vector length |
16128 |
FP16 (Ascend 950PR and 950DT products) BF16 (Ascend 950PR and 950DT products) |
n |
Vector length |
32256 |
INT8 (Ascend 950PR and 950DT products) |
n |
Vector length |
64512 |
The Ascend AI Processor presets performance thresholds. You are advised to perform the computing power test when the device temperature is stable and lower than 90°C. This prevents frequency reduction from being triggered due to high device temperature, resulting in inaccurate computing power test results.
You can run either of the following commands to list the parameters of the computing power test command:
ascend-dmi -f -h
ascend-dmi -f --help
Table 3 lists only a test-specific parameter. For details about other common parameters, see Common Parameters.
Parameter |
Description |
Mandatory |
|---|---|---|
[-f, --flops] |
Measures the computing power of the entire card, chip, or server. |
Yes |
[-t, --type] |
Specifies the operator operation type, which can be fp16, fp32, hf32, bf16, int8, fp8, mxfp8, hif8, or mxfp4. If this parameter is not specified, fp16 is used by default. |
No |
[--all] |
If this parameter is specified, the computing power of the entire server is tested, that is, the sum of the computing power of all NPUs is calculated. This parameter cannot be used with -d. |
No |
[-et, --et, --execute-times] |
Specifies the number of times that matrix multiplication is performed on a single AI Core on a specified chip. If not specified, the default value 60 is used. The value ranges from 10 to 80, with the unit being 100,000. |
No |
Note:
|
||
ascend-dmi -f -d 2 --et 60

ascend-dmi -f -t int8 -d 2 --et 60


ascend-dmi -f -t hf32

ascend-dmi -f -t fp32 -q

ascend-dmi -f -t bf16 -q

ascend-dmi -f -t hif8 -q
-----------------------------------------------------------------------------------------
Device Execute Times Duration(ms) TFLOPS@HIF8 Power(W)
-----------------------------------------------------------------------------------------
0 504,000,000 2320 804.040 377.7
-----------------------------------------------------------------------------------------
ascend-dmi -f -t mxfp4 -q
-----------------------------------------------------------------------------------------
Device Execute Times Duration(ms) TFLOPS@MXFP4 Power(W)
-----------------------------------------------------------------------------------------
0 504,000,000 1386 1561.195 373
-----------------------------------------------------------------------------------------
ascend-dmi -f -q --all
If --all is specified, Execute Times, Duration (ms), and Power (W) indicate the average values of other indicators of the entire server. Device is set to all, indicating all NPUs. TFLOPS@FP16 indicates the sum of the computing power of all devices.
------------------------------------------------------------------------ Device Execute Times Duration(ms) TFLOPS@FP16 Power(W) ------------------------------------------------------------------------ all 360000000 1702 2509.719 206.625015 ------------------------------------------------------------------------
Table 4 describes the server parameters in the preceding figures.
Parameter |
Description |
|---|---|
Device |
Indicates the device ID. |
Execute Times |
|
Duration(ms) |
Indicates the time used to complete the matrix multiplication computation. |
TFLOPS@FP16 |
Indicates the calculated computing power. FP16 is the specified operator running type. |
Power(W) |
Specifies real-time power in full computing power mode. NOTE:
You do not need to pay attention to the chip power during the computing power test because the power consumption data is collected periodically and there is an interval between two collections. When the computing power test period is too short, power consumption data fluctuates. Use a more specific power consumption test option to test the power consumption. |
To ensure the correctness and accuracy of the test result, perform the computing power test separately.