# US 2017/0293510 A1 · System and Method for Coordinating Use of Multiple Coprocessors

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

- Number: US 2017/0293510 A1
- Document ID: US20170293510A1
- Status: Published application
- Kind: A1
- Application number: 15/452,724
- Filed: 2017-03-07
- Published: 2017-10-12
- Earliest claimed: 2016-04-08
- Assignees: Bitfusion.io, Inc.
- Applicants: Bitfusion.io, Inc.
- Inventors: Mazhar MEMON; Subramanian RAMA; Maciej BAJKOWSKI
- Web page: https://patentgrep.com/patent/US20170293510A1

## CPC

- G06F 11/1438: {Restarting or rejuvenating}
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/14: Error detection or correction of the data by redundancy in operations (error detection or correction of the data by redundancy in hardware G06F11/16)
- G06F 11/1407: {Checkpointing the instruction stream}
- G06F 11/2017: {where memory access, memory control or I/O control functionality is redundant (redundant communication control functionality G06F11/2005; redundant storage control functionality G06F11/2089)}
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An interface software layer is interposed between at least one application and a plurality of coprocessors. A data and command stream issued by the application(s) to an API of an intended one of the coprocessors is intercepted by the layer, which also acquires and stores the execution state information for the intended coprocessor at a coprocessor synchronization boundary. At least a portion of the intercepted data and command stream data is stored in a replay log associated with the intended coprocessor. The replay log associated with the intended coprocessor is then read out, along with the stored execution state information, and is submitted to and serviced by at least one different one of the coprocessors other than the intended coprocessor.

## Claims

### Claim 1

A data processing method comprising:
associating a replay log with each of a plurality of coprocessors;
intercepting a data and command stream issued by an application, which is running on a hardware platform that includes at least one processor, to an application program interface (API) of an intended one of the coprocessors for execution of the stream on that intended coprocessor, and acquiring and storing execution state information for the intended coprocessor at a coprocessor synchronization boundary;
storing at least a portion of the intercepted data and command stream data in the replay log associated with the intended coprocessor; and
reading out from the replay log associated with the intended coprocessor the stored portion of the intercepted data and command stream data and submitting the stored portion, as well as the stored execution state information, to at least one different one of the coprocessors other than the intended coprocessor, whereby the at least different one of the coprocessors services the data and command stream issued by the application instead of the intended coprocessor.

### Claim 2 (depends on 1)

The method of claim 1, in which the portion of the intercepted data and command stream in the replay log corresponds to the portion of the stream from a most recent synchronization point.

### Claim 3 (depends on 1)

The method of claim 1, in which the reading out from the replay log and submitting the stored portion to a different one of the coprocessors is done upon sensing a redirection condition.

### Claim 4 (depends on 3)

The method of claim 3, in which the redirection condition is failure of the intended coprocessor.

### Claim 5 (depends on 1)

The method of claim 1, further comprising pre-fetching part of the data and command stream and storing the pre-fetched part in the corresponding replay log.

### Claim 6 (depends on 1)

The method of claim 1, further comprising selecting the different coprocessor randomly.

### Claim 7 (depends on 1)

The method of claim 1, further comprising selecting the different coprocessor according to a utility policy.

### Claim 8 (depends on 7)

The method of claim 7, in which the utility policy is a function of the relative loads of the coprocessors.

### Claim 9 (depends on 7)

The method of claim 7, in which the utility policy is a function of the relative speed of the coprocessors.

### Claim 10 (depends on 7)

The method of claim 7, in which the utility policy is a function of a degree of dissimilarity of the coprocessors relative to the intended coprocessor.

### Claim 11 (depends on 1)

The method of claim 1, in which the coprocessors are graphics processing units.

### Claim 12 (depends on 1)

The method of claim 1, further comprising intercepting and storing the portion of the stream at the same time as the application communicates the stream directly to the intended coprocessor.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
installing an interception software layer in a non-privileged, user space, without modification of the application or of kernel-level software running on the hardware platform;
said replay logs being data structures stored within the interception software layer;
said interception of the data and command stream issued by the application and said submitting the stored portion to the different one of the coprocessors being done by software components within the interception software layer.

### Claim 14 (depends on 13)

The method of claim 13, further comprising storing within the interception software layer a plurality of APIs corresponding to the coprocessors.

### Claim 15 (depends on 1)

The method of claim 1, further comprising dividing the intercepted and stored portion of the data and command stream into a plurality of parts and submitting each part to a different one of the coprocessors for simultaneous execution.

### Claim 16

A data processing system comprising:
a hardware platform that includes at least one processor;
at least one application comprising computer-executable code executable on the at least one processor;
a plurality of coprocessors;
an interception layer logically located between the at least one application and the plurality of coprocessors;
said interception layer including a replay log associated with each of the coprocessors;
said interception layer being provided
for intercepting a data and command stream issued by at least one of the applications to an application program interface (API) of an intended one of the coprocessors for execution of the stream on that intended coprocessor, and acquiring and storing execution state information for the intended coprocessor at a coprocessor synchronization boundary;
for storing at least a portion of the intercepted data and command stream data in the replay log associated with the intended coprocessor; and
for reading out from the replay log associated with the intended coprocessor the stored portion of the intercepted data and command stream data and submitting the stored portion, as well as the stored execution state information, to at least one different one of the coprocessors other than the intended coprocessor, whereby the at least different one of the coprocessors services the data and command stream issued by the application instead of the intended coprocessor.

### Claim 17 (depends on 16)

The system of claim 16, in which the portion of the intercepted data and command stream in the replay log corresponds to the portion of the stream from a most recent synchronization point.

### Claim 18 (depends on 16)

The system of claim 16, in which the interception layer is further provided for reading out from the replay log and submitting the stored portion to a different one of the coprocessors upon sensing a redirection condition.

### Claim 19 (depends on 18)

The system of claim 18, in which the redirection condition is failure of the intended coprocessor.

### Claim 20 (depends on 16)

The system of claim 16, in which the interception layer is further provided for pre-fetching part of the data and command stream and for storing the pre-fetched part in the corresponding replay log.

### Claim 21 (depends on 16)

The system of claim 16, in which the interception layer is further provided for selecting the different coprocessor randomly.

### Claim 22 (depends on 16)

The system of claim 16, in which the interception layer is further provided for selecting the different coprocessor according to a utility policy.

### Claim 23 (depends on 22)

The system of claim 22, in which the utility policy is chosen to be a function of one or more of the group: relative loads of the coprocessors, relative speed of the coprocessors, and a degree of dissimilarity of the coprocessors relative to the intended coprocessor.

### Claim 24 (depends on 16)

The system of claim 16, in which the coprocessors are graphics processing units.

### Claim 25 (depends on 16)

The system of claim 16, in which the interception layer is further provided for intercepting and storing the portion of the stream at the same time as the application communicates the stream directly to the intended coprocessor.

### Claim 26 (depends on 16)

The system of claim 16, in which the interception layer is installed in a non-privileged, user space, without modification of the application or of kernel-level software running on the hardware platform;
said replay logs being data structures stored within the interception layer;
said interception of the data and command stream issued by the application and said submitting the stored portion to the different one of the coprocessors being done by software components within the interception layer.

### Claim 27 (depends on 26)

The system of claim 26, further comprising at least one API component within the interception layer and storing a plurality of APIs corresponding to the coprocessors.

### Claim 28 (depends on 16)

The system of claim 16, in which the interception layer is further provided for dividing the intercepted and stored portion of the data and command stream into a plurality of parts and submitting each part to a different one of the coprocessors for simultaneous execution.
