get current aicore frequency无法获取当前aicore频率,且将生成的OPPROF中的可视化文件导入MindStudio Insight后内容为空
点赞0收藏0回复0
分享
举报
get current aicore frequency无法获取当前aicore频率,且将生成的OPPROF中的可视化文件导入MindStudio Insight后内容为空
已解决
发表于2026-03-23 20:22:01
0 查看
环境
Atlas200I DK A2开发套件。
get_env.sh > env.txt添加到附件。
问题描述
使用msprof op xxx输出如下:
(base) HwHiAiUser@davinci-mini:~/study/Softplus/AclNNInvocation/output$ msprof op execute_op
2026-03-23 20:07:12 [INFO] Op profiling analysis start.
2026-03-23 20:07:12 [INFO] Running device task: DeviceProf
[INFO] Set device[0] success
[INFO] Get RunMode[0] success
[INFO] Init resource success
Read beta from file: 1.000000, threshold: 20.000000
[INFO] Set input success
[INFO] Copy input[0] success
[INFO] Create stream success
[INFO] Execute GetWorkspaceSize success, workspace size 0
[INFO] <ProfData> Start profiling on device 0, kernel: Softplus_a43f2b44ad350a73e19bdedd9cdc18a5_0
[INFO] <KernelReplay> 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.
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
[WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
Runtime: 0.065494s
[INFO] Synchronize stream success
[INFO] Copy output[0] success
[INFO] Write output success
[INFO] Run op success
[INFO] Reset Device success
[INFO] Destory resource success
2026-03-23 20:07:21 [INFO] Profiling running finished. All task success.
2026-03-23 20:07:21 [INFO] Start analyze kernel on device: device0, kernel: Softplus_a43f2b44ad350a73e19bdedd9cdc18a5_0, name is: 0
2026-03-23 20:07:21 [WARN] Current Freq value invalid. Please check op_basic_info.txt
2026-03-23 20:07:21 [INFO] Save profiling data with metric [PipeUtilization] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [ArithmeticUtilization] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [L2Cache] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [Memory] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [ResourceConflictRatio] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [MemoryL0] success.
2026-03-23 20:07:21 [INFO] Save profiling data with metric [MemoryUB] success.
2026-03-23 20:07:25 [INFO] Performance Summary Report:
1) aicore compute usage lower than 20%.
2026-03-23 20:07:25 [INFO] Profiling results saved in /home/HwHiAiUser/study/Softplus/AclNNInvocation/output/OPPROF_20260323200712_QTMOWSSEFAXGJGWX
2026-03-23 20:07:25 [INFO] Profiling data parse finished.
2026-03-23 20:07:25 [INFO] Op profiling finish. Welcome to next use.
其中有多个关于aicore freq的警告如:
> [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function.
> [WARN] Current Freq value invalid. Please check op_basic_info.txt
下面是op_basic_info.txt文件中的内容:
Op Name=Softplus_a43f2b44ad350a73e19bdedd9cdc18a5_0
Block Dim=1
Run Soc Version=Ascend310B4
Device Id=0
Pid=209510
Current Freq=N/A // 无法获取
Rated Freq=1224
Is MC2=0
Is Lccl=0
环境
get_env.sh > env.txt添加到附件。问题描述
msprof op xxx输出如下:(base) HwHiAiUser@davinci-mini:~/study/Softplus/AclNNInvocation/output$ msprof op execute_op 2026-03-23 20:07:12 [INFO] Op profiling analysis start. 2026-03-23 20:07:12 [INFO] Running device task: DeviceProf [INFO] Set device[0] success [INFO] Get RunMode[0] success [INFO] Init resource success Read beta from file: 1.000000, threshold: 20.000000 [INFO] Set input success [INFO] Copy input[0] success [INFO] Create stream success [INFO] Execute GetWorkspaceSize success, workspace size 0 [INFO] <ProfData> Start profiling on device 0, kernel: Softplus_a43f2b44ad350a73e19bdedd9cdc18a5_0 [INFO] <KernelReplay> 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. [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. [WARN] <LoadFrequency> Can not get current aicore frequency.Please check dlopen function. Runtime: 0.065494s [INFO] Synchronize stream success [INFO] Copy output[0] success [INFO] Write output success [INFO] Run op success [INFO] Reset Device success [INFO] Destory resource success 2026-03-23 20:07:21 [INFO] Profiling running finished. All task success. 2026-03-23 20:07:21 [INFO] Start analyze kernel on device: device0, kernel: Softplus_a43f2b44ad350a73e19bdedd9cdc18a5_0, name is: 0 2026-03-23 20:07:21 [WARN] Current Freq value invalid. Please check op_basic_info.txt 2026-03-23 20:07:21 [INFO] Save profiling data with metric [PipeUtilization] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [ArithmeticUtilization] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [L2Cache] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [Memory] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [ResourceConflictRatio] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [MemoryL0] success. 2026-03-23 20:07:21 [INFO] Save profiling data with metric [MemoryUB] success. 2026-03-23 20:07:25 [INFO] Performance Summary Report: 1) aicore compute usage lower than 20%. 2026-03-23 20:07:25 [INFO] Profiling results saved in /home/HwHiAiUser/study/Softplus/AclNNInvocation/output/OPPROF_20260323200712_QTMOWSSEFAXGJGWX 2026-03-23 20:07:25 [INFO] Profiling data parse finished. 2026-03-23 20:07:25 [INFO] Op profiling finish. Welcome to next use.op_basic_info.txt文件中的内容:但是把可视化文件
visualize_data.bin导入MindStudio Insight后发现大部分内容为空: