调试 OpenCL™ Kernels

 This topic demonstrates how to use the Intel® SDK for OpenCL™ Applicatio

1、On the target machine, launch the Remote Debugger:

Note

Make sure that the version of the Visual Studio Remote Debugger you run on the target machine, matches the version of the Visual Studio IDE you use on the host machine. For example, if you are using Visual Studio 2015 on the host, you should use Visual Studio 2015 Remote Debugger on the target machine.

2 On the host machine, start Microsoft Visual Studio* 2015/2017, go to Tools > Options > Code Builder > GPU Kernel Debugger, set Enable Debugging to True and change the Server field to the name of the target machine (localhost in this example):

 

  • 3Add the OpenCL kernel file to your project (if it is not part of the project yet), and set breakpoints where needed.
  • 4Build your project and copy the executable and .cl files to the working directory on your target machine.
  • 5Configure your project for remote C++ Debugging:
    1. Right click on your project, choose Properties, open Configuration Properties > Debugging and select Remote Windows Debugger in the Debugger to launch list:

 

  • Set Remote Command to the full path to your executable on the target machine.
  • Set Working Directory to the directory where the binary file is located.
  • Set Remote Server name to be the host name of your target machine.
  • Click OK:

 

After the dialog is closed, click on Remote Windows Debugger, or press F5:

 

If you configured the project properly, the debugger stops execution at the breakpoints you have set:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值