Intel® Distribution for GDB*
A Cross-architecture Application Debugger
Quickly Debug Parallel and Multithreaded Code
To implement and deploy high-performance, data-centric applications across diverse architectures, you need a debugger that is capable of handling thousands of threads running simultaneously on each device in a system.
The Intel® Distribution for GDB* application debugger is a companion tool to Intel compilers and libraries. It delivers a unified debugging experience that allows you to efficiently and simultaneously debug cross-platform parallel and threaded applications developed in C, C++, SYCL*, OpenMP*, or Fortran.
- Achieve full control over running applications, including breakpoints and single stepping.
- Debug in a single session across CPU and GPU code to quickly examine variables, read/write memory and registers, and inspect the hardware state when the application is suspended.
- Use the console-based debugging interface from the command line on your local system or any remote system, or debug with a GUI front end.
Download as Part of the Toolkit
The Intel® Distribution for GDB* is included as part of the Intel® oneAPI Base Toolkit, which is a core set of tools and libraries for developing high-performance, data-centric applications across diverse architectures.
Develop in the Cloud
Build and optimize oneAPI multiarchitecture applications using the latest Intel-optimized oneAPI and AI tools, and test your workloads across Intel® CPUs and GPUs. No hardware installations, software downloads, or configuration necessary.
Download the Stand-Alone Version
A stand-alone download of Intel® Distribution for GDB* is available.
Features
High-Level Language Debugger
The application debugger allows developers to efficiently inspect cross-architecture code run on Intel CPUs, GPUs, and accelerator devices.
Debug Anywhere on Any Device
With multitarget debugging, you can seamlessly debug the host and directly on the device, as well as on a local or remote machine.
Broad Development Environment Support
The Intel Distribution for GDB application debugger can be used on the command line. It integrates smoothly into development environments that are based on Microsoft Visual Studio*, Microsoft Visual Studio Code, and Eclipse*.
Unique Debugger Enhancements
The application debugger is a superset of GDB (GNU* Project Debugger), providing advanced debugging support for applications running on Intel CPUs, GPUs, and FPGAs. These unique commands and features aid developers in pinpointing and fixing issues more effectively.
Documentation & Code Samples
Documentation
- Get Started Guides: Linux* | Windows*
- Intel Distribution for GDB FAQ
- Set Up Intel Distribution for GDB to Debug GPUs on Windows
- Intel Distribution of GDB Easily Debugs Multiple GPU Applications at Once
- Debug with GDB
- Debug a Kernel on a CPU and GPU
- Tutorials: Debug with GDB | Debug on Linux | Debug on Windows
- Reference Sheet
- oneAPI Programming Guide: Debugging
- Release Notes
Code Samples
Learn how to access oneAPI code samples in a tool command line or IDE.
This SYCL code sample—a small computation kernel—demonstrates key debugger features such as breakpoints, thread switching, scheduler locking, and a Single Instruction Multiple Data (SIMD) lane view for CPU, GPU, and FPGA emulator debugging, showing how to effectively debug applications.
This exercise presents two versions of the program: one with bugs and another fixed. The aim is to locate and rectify bugs using the debugger and providing practical experience in debugging.
Specifications
Processors:
- Intel® Xeon® processors
- Intel® Xeon® Scalable processors
- Intel® Core™ processors
- Intel Atom® processors
GPUs:
- Intel® Arc™ graphics
- Intel® Data Center GPU Flex Series
- Intel® Data Center GPU Max Series
FPGAs:
- FPGA emulation
Language:
- SYCL
Note Must have Intel oneAPI Base Toolkit installed
- C, C++
- Fortran
- OpenMP
Note Requires Microsoft Visual Studio on Windows
Host and target operating systems:
- Windows
- Linux
Development environments:
- Microsoft Visual Studio and Microsoft Visual Studio Code
- Eclipse IDE
- Console-based debugging from the command line
Get Help
Your success is our success. Access these support resources when you need assistance.
Stay In the Know on All Things CODE
Sign up to receive the latest trends, tutorials, tools, training, and more to
help you write better code optimized for CPUs, GPUs, FPGAs, and other
accelerators—stand-alone or in any combination.