# US 2013/0160017 A1 · Software Mechanisms for Managing Task Scheduling on an Accelerated Processing Device (APD)

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

- Number: US 2013/0160017 A1
- Document ID: US20130160017A1
- Status: Published application
- Kind: A1
- Application number: 13/325,755
- Filed: 2011-12-14
- Published: 2013-06-20
- Earliest claimed: 2011-12-14
- Assignees: Advanced Micro Devices, Inc.
- Inventors: Robert Scott HARTOG; Ralph Clay Taylor; Michael Mantor; Thomas Roy Woller; Kevin McGrath; Sebastien Nussbaum; Nuwan S. Jayasena; Rex McCrary; Philip J. Rogers; Mark Leather
- Web page: https://patentgrep.com/patent/US20130160017A1

## 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 2209/5013: Request control
- G06F 2209/508: Monitor
- G06F 2209/509: Offload
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments describe herein provide a method of for managing task scheduling on a accelerated processing device. The method includes executing a first task within the accelerated processing device (APD), monitoring for an interruption of the execution of the first task, and switching to a second task when an interruption is detected.

## Claims

### Claim 1

A method comprising;
executing a first task within an accelerated processing device;
monitoring for an interruption of the executing of the first task; and
switching to a second task if an interruption is detected.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first task is within a run list comprising a plurality of tasks.

### Claim 3 (depends on 2)

The method of claim 2, wherein the run list is a smaller subset of an active list of tasks.

### Claim 4 (depends on 1)

The method of claim 1, wherein the interruption is caused by a completing task, a stalling task or a faulting task.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
sending a notification to a scheduler that the accelerated processing device has switched the interrupted first task with the second task; and
periodically verifying, using the scheduler, that the second task has a relatively next highest priority value.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
sending, using the scheduler, a plurality of instructional messages that are used to update the accelerated processing device.

### Claim 7 (depends on 6)

The method of claim 6, wherein the instructional messages comprise adding a new task to a run list, removing a task from the run list, or installing a new run list.

### Claim 8 (depends on 5)

The method of claim 5, further comprising:
transmitting status messages from the accelerated processing device to the scheduler, wherein the statuses comprise running, stop running, running the next process, not running due to fault or not running due to stall.

### Claim 9

A computer readable medium having stored thereon computer executable instructions that, if executed by a computing device, cause the computing device to perform a method, comprising:
executing a first task within an accelerated processing device;
monitoring for an interruption of the executing of the first task; and
switching to a second task if an interruption is detected.

### Claim 10 (depends on 9)

The method of claim 9, wherein:
the first task is within a run list that contains a plurality of tasks; and
the run list is a subset of an active list of tasks.

### Claim 11 (depends on 9)

The method of claim 9, wherein the interruption is caused by a completing task, a stalling task, or a faulting task.

### Claim 12 (depends on 9)

The method of claim 9, further comprising:
sending a notification to a scheduler that the accelerated processing device has switched the interrupted first task with the another task in a run list, wherein the scheduler periodically checks the accelerated processing device to determine if the task are being executed in the correct priority; and
managing updates to the accelerated processing device using the scheduler to send a plurality of instructional messages.

### Claim 13 (depends on 9)

The method of claim 9, wherein the instructional messages comprise adding a new task to a run list, removing a task from the run list, and installing a new run list.

### Claim 14 (depends on 9)

The method of claim 9, wherein the scheduler also receives status messages from the accelerated processing device comprising running, stop running, running the next process, not running due to fault and not running due to stall.

### Claim 15

An apparatus, comprising:
a memory; and
an accelerated processing device coupled to the memory, wherein the accelerated
processing device is configured to, based on instructions stored in the memory:
execute a first task within the accelerated processing device;
monitor for an interruption of the execution of the first task; and
switch to a second task if an interruption is detected.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein:
the first task is within a run list that contains a plurality of tasks; and
the run list is a smaller subset of an active list of tasks.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the interruption is caused by a completing task, a stalling task or a faulting task.

### Claim 18 (depends on 15)

The apparatus of claim 15, further comprising:
wherein the accelerated processing device is configured to send a notification to a scheduler when the interrupted first task is switched with the second task in a run list.

### Claim 19 (depends on 15)

The apparatus of claim 15, further comprising:
wherein, the scheduler is configured to periodically check the accelerated processing device to determine if the tasks are being executed in the correct priority.

### Claim 20 (depends on 18)

The apparatus of claim 18, wherein the scheduler manages updates to the accelerated processing device by sending a plurality of instructional messages.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein the instructional messages comprise adding a new task to the run list, removing a task from the run list, and installing a new run list.

### Claim 22 (depends on 18)

The apparatus of claim 18, wherein the scheduler also receives status messages from the accelerated processing device comprising running, stop running, running the next process, not running due to fault, and not running due to stall.
