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

标签 python distributed-computing papi compss pycompss

我正在尝试在激活跟踪系统 (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/

相关文章:

python - 具有上限/下限的 Numpy 自定义 Cumsum 函数?

algorithm - 集合交集的并行算法

android - perf_event 用于进程中的多个线程

python - Python 中的网页抓取动态内容

python将变音符号写入文件

python - Pandas :连接数据帧

jakarta-ee - 一致性: BackingMap is not resettable

hadoop - MapReduce主流程如何决定将哪个任务分配给单个工作流程?

c++ - 向量化代码时缓存未命中次数增加

c - 使用 rdmsr/rdpmc 提高分支预测精度