gpt4 book ai didi

c++ - VTune 探查器给出错误 : "The Data Cannot be displayed,there is no viewpoint available for data "

转载 作者:IT王子 更新时间:2023-10-29 00:26:17 25 4
gpt4 key购买 nike

我想优化我在 linux 平台上用 c++ 编写的代码。为此,我正在使用 Intel VTune Performance Analyzer Profiler。当我识别 Hotspots 时,它成功运行了二进制可执行文件,其路径我已经指定,然后它给出了错误:无法显示数据,没有可用于数据的观点”

谁能帮忙解决这个错误。

最佳答案

我刚刚解决了同样的问题,希望对你来说还不算太晚。

首先,您应该启用调试信息,即使用-g选项进行编译:

icpc -g -o output source.cpp

gcc -g -o output source.cpp

如果您更喜欢 GNU 编译器。

发现了另一个步骤(非平凡的)here : 它说至少对于 Ubuntu 你必须输入:

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

这个操作帮助了我,我希望它能帮助你和其他将来遇到这个问题的人。

关于c++ - VTune 探查器给出错误 : "The Data Cannot be displayed,there is no viewpoint available for data ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15244487/

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