无法使用 NVidia Visual Profiler 分析 OpenCL 代码

发布于 2024-09-05 11:11:06 字数 227 浏览 2 评论 0原文

我有一个 OpenCL 代码,它添加两个数组并打印输出。我想使用 CUDA Toolkit 3.0 附带的 NVidia Visual Profiler 来分析该程序。我选择了适当的程序(.exe)来分析和程序目录。分析器成功运行代码,但无法生成分析结果。它给出错误“CSV 文件中发现空标题”。这可能是什么问题?是否需要使用 NVidia 的 CUDA 编译器构建代码才能进行分析?请在这方面帮助我。

谢谢, 拉克什·K.

I have an OpenCL code which adds two arrays and prints the output. I want to profile this program using NVidia Visual Profiler that comes with CUDA Toolkit 3.0. I selected the appropriate program(.exe) to profile and the program directory. The profiler runs the code successfully but is unable to generate profiling results. It gives the error "Empty Header found in CSV file". What could be the problem for this? Is it necessary to build the code using NVidia's CUDA compiler to be able to profile? Please help me in this regard.

Thanks,
Rakesh K.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笑叹一世浮沉 2024-09-12 11:11:38

提供一个我的问题示例,可能会有所帮助:

问题:

Nvidia Visual Profiler 在我的 OpenCL 代码的分析结果中只是提示无时间线,但分析 Nvidia 提供的 OpenCL 示例,如 MatrixMul、VectorAdd,是可以的。 (在命令行中,我的代码运行正常)

解决方案:

我尝试在windows cmd而不是mingw shell中运行我的程序,它提示找不到“libgcc_s_dw2-1.dll”。 (我在windows 7中使用codeblock+mingw)。将 libgcc_s_dw2-1.dll 从 mingw 复制到我的代码工作目录后,Nvidia Visual Profiler 现在可以成功分析我的代码。该问题是由 Visual Profiler 调用 windows cmd 而不是 mingw shell 引起的。
希望这可以帮助其他一些人。
祝你好运!

Offer a problem example of mine, might be help:

problem:

Nvidia Visual Profiler just prompts No Timeline in Analysis Results of my OpenCL code, but profiling Nvidia offered OpenCL example, like MatrixMul, VectorAdd, is ok. (In command line, my code runs ok)

solution:

I try to run my program in windows cmd instead of mingw shell, and it prompts can't find "libgcc_s_dw2-1.dll". (I use codeblock+mingw in windows 7). After libgcc_s_dw2-1.dll is copied from mingw to my code working directory, Nvidia Visual Profiler can profile my code successfully now. The problem is caused by that Visual Profiler calling windows cmd instead of mingw shell.
Hope this can help some others.
Good luck!

把回忆走一遍 2024-09-12 11:11:33

您能否检查您的驱动程序和 OpenCL Visual Profiler 版本是否同步。即您是否安装了正确的 3.0 驱动程序?

另外,要问一个显而易见的问题,您使用的是 OpenCL Visual Profiler 而不是 CUDA Visual Profiler?在 3.0 中,它们是两个独立的工具。在 3.1(目前处于测试版)中,它们被合并为一个工具。

Can you check that your driver and your OpenCL Visual Profiler versions are in sync. i.e. have you installed the correct 3.0 driver?

Also, to ask the obvious, are you using the OpenCL Visual Profiler and not the CUDA Visual Profiler? In 3.0 they are two separate tools. In 3.1 (currently in beta) they are merged into a single tool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文