gpt4 book ai didi

python - 修复 COMPSs 跟踪错误 : PAPI_read failed for thread X evtset X (papi_hwc. c:*)

转载 作者:太空宇宙 更新时间:2023-11-03 14:10:31 24 4
gpt4 key购买 nike

我正在尝试在激活跟踪系统 (extrae) 的情况下运行 COMPS。我首先有一个安装问题,但我解决了这个问题,感谢这个问题:

How to fix libpapi.so.* cannot open shared object file when running (py)COMPSs with tracing?

但是,现在我面临一个新的 PAPI 问题。 COMPSs 运行时似乎已正确加载但 Extrae 报告此错误:

Extrae: Error! Hardware counter PAPI_L3_TCM (0x80000008) cannot be added in set 1 (thread 0)
Extrae: Error! Hardware counter PAPI_FP_INS (0x80000034) cannot be added in set 1 (thread 0)
Extrae: Error! Hardware counter PAPI_SR_INS (0x80000036) cannot be added in set 2 (thread 0)
Extrae: Error! Hardware counter PAPI_BR_UCN (0x8000002a) cannot be added in set 2 (thread 0)
Extrae: Error! Hardware counter PAPI_BR_CN (0x8000002b) cannot be added in set 2 (thread 0)
Extrae: Error! Hardware counter PAPI_VEC_SP (0x80000069) cannot be added in set 2 (thread 0)
Extrae: Error! Hardware counter RESOURCE_STALLS (0x40000023) cannot be added in set 2 (thread 0)

尽管我得到了错误:

Extrae: Successfully initiated with 1 tasks and 1 threads

WARNING: IT Properties file is null. Setting default values

[ API] - Deploying COMPSs Runtime v1.4 (build 20160722-1520.r59)
[ API] - Starting COMPSs Runtime v1.4 (build 20160722-1520.r59)

但是在启动运行时后,我进入了一个无限循环:

Extrae: PAPI_read failed for thread 1 evtset 2 (papi_hwc.c:669)
Extrae: PAPI_read failed for thread 0 evtset 1 (papi_hwc.c:669)

即使他们没有硬件,我也希望能够获得踪迹PAPI 计数器。如何禁用它们或修复错误?

最佳答案

检查并禁用不可用的 PAPI 计数器

看来您的机器上没有可用的计数器。使用:

papi_avail -a

查看可用的 papi 计数器。编辑以下配置文件:/opt/COMPSs/Runtime/configuration/xml/tracing/*.xml并从 <counters> 中删除有问题的 PAPI 计数器部分。或者,您可以使用:

/opt/COMPSs/Dependencies/extrae/bin/papi_best_set COUNTER_NAME_#1, COUNTER_NAME_#2, COUNTER_NAME_#3, ...

查看 PAPI 计数器集是否存在不兼容问题。

禁用所有计数器

如果你想禁用所有这些,只需更改文件:

  • extrae_basic.xml
  • extrae_advanced.xml
  • extrae_task.xml

/opt/COMPSs/Runtime/configuration/xml/tracing/文件夹并更改行:

<counters enabled="yes">

对于:

<counters enabled="no">

关于python - 修复 COMPSs 跟踪错误 : PAPI_read failed for thread X evtset X (papi_hwc. c:*),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38529625/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com