# US 2026/0099361 A1 · Hardware-aware thread scheduling for recommendation models

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

- Number: US 2026/0099361 A1
- Document ID: US20260099361A1
- Status: Published application
- Kind: A1
- Application number: 19/005,287
- Filed: 2024-12-30
- Published: 2026-04-09
- Earliest claimed: 2024-10-04
- Assignees: Advanced Micro Devices, Inc.
- Applicants: Advanced Micro Devices, Inc.
- Inventors: Onur Kayiran; Rishabh Jain; Teyuh Alice Chou; John Kalamatianos
- Web page: https://patentgrep.com/patent/US20260099361A1

## CPC

- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5033: {considering data affinity}
- G06F 9/54: Interprogram communication
- G06F 9/546: {Message passing systems or structures, e.g. queues}
- G06F 2209/5018: Thread allocation
- G06F 2209/543: Local
- G06F 2209/548: Queue
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

To schedule threads for embedding layers of a recommendation model, a processor is configured to define queues each associated with a corresponding range of heuristic values. Further, the processor defines these queues such that each queue provides threads to certain processor cores on one or more dies. When scheduling threads for the embedding layer, the processor first determines a heuristic value of an embedding table associated with the threads. The processor then loads the threads into the queue associated with a range of heuristic values that includes the heuristic value of the embedding table. The processor then provides the threads from the queue to one or more processor cores associated with the queue.

## Claims

### Claim 1

A method comprising:
select, by a processor, a queue from a plurality of queues for a set of threads of a recommendation model based on a heuristic value of an embedding table associated with the set of threads;
providing threads of the set of threads to a number of processor cores from the queue; and
executing, by the number of processor cores, the set of threads.

### Claim 2 (depends on 1)

The method of claim 1, wherein the queue is associated with a range of heuristic values that includes the heuristic value of the embedding table associated with the set of threads.

### Claim 3 (depends on 2)

The method of claim 2, wherein a second queue of the plurality of queues is associated with a second range of heuristic values that does not include the heuristic value of the embedding table associated with the set of threads.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining a time value heuristic of the embedding table based on a pooling factor and a memory access latency associated with the embedding table.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
determining a memory level parallelism heuristic of the embedding table based on the time value heuristic associated with the embedding table, wherein the heuristic value indicates the memory level parallelism heuristic of the embedding table.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
identifying one or more embedding vectors in the embedding table based on executing the set of threads; and
determining a recommendation based on the one or more embedding vectors.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
defining the queue such that the queue is configured to provide one or more threads to the number of processor cores.

### Claim 8

A processor, comprising:
a plurality of processor cores, wherein one or more processor cores of the plurality of processor cores are configured to:
select a queue from a plurality of queues for a set of threads of a recommendation model based on a heuristic value of an embedding table associated with the set of threads; and
provide threads of the set of threads to a number of processor cores of the plurality of processor cores,
wherein the number of processor cores of the plurality of processor cores is configured to execute the set of threads.

### Claim 9 (depends on 8)

The processor of claim 8, wherein the queue is associated with a range of heuristic values that includes the heuristic value of the embedding table associated with the set of threads.

### Claim 10 (depends on 9)

The processor of claim 9, wherein a second queue of the plurality of queues is associated with a second range of heuristic values that does not include the heuristic value of the embedding table associated with the set of threads.

### Claim 11 (depends on 8)

The processor of claim 8, wherein one or more processor cores of the plurality of processor cores are configured to:
define the queue such that the queue is configured to provide one or more threads to the number of processor cores of the plurality of processor cores.

### Claim 12 (depends on 11)

The processor of claim 11, wherein the one or more processor cores of the plurality of processor cores are configured to:
define a second queue of the plurality of queues such that the second queue is configured to provide one or more threads to a second number of processor cores of the plurality of processor cores different from the number of processor cores.

### Claim 13 (depends on 8)

The processor of claim 8, further comprising a plurality of dies each including one or more processor cores of the plurality of processor cores, wherein the number of processor cores is across two or more dies of the plurality of dies.

### Claim 14 (depends on 13)

The processor of claim 13, wherein the one or more processor cores of the plurality of processor cores are configured to:
identify one or more embedding vectors in the embedding table based on executing the set of threads; and
determine a recommendation based on the one or more embedding vectors.

### Claim 15

A processor, comprising:
a plurality of dies each including a plurality of processor cores, wherein one or more processor cores of one or more dies of the plurality of dies are configured to:
define a first queue associated with a first range of memory-level parallelism heuristic values;
define a second queue associated with a second range of memory-level parallelism heuristic values;
load a set of threads of a recommendation model into the first queue or the second queue based on a memory level parallelism heuristic of an embedding table associated with the set of threads; and
provide threads of the set of threads to one or more dies of the plurality of dies from the first queue or second queue,
wherein the one or more processor cores of the one or more dies are configured to execute the set of threads.

### Claim 16 (depends on 15)

The processor of claim 15, wherein the one or more processor cores of the one or more dies are configured to:
based on the memory level parallelism heuristic of the embedding table being within the first range, load the set of threads to the first queue; and
based on the memory level parallelism heuristic of the embedding table being within the second range, load the set of threads to the second queue.

### Claim 17 (depends on 15)

The processor of claim 15, wherein the first queue is configured to provide one or more threads to certain processor cores of each of one or more dies of the plurality of dies.

### Claim 18 (depends on 17)

The processor of claim 17, wherein the second queue is configured to provide one or more threads to one or more other processor cores of each of one or more dies of the plurality of dies.

### Claim 19 (depends on 15)

The processor of claim 15, wherein the memory level parallelism heuristic of the embedding table is based on a time value heuristic of the embedding table.

### Claim 20 (depends on 19)

The processor of claim 19, wherein the time value heuristic is based on a pooling factor and memory access latency associated with the embedding table.
