# US 2019/0317737 A1 · Methods and apparatus to recommend instruction adaptations to improve compute performance

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

- Number: US 2019/0317737 A1
- Document ID: US20190317737A1
- Status: Published application
- Kind: A1
- Application number: 16/455,259
- Filed: 2019-06-27
- Published: 2019-10-17
- Earliest claimed: 2019-06-27
- Assignees: Intel Corporation
- Applicants: Intel Corporation
- Inventors: Thijs Metsch; Mohammad Mejbah Ul Alam; Justin Gottschlich
- Web page: https://patentgrep.com/patent/US20190317737A1

## CPC

- G06F 8/35: model driven
- G06F 8/70: Software maintenance or management
- G06N 3/0442: characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU]
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, apparatus, systems and articles of manufacture to recommend instruction adaptations to improve compute performance are disclosed. An example apparatus includes a pattern detector to detect an execution pattern from an execution profile provided by a server, the execution profile associated with an instruction stored in an instruction repository. An adaptation identifier is to identify a possible instruction adaptation that may be applied to the instruction associated with the execution pattern. A model processor is to predict, using a machine learning model, an expected performance improvement of the adaptation. A result comparator is to determine whether the expected performance improvement meets an threshold. An instruction editor is to, in response to the result comparator determining that the expected performance improvement meets the threshold, apply the possible instruction adaptation to the instruction in the instruction repository.

## Claims

### Claim 1

An apparatus for recommending instruction adaptations to improve compute performance, the apparatus comprising:
a pattern detector to detect an execution pattern from an execution profile provided by a server, the execution profile associated with an instruction stored in an instruction repository;
an adaptation identifier to identify a possible instruction adaptation that may be applied to the instruction associated with the execution pattern;
a model processor to execute a machine learning model to predict an expected performance improvement of the adaptation;
a result comparator to determine whether the expected performance improvement meets a threshold; and
an instruction editor to, in response to the result comparator determining that the expected performance improvement meets the threshold, apply the possible instruction adaptation to the instruction in the instruction repository.

### Claim 2 (depends on 1)

The apparatus of claim 1, further including a profile accessor to access the execution profile from the server.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the server is to operate in a function as a service environment.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the model processor is further to determine a confidence of the expected performance improvement, and the instruction editor is to apply the possible instruction adaptation in response to the result comparator determining that the confidence meets a confidence threshold.

### Claim 5 (depends on 1)

The apparatus of claim 1, further including a dashboard output a notice of the possible adaptation.

### Claim 6 (depends on 5)

The apparatus of claim 5, wherein the instruction editor is to apply the possible instruction adaptation in response to an instruction received via the dashboard.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the adaptation includes insertion of a pragma statement into the instruction.

### Claim 8

At least one non-transitory computer readable storage medium comprising instructions that, when executed, cause at least one processor to at least:
detect an execution pattern from an execution profile associated with code in an instruction repository;
identify a possible adaptation that may be applied to the code based on the execution pattern;
execute a machine learning model to predict an expected performance improvement of the adaptation;
determine whether the expected performance improvement meets an improvement threshold;
in response to the determining that the expected performance improvement meets the improvement threshold, apply the possible adaptation to the code.

### Claim 9 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein execution pattern is accessed from a server that is to operate in a function as a service environment.

### Claim 10 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, cause the at least one processor to determine a prediction confidence of the expected performance improvement, and apply the possible adaptation in response to a determination that the prediction confidence meets a confidence threshold.

### Claim 11 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the instructions, when executed, cause the at least one processor to notify a developer associated with the code of the possible adaptation.

### Claim 12 (depends on 11)

The at least one computer readable storage medium of claim 11, wherein the instructions, when executed, cause the at least one processor to apply the possible adaptation in response to an instruction from the developer.

### Claim 13 (depends on 8)

The at least one computer readable storage medium of claim 8, wherein the adaptation includes insertion of a pragma statement into the code.

### Claim 14

A method for recommending instruction adaptations to improve compute performance, the method comprising:
detecting an execution pattern from an execution profile provided by a server, the execution profile associated with an instruction stored in an instruction repository;
identifying a possible instruction adaptation that may be applied to the instruction associated with the execution pattern;
predicting, using a machine learning model, an expected performance improvement of the adaptation;
determining whether the expected performance improvement meets a threshold; and
in response to determining that the expected performance improvement meets the threshold, applying the possible instruction adaptation to the instruction.

### Claim 15 (depends on 14)

The method of claim 14, wherein the server is to operate in a function as a service environment.

### Claim 16 (depends on 14)

The method of claim 14, further including determining a confidence of the expected performance improvement, and the applying of the possible instruction adaptation is further performed in response to a determination that the confidence meets a confidence threshold.

### Claim 17 (depends on 14)

The method of claim 14, further including notifying a developer associated with the instruction of the possible adaptation.

### Claim 18 (depends on 17)

The method of claim 17, wherein the applying of the possible instruction adaptation is further performed in response to an instruction from the developer.

### Claim 19 (depends on 14)

The method of any one of claim 14, wherein the adaptation includes insertion of a pragma statement into the instruction.

### Claim 20

An apparatus for recommending code adaptations to improve compute performance, the apparatus comprising:
means for detecting an execution pattern from an execution profile provided by a server, the execution profile associated with code stored in an instruction repository;
means for identifying a possible code adaptation that may be applied to the code associated with the execution pattern;
means for predicting, using a machine learning model, an expected performance improvement of the adaptation;
means for determining whether the expected performance improvement meets a threshold;
means for applying, in response to determining that the expected performance improvement meets the threshold, the possible code adaptation to the code.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the server is to operate in a function as a service environment.

### Claim 22 (depends on 20)

The apparatus of claim 20, wherein the means for predicting is further to determine a confidence of the expected performance improvement, and the means for applying is to apply the adaptation in response to a determination that the confidence meets a confidence threshold.

### Claim 23 (depends on 20)

The apparatus of claim 20, further including means for notifying a developer associated with the code of the possible adaptation.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the means for applying is further to apply the code adaptation in response to an instruction from the developer.

### Claim 25 (depends on 20)

The apparatus of claim 20, wherein the adaptation includes insertion of a pragma statement into the code.
