05-30-2018 09:51 AM
My goal is to debug OpenCL kernels on an Intel GPU using Visual Studio 2017. My Intel GPU is not being used for graphics, so I should be able to use a single machine according to the “Developer Guide for Intel SDK for OpenCL Applications.” Are there any instructions or guides on how to debug a kernel on an Intel GPU on a setup like mine? I have been trying to piece together relevant portions of old guides and stackoverflow posts, but nothing seems to work. It appears that there have been several changes to the Visual Studio support in the past couple years, so no source of information has a complete explanation of the current state of development for this scenario. The “Debugging OpenCL Kernels on GPU” steps in the Developer Guide for Intel SDK for OpenCL Applications only goes into detail for remote debug sessions. When I try to follow the steps in it, I just get errors about gdbserver not working: INTEL_GT_DEBUGGER: (7594099) Starting gdbserver on localhost INTEL_GT_DEBUGGER: (7594286) gdbserver exited with 0. INTEL_GT_DEBUGGER: (7595134) Attempt 1/3 failed: One or more errors occurred. INTEL_GT_DEBUGGER: (7596136) Attempt 2/3 failed: One or more errors occurred. INTEL_GT_DEBUGGER: (7597138) Attempt 3/3 failed: One or more errors occurred. INTEL_GT_DEBUGGER: (7597155) Unable to connect to remote target localhost. Please make sure that the target machine is accessible. I have also found that Intel OpenCL platforms are completely unavailable within debug sessions unless I disable “Enable OpenCL API Debugger” in Code-Builder. Is that expected behavior?