如何分步调试OpenCL GPU应用程序在Windows下与NVidia GPU [英] How to Step-by-Step Debug OpenCL GPU Applications under Windows with a NVidia GPU

查看:974
本文介绍了如何分步调试OpenCL GPU应用程序在Windows下与NVidia GPU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道,你知道任何方式使用Windows(我的IDE是Visual Studio)和在NVidia GPU上运行OpenCL内核的逐步调试OpenCL内核。

I would like to know wether you know of any way to step-by-step debug OpenCL Kernel using Windows (my IDE is Visual Studio) and running OpenCL Kernels on a NVidia GPU.

到目前为止我发现的是:

What i found so far is:


  • 使用NVidias NSight,你只能配置OpenCL应用程序, / li>
  • 当前版本的gDEBugger从AMD只支持ATI / AMD GPU

  • 旧版本的gDEBugger支持NVidia GPU, 10

  • GDB调试器似乎支持它,但仅在Linux下可用

  • Intel OpenCL SDK带来了一个调试器,在CPU上运行代码,而不是在GPU上运行代码

  • with NVidias NSight you can only profile OpenCL Applications, but not debug them
  • the current version of the gDEBugger from AMD only supports ATI/AMD GPUs
  • the old version of gDEBugger supports NVidia GPUs but work is discontinued in Dec '10
  • the GDB debugger seems to support it, but is only available under Linux
  • the Intel OpenCL SDK brings a Debugger, but it only works while running the code on the CPU, not while running it on the GPU

这个配置是否真的有一个空白(Windows + NVidia GPU + OpenCL)?

Is there really a gap for this configuration (Windows + NVidia GPU + OpenCL)?

推荐答案

目前没有在nVidia硬件上调试OpenCL内核的方法。

There is currently no method of debugging into OpenCL kernels on nVidia hardware.

nSight只会调试CUDA内核。它将配置(跟踪)CUDA和OpenCL内核。我听说有传言说nVidia有一个内部版本的nSight将调试OpenCL内核,但它没有(和imho将不可能被释放,由于商业原因,即推动CUDA作为选择的计算平台。

nSight will only debug CUDA kernels. It will profile ("trace") CUDA and OpenCL kernels. I have heard rumour that nVidia have an internal version of nSight that will debug OpenCL kernels but it has not been (and imho will is unlikely to be) released due to commercial reasons, i.e. pushing CUDA as the compute platform of choice.

gDEBugger已不存在。它是几年前买的,并成为CodeXL。由于明显的原因,AMD不会支持其他供应商的硬件。

gDEBugger no longer exists. It was bought a few years ago and became CodeXL. AMD will not support other vendors' hardware for obvious reasons.

这篇关于如何分步调试OpenCL GPU应用程序在Windows下与NVidia GPU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆