Watchpoints for debugging in a graphics environment
Abstract
An apparatus to facilitate watchpoints for debugging in a graphics environment is disclosed. The apparatus includes processing resources to perform graphics operations using a plurality of threads; and load store pipeline hardware circuitry coupled to the processing resources to: configure a watchpoint register with a value of a watchpoint address, the watchpoint address comprising an address of a memory location in the processor; receive a memory access request from a thread of the plurality of threads; determine, using the watchpoint register, whether the memory access request is requesting access to the watchpoint address; and responsive to the memory access request requesting access to the watchpoint address, return an exception payload to the thread, the exception payload comprising watchpoint details corresponding to the watchpoint address and a scoreboard identifier (SBID) associated with the memory access request.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
A processor comprising: processing resources to perform graphics operations using a plurality of threads; and hardware circuitry coupled to the processing resources, the hardware circuitry comprising: a watchpoint register programmed with a value of a watchpoint address, the watchpoint address comprising an address of a memory location in the processor; and sequencer hardware circuitry to: determine, using the watchpoint register, whether a memory access request received from a thread of the plurality of threads is requesting access to the watchpoint address; and responsive to the memory access request requesting the access to the watchpoint address: determine an access type of an operation that accesses the watchpoint address, wherein the access type comprises at least one of a store, load, or atomic; determine, based on the access type of the operation, an address comparison technique to implement to make an address comparison corresponding to the watchpoint address; and return, usin
- Claim 2Depends on #1
The processor of claim 1, wherein the SBID is to track when registers used in the memory access request are available to use and is to relate the watchpoint address back to the thread and instruction issuing the memory access request.
- Claim 3Depends on #1
The processor of claim 1, wherein the watchpoint address is provided by a debugging application to a debug surface corresponding to the processor.
- Claim 4Depends on #3
The processor of claim 3, wherein an exception handling routine of the processor reads the watchpoint address from the debug surface and causes the watchpoint address to be stored to the watchpoint register.
- Claim 5Depends on #1
The processor of claim 1, wherein the hardware circuitry is further to return a data payload in response to the memory access request.
- Claim 6Depends on #1
The processor of claim 1, wherein, responsive to receiving the exception payload, the thread is to jump to an exception handling routine of the processor, the exception handling routine is to read the watchpoint details from a debug register corresponding to the thread, store the watchpoint details to a debug surface corresponding to the processor, and notify a debugger application via an interrupt process.
- Claim 7Depends on #1
The processor of claim 1, wherein the processor comprises a graphics processing unit (GPU).
- Claim 8Depends on #1
The processor of claim 1, wherein the processor is at least one of a single instruction multiple data (SIMD) machine or a single instruction multiple thread (SIMT) machine.
Technical Overview & Description
FIELD This document relates generally to data processing and more particularly to data processing via a general-purpose graphics processing unit. BACKGROUND Current parallel graphics data processing includes systems and methods developed to perform specific operations on graphics data such as, for example, linear interpolation, tessellation, rasterization, texture mapping, depth testing, etc. Traditionally, graphics processors used fixed function computational units to process graphics data. However, more recently, portions of graphics processors have been made programmable, enabling such processors to support a wider variety of operations for processing vertex and fragment data. To further increase performance, graphics processors typically implement processing techniques such as pipelining that attempt to process, in parallel, as much graphics data as possible throughout the different parts of the graphics pipeline. Parallel graphics processors with single instruction, multiple thread (SIMT) architectures are designed to maximize the amount of parallel processing in the graphics pipeline. In a. SIM architecture, groups of parallel threads attempt to execute program instructions synchronously together as often as possible to increase processing efficiency. A general overview of software and hardware for Sniff architectures can be found in Shane Cook, CUDA Programming Chapter 3, pages 37-51 (2013). Parallel rendering graphics architectures often process large amount of data. As part of memory accesses to the memory hierarchy when processing these large amounts of data, memory exceptions can occur. A programmer generally has few tools to determine which thread and instruction produced an incorrect result at a given memory location. In conventional approaches for a graphics environment, such as a GPU, a programmer may utilize printf debugging or add side-band logging to track which threads access which memory locations. However, these conventional approaches can chang
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (11)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Decision to Grant a European patent pursuant to Article 97(1) EPC, EP Application No. 22160405.1, Jul. 11, 2024, 2 pages, EPO.
- Notification of European publication number and information on the application of Article 67(3) EPC, EP Application No. 24193183.1, Aug. 21, 2024, 2 pages, EPO.
- Extended European Search Report, EP Application No. 22160405.1, Aug. 26, 2022, 8 pages, EPO.
- European Patent Application No. 22160405.1
- “
- Communication under Rule 71(3) EPC
- ‘
- Intention to Grant
- ’
- ”