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'???

C++
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.
3,590 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
958 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 28,581 Reputation points Microsoft Vendor
    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