其中, msprof op 采集到的 visualize_data.bin 导入 MindStudio IDE 后 Timeline 等均为空:
仅有 Details 有一点相关信息:
以下是 msprof op 执行的日志:
HwHiAiUser@orangepiaipro-20t ~/ascend-blas/build
(base) > $ msprof op --application="./tests/test_gemm 1024 512 512 fp16 0" --output=./profile_data
2026-03-08 16:49:58 [WARN] The option "--application" will be deprecated in future version. It is recommended to specify <app> [arguments] instead.
2026-03-08 16:49:58 [INFO] Op profiling analysis start.
2026-03-08 16:49:58 [INFO] Running device task: DeviceProf
[INFO] <ProfData> Start profiling on device 0, kernel: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadINS2_19MmadAtlasA2PingpongILb1EEENS_9GemmShapeILj1
28ELj256ELj256EEENS7_ILj128ELj256ELj64EEENS2_8GemmTypeIDhNS_6layout8RowMajorELN7AscendC9TPositionE0EEESF_SF_vNS2_4Tile8TileCopyINS_4Arch7AtlasA2ESF_SF_SF_vEENSG_8TileMmadISJ_SF
_SF_vEEEEvNS3_24GemmIdentityBlockSwizzleILj3ELj0EEEEEEvNT_6ParamsE
[WARN] <PrepareClearL2CacheParam> Cannot get L2Cache info when clear L2Cache.
[INFO] <WarmUp> Warm Up enabled. times:5
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
[GEMM] 1024x512x512 | 460.11 GFLOPS | 1.167 ms
Compare success.
2026-03-08 16:50:12 [INFO] Profiling running finished. All task success.
2026-03-08 16:50:12 [INFO] Start analyze kernel on device: device0, kernel: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadI_2284444352299729476, name
is: 0
2026-03-08 16:50:12 [WARN] Current Freq value invalid. Please check op_basic_info.txt
2026-03-08 16:50:12 [WARN] Access profiling data file [/home/HwHiAiUser/Git/ascend-blas/build/profile_data/OPPROF_20260308164958_WJMKJCRYNSVCIDPI/device0/_ZN7Catlass13KernelAd
apterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadI_2284444352299729476/0/dump/L2Cache.bin] failed, maybe do not contain this file or it is not readable. Failed to collect l2Ca
che evict.
2026-03-08 16:50:12 [WARN] Failed to parse l2cache evict value
2026-03-08 16:50:12 [INFO] Save profiling data with metric [PipeUtilization] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [ArithmeticUtilization] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [L2Cache] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [Memory] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [ResourceConflictRatio] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [MemoryL0] success.
2026-03-08 16:50:12 [INFO] Save profiling data with metric [MemoryUB] success.
2026-03-08 16:50:15 [INFO] Operator Basic Information:
Op Name: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadINS2_19MmadAtlasA2PingpongILb1EEENS_9GemmShapeILj128ELj256ELj256EEENS7_ILj128ELj256ELj64
EEENS2_8GemmTypeIDhNS_6layout8RowMajorELN7AscendC9TPositionE0EEESF_SF_vNS2_4Tile8TileCopyINS_4Arch7AtlasA2ESF_SF_SF_vEENSG_8TileMmadISJ_SF_SF_vEEEEvNS3_24GemmIdentityBlockSwizz
leILj3ELj0EEEEEEvNT_6ParamsE
Op Type: cube
Task Duration(us): 150.708328
Block Dim: 1
Mix Block Dim:
Device Id: 0
Pid: 19178
Current Freq: N/A
Rated Freq: 1224
2026-03-08 16:50:15 [INFO] Profiling results saved in /home/HwHiAiUser/ascend-blas/build/profile_data/OPPROF_20260308164958_WJMKJCRYNSVCIDPI
2026-03-08 16:50:15 [INFO] Profiling data parse finished.
2026-03-08 16:50:15 [INFO] Op profiling finish. Welcome to next use.
想尝试在 Ascend 310B1 上使用
msprof去分析程序和算子的瓶颈所在, 但使用msprof op和/var/msprof采集到的数据均为空, 采用的 CANN 版本为社区版8.5.0.alpha002.其中,
msprof op采集到的visualize_data.bin导入 MindStudio IDE 后 Timeline 等均为空:仅有 Details 有一点相关信息:
以下是
msprof op执行的日志:HwHiAiUser@orangepiaipro-20t ~/ascend-blas/build (base) > $ msprof op --application="./tests/test_gemm 1024 512 512 fp16 0" --output=./profile_data 2026-03-08 16:49:58 [WARN] The option "--application" will be deprecated in future version. It is recommended to specify <app> [arguments] instead. 2026-03-08 16:49:58 [INFO] Op profiling analysis start. 2026-03-08 16:49:58 [INFO] Running device task: DeviceProf [INFO] <ProfData> Start profiling on device 0, kernel: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadINS2_19MmadAtlasA2PingpongILb1EEENS_9GemmShapeILj1 28ELj256ELj256EEENS7_ILj128ELj256ELj64EEENS2_8GemmTypeIDhNS_6layout8RowMajorELN7AscendC9TPositionE0EEESF_SF_vNS2_4Tile8TileCopyINS_4Arch7AtlasA2ESF_SF_SF_vEENSG_8TileMmadISJ_SF _SF_vEEEEvNS3_24GemmIdentityBlockSwizzleILj3ELj0EEEEEEvNT_6ParamsE [WARN] <PrepareClearL2CacheParam> Cannot get L2Cache info when clear L2Cache. [INFO] <WarmUp> Warm Up enabled. times:5 [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. [GEMM] 1024x512x512 | 460.11 GFLOPS | 1.167 ms Compare success. 2026-03-08 16:50:12 [INFO] Profiling running finished. All task success. 2026-03-08 16:50:12 [INFO] Start analyze kernel on device: device0, kernel: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadI_2284444352299729476, name is: 0 2026-03-08 16:50:12 [WARN] Current Freq value invalid. Please check op_basic_info.txt 2026-03-08 16:50:12 [WARN] Access profiling data file [/home/HwHiAiUser/Git/ascend-blas/build/profile_data/OPPROF_20260308164958_WJMKJCRYNSVCIDPI/device0/_ZN7Catlass13KernelAd apterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadI_2284444352299729476/0/dump/L2Cache.bin] failed, maybe do not contain this file or it is not readable. Failed to collect l2Ca che evict. 2026-03-08 16:50:12 [WARN] Failed to parse l2cache evict value 2026-03-08 16:50:12 [INFO] Save profiling data with metric [PipeUtilization] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [ArithmeticUtilization] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [L2Cache] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [Memory] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [ResourceConflictRatio] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [MemoryL0] success. 2026-03-08 16:50:12 [INFO] Save profiling data with metric [MemoryUB] success. 2026-03-08 16:50:15 [INFO] Operator Basic Information: Op Name: _ZN7Catlass13KernelAdapterI17CustomBasicMatmulINS_4Gemm5Block9BlockMmadINS2_19MmadAtlasA2PingpongILb1EEENS_9GemmShapeILj128ELj256ELj256EEENS7_ILj128ELj256ELj64 EEENS2_8GemmTypeIDhNS_6layout8RowMajorELN7AscendC9TPositionE0EEESF_SF_vNS2_4Tile8TileCopyINS_4Arch7AtlasA2ESF_SF_SF_vEENSG_8TileMmadISJ_SF_SF_vEEEEvNS3_24GemmIdentityBlockSwizz leILj3ELj0EEEEEEvNT_6ParamsE Op Type: cube Task Duration(us): 150.708328 Block Dim: 1 Mix Block Dim: Device Id: 0 Pid: 19178 Current Freq: N/A Rated Freq: 1224 2026-03-08 16:50:15 [INFO] Profiling results saved in /home/HwHiAiUser/ascend-blas/build/profile_data/OPPROF_20260308164958_WJMKJCRYNSVCIDPI 2026-03-08 16:50:15 [INFO] Profiling data parse finished. 2026-03-08 16:50:15 [INFO] Op profiling finish. Welcome to next use.求指教.