

On the target system, go to %USERPROFILE%\AppData\Local\Temp and open its properties. On target system make the directory %USERPROFILE%\AppData\Local\Temp accessible by Visual Studio, such that it could load kernel debug symbols. To fix that additionally to the settings described in Debug the Host Part of Application Remotely, do the following: PDB file is located on the remote machine and Visual Studio cannot find it. Refer to the tutorial to learn more about using Intel Distribution for GDB.īy now, if you tried to set a breakpoint inside the kernel offloaded to CPU and used the Remote Windows Debugger, the breakpoint was not hit. You will see when the thread hits the breakpoint. Set breakpoint at line marked as breakpoint-here in the array-transform.cpp file.įrom the Debug menu, select Start Debugging. For the debugger you intend to use (Local Windows Debugger or Remote Windows Debugger), edit the Environment field such that the value of the ONEAPI_DEVICE_SELECTOR environment variable is set to *:cpu.įor more details about the device selection, please refer to Compiler Environment Variables. Under Configuration Properties, select Debugging. In the Solution Explorer, right-click the array-transform project and select Properties. Get Started with Debugging a Kernel on CPU The default port used by the Microsoft Visual Studio 2022 Remote Debugger server is 4026. Update Remote Server Name using the remote debugger name from the target system, including the port number. Set Working Directory to the path to the deployment directory on the target system.

For example, C:\deploy\array-transform.exe. You need Properties window to complete all of the next steps in this section.įor remote debug: under Configuration Properties select Debugging.įrom the Debugger to launch drop-down menu, select Remote Windows* Debugger.įor Remote Command, specify the path to the deployment directory on the target system. To learn more about Microsoft Visual Studio remote debugger, refer to Microsoft documentation.įollow the steps below to set up the remote debugging session for the Array Transform sample: Install Microsoft Visual Studio remote debugger based on the version of Visual Studio installed on your host machine. For Fortran remote debugging, select Intel® Fortran Compiler Runtime for Windows*.

You can do this by Installing run-time dependencies and selecting Intel® oneAPI DPC++/C++ Compiler Runtime for Windows* from the list of runtime dependencies. Make sure that runtime dependencies on shared libraries from Intel® oneAPI Toolkits are available on the target system. Target system, where the application is deployed and run. Host system, where Visual Studio and oneAPI toolkits are installed Debug the Host Part of Application Remotely
