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:
- 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: