Tutorial

  • 2021.1-beta
  • 06/25/2020
  • Public Content

Tutorial: Debugging with GDB* for oneAPI on
Linux*
OS Host (Beta)

This tutorial describes the basic scenarios of debugging Data Parallel C++ on CPU
, GPU, and an FPGA emulator
and OpenCL™ applications using GDB*.

Prerequisites

Check the and complete all setup steps required for your goals.

Debugging a Kernel on CPU and GPU: Major Differences

In comparison to debugging on a CPU, debugging a kernel on a GPU has a few differences:
  • All threads are vectorized and process several data elements simultaneously, if possible.
  • An execution channel (SIMD lane) is referred to as a logical unit of execution for accessing data elements within an instruction. When kernels are compiled in debug mode, most SIMD instructions have 8 execution channels. This is referred as the SIMD width.
  • Inferior calls (calling kernel functions from inside the debugger as part of expression evaluation) are not supported.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804