Hi,
The "Debugging GPU Code" [1] on MSDN suggests the following:
Independent hardware vendors who want to support GPU debugging in Visual Studio must create a DLL that implements the VSD3DDebug interface and targets their own drivers. |
However,
- I couldn't grep this VSD3D interface under:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\VisualStudioIntegration\ - The documentation is lacking on this subject, and there is no
walkthrough available that describes what exactly needs to be implemented and how.
I am developing a WDDM 2.0 [2] GFX driver for my GPU, and I wish to know
what are the minimal requirements needed to enable debugging of code running in the GPU
(GPGPU applications, e.g. OpenCL compute shaders).
To be more concrete, what are the driver ecosystem (D3D user mode and DXGK kernel mode) requirements,
and what are the interfaces that need to be implemented to support debugging.
I know such exists, because NVidia has Visual Studio Debugging support [3]:
Debug your CUDA C/C++ and DirectCompute source code directly on the GPU hardware
With their "Nsight™ Visual Studio Edition Debugger for GPU Computing" product.
Thanks,
Ofir
[1] https://msdn.microsoft.com/en-us/library/hh873126.aspx
[2] https://msdn.microsoft.com/en-us/library/windows/hardware/ff569513(v=vs.85).aspx
[3] https://developer.nvidia.com/nvidia-nsight-visual-studio-edition