# US 2021/0174569 A1 · Real-time hardware-assisted gpu tuning using machine learning

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0174569 A1
- Document ID: US20210174569A1
- Status: Published application
- Kind: A1
- Application number: 17/162,550
- Filed: 2021-01-29
- Published: 2021-06-10
- Earliest claimed: 2018-01-05
- Assignees: NVIDIA Corporation
- Applicants: NVIDIA Corporation
- Inventors: Rouslan L. Dimitrov; Dale L. Kirkland; Emmett M. Kilgariff; Sachin Satish Idgunji; Siddharth Sharma
- Web page: https://patentgrep.com/patent/US20210174569A1

## CPC

- G06T 15/005: {General purpose rendering architectures}
- G06N 3/0499: Feedforward networks
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06T 15/80: Shading
- G06T 17/10: Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Graphics processing unit (GPU) performance and power efficiency is improved using machine learning to tune operating parameters based on performance monitor values and application information. Performance monitor values are processed using machine learning techniques to generate model parameters, which are used by a control unit within the GPU to provide real-time updates to the operating parameters. In one embodiment, a neural network processes the performance monitor values to generate operating parameters in real-time.

## Claims

### Claim 1

A circuit, comprising:
a multiprocessing unit, configured to execute a multithreaded application according to one or more operating parameters;
performance monitor circuits within the multiprocessing unit, configured to measure and report performance monitor values during execution of the multithreaded application; and
a control unit, configured to generate the one or more operating parameters based on the performance monitor values,
wherein the control unit includes a machine learning model configured to receive the performance monitor values as inputs and update the one or more operating parameters as outputs during execution of the multithreaded application.

### Claim 2 (depends on 1)

The circuit of claim 1, wherein the machine learning model is a neural network and the control unit is further configured to use a first set of model parameters as neural network weights prior to execution of a first context of the multithreaded application.

### Claim 3 (depends on 2)

The circuit of claim 2, wherein the control unit is further configured to use a second set of model parameters as the neural network weights during execution of a second context of the multithreaded application.

### Claim 4 (depends on 3)

The circuit of claim 3, wherein an event occurs during execution of the application, and, in response, the control unit loads the second set of model parameters.

### Claim 5 (depends on 1)

The circuit of claim 1, wherein the control unit includes a processing unit configured to execute programming instructions that implement the machine learning model.

### Claim 6 (depends on 1)

The circuit of claim 1, wherein the control unit includes logic circuits configured to structurally implement the machine learning model.

### Claim 7 (depends on 1)

The circuit of claim 1, wherein the performance monitoring values include at least one of a memory request counter, a memory system bandwidth utilization, a memory system storage capacity utilization, a cache hit rate, a count of instructions executed per clock cycle for one or more threads of the multithreaded program, and a count of instructions executed for one or more threads of the multithreaded program.

### Claim 8 (depends on 1)

The circuit of claim 1, wherein the one or more operating parameters include at least one of a maximum number of concurrently executing threads, a maximum number of active processing cores, a tile caching enable/disable flag, a core clock frequency, a memory interface clock frequency, and a core operating voltage.

### Claim 9 (depends on 1)

The circuit of claim 1, wherein the machine learning model is a neural network that includes at least three layers, the first layer configured to receive performance monitoring values and the third layer configured to generate one of the one or more operating parameters.

### Claim 10 (depends on 9)

The circuit of claim 9, wherein the one of the one or more operating parameters is generated by a single output node value.

### Claim 11 (depends on 9)

The circuit of claim 9, wherein the one of the one or more operating parameters is generated by selecting an output node having the highest activation among a set of output nodes.

### Claim 12 (depends on 1)

The circuit of claim 1, wherein the control unit is further configured to generate the one or more operating parameters based on one or more of an application state, a current operating parameter, and a driver cue.

### Claim 13

A method, comprising:
executing, by a multiprocessing unit, a multithreaded application according to one or more operating parameters;
measuring, by a performance monitor circuits within the multiprocessing unit, performance monitor values during execution of the multithreaded application;
reporting, by the performance monitor circuits within the multiprocessing unit, the performance monitor values during execution of the multithreaded application; and
generating, by a control unit, one or more operating parameters based on the performance monitor values,
wherein the control unit includes a machine learning model configured to receive the performance monitor values as inputs and update the one or more operating parameters as outputs during execution of the multithreaded application.

### Claim 14 (depends on 13)

The method of claim 13, wherein the machine learning model is a neural network and the control unit is further configured to use a first set of model parameters as neural network weights prior to execution of a first context of the multithreaded application.

### Claim 15 (depends on 14)

The method of claim 14, wherein the control unit is further configured to use a second set of model parameters as the neural network weights during execution of a second context of the multithreaded application.

### Claim 16 (depends on 13)

The method of claim 13, wherein the control unit includes a processing unit configured to execute programming instructions that implement the machine learning model or the control unit includes logic circuits configured to structurally implement the machine learning model.

### Claim 17 (depends on 13)

The method of claim 13, wherein the performance monitoring values include at least one of a memory request counter, a memory system bandwidth utilization, a memory system storage capacity utilization, a cache hit rate, a count of instructions executed per clock cycle for one or more threads of the multithreaded program, and a count of instructions executed for one or more threads of the multithreaded program.

### Claim 18 (depends on 13)

The method of claim 13, wherein the one or more operating parameters include at least one of a maximum number of concurrently executing threads, a maximum number of active processing cores, a tile caching enable/disable flag, a core clock frequency, a memory interface clock frequency, and a core operating voltage.

### Claim 19 (depends on 13)

The method of claim 13, wherein the machine learning model is a neural network that includes at least three layers, the first layer configured to receive performance monitoring values and the third layer configured to generate one of the one or more operating parameters.

### Claim 20

A non-transitory, computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to:
execute, by a multiprocessing unit, a multithreaded application according to one or more operating parameters;
measure, by a performance monitor circuits within the multiprocessing unit, performance monitor values during execution of the multithreaded application;
report, by the performance monitor circuits within the multiprocessing unit, the performance monitor values during execution of the multithreaded application; and
generate, by a control unit, one or more operating parameters based on the performance monitor values,
wherein the control unit includes a machine learning model configured to receive the performance monitor values as inputs and update the one or more operating parameters as outputs during execution of the multithreaded application.
