How to debug C++AMP code locally in Visual Studio 2019/2022

Carl 20 Reputation points
2023-05-07T03:34:22.8333333+00:00

Graphics card: Nvidia GF 3060;

System:Windows 10 Professional;

Environment: Visual Studio 2022

Debug mode: Local Windows debugger (not remote debugging);

Debug type: Just GPU ( C++ AMP );

Every time debugging is started, an error pop-up appears: 'The target computer does not have the debugging driver for the selected debugging accelerator installed';

So, what should I do to debug the code in the kernel function section of 'parallel_for_each'???

Developer technologies | Visual Studio | Debugging
Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tianyu Sun-MSFT 34,686 Reputation points Microsoft External Staff
    2023-05-08T03:26:35.5666667+00:00

    Hello @Carl,

    Welcome to Microsoft Q&A forum.

    This document: To debug the GPU code says

    In the Debugger Type list, verify that Auto is selected. Auto is the default value. In versions before Windows 10, GPU Only is the required value instead of Auto.

    So, if you try to change to select and set the Debugger Type to Auto, will it work?

    Feel free to let us know the result.

    Sincerely,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.