简体   繁体   English

在 CPU 上调试 OpenCL

[英]Debugging OpenCL on CPU

I'm trying to debug OpenCL kernels on CPU target, following this guide without success.我正在尝试在 CPU 目标上调试 OpenCL 内核,但没有成功遵循本指南 The kernel builds, app runs, but the breakpoints are not hit.内核构建,应用程序运行,但未命中断点。 There is a statement "The Debugger requires setting the global ID of the work-item to debug before the debugging session starts.", but no information on where to set or how the global ID.有一条语句“调试器需要在调试会话开始之前设置要调试的工作项的全局 ID。”,但没有关于在哪里设置或如何设置全局 ID 的信息。 Anybody has a working boilerplate project for this or suggestions?任何人都有一个工作样板项目或建议? thanks!谢谢!

尝试使用 Oclgrind https://github.com/jrprice/Oclgrind https://github.com/jrprice/Oclgrind/wiki进行调试 示例:Oclgrind -i ./appl

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM