# US 2022/0035654 A1 · Virtualization 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 2022/0035654 A1
- Document ID: US20220035654A1
- Status: Published application
- Kind: A1
- Application number: 17/503,998
- Filed: 2021-10-18
- Published: 2022-02-03
- Earliest claimed: 2017-07-06
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Mazhar MEMON; Subramanian RAMA; Maciej BAJKOWSKI
- Web page: https://patentgrep.com/patent/US20220035654A1

## CPC

- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 8/61: Installation
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 11/3024: {where the computing system component is a central processing unit [CPU]}
- G06F 11/3409: {for performance assessment}
- G06F 11/3414: {Workload generation, e.g. scripts, playback}
- G06F 2201/865: Monitoring of software
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a data processing system running at least one application on a hardware platform that includes at least one processor and a plurality of coprocessors, at least one kernel dispatched by an application is intercepted by an intermediate software layer running logically between the application and the system software. Compute functions are determined within kernel(s), and data dependencies are determined among the compute functions. The compute functions are dispatched to selected ones of the coprocessors based at least in part on the determined data dependencies and kernel results are returned to the application that dispatched the respective kernel.

## Claims

### Claim 1

A data processing method carried out while an application is running, via system software, on a hardware platform that includes at least one processor and a plurality of coprocessors, the data processing method comprising:
intercepting, by an intermediate software layer, which is installed in a non-privileged, user space to run logically between the application and the system software, without modification of the application or of the system software, first, second, and third kernels dispatched within a data and command stream issued by the application, each said kernel corresponding to instructions to the plurality of coprocessors;
automatically, and transparently to the application, determining data dependencies among the kernels including determining that an input to the first kernel is an output from the second kernel;
automatically, and transparently to the application, determining that the third kernel has no data dependencies on the first and second kernels;
selecting at least one coprocessor to which the first and second kernels are to be dispatched based at least in part on the determined data dependencies;
selecting another coprocessor to which the third kernel is to be dispatched based at least in part on the third kernel having no data dependencies on the first and second kernels;
dispatching the first and second kernels to the selected at least one coprocessor and the third kernel to the selected another coprocessor; and
returning kernel results to the application.

### Claim 2 (depends on 1)

The data processing method of claim 1, wherein the first, second, and third kernels each include a plurality of kernel tasks.

### Claim 3 (depends on 1)

The data processing method of claim 1, further comprising:
selecting which of the coprocessors to dispatch each kernel to as a function of relative performance characteristics of the respective coprocessors.

### Claim 4 (depends on 1)

The data processing method of claim 1, wherein the input to the first kernel is determined to be the output from the second kernel by determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 5 (depends on 1)

The data processing method of claim 1, wherein the input to the first kernel is determined to be the output from the second kernel by pre-fetching the first and second kernels, applying test data to the first and second kernels, and determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 6 (depends on 1)

The data processing method of claim 1, wherein the input to the first kernel is determined to be the output from the second kernel by analyzing code of the first and second kernels.

### Claim 7

A non-transitory computer readable medium comprising instructions that are executable in a computer system to cause a hardware platform of the computer system that includes at least one processor and a plurality of coprocessors to carry out a data processing method while an application is running thereon via system software, the data processing method comprising:
intercepting, by an intermediate software layer, which is installed in a non-privileged, user space to run logically between the application and the system software, without modification of the application or of the system software, first, second, and third kernels dispatched within a data and command stream issued by the application, each said kernel corresponding to instructions to the plurality of coprocessors;
automatically, and transparently to the application, determining data dependencies among the kernels including determining that an input to the first kernel is an output from the second kernel;
automatically, and transparently to the application, determining that the third kernel has no data dependencies on the first and second kernels;
selecting at least one coprocessor to which the first and second kernels are to be dispatched based at least in part on the determined data dependencies;
selecting another coprocessor to which the third kernel is to be dispatched based at least in part on the third kernel having no data dependencies on the first and second kernels;
dispatching the first and second kernels to the selected at least one coprocessor and the third kernel to the selected another coprocessor; and
returning kernel results to the application.

### Claim 8 (depends on 7)

The non-transitory computer readable medium of claim 7, wherein the first, second, and third kernels each include a plurality of kernel tasks.

### Claim 9 (depends on 7)

The non-transitory computer readable medium of claim 7, the data processing method further comprising:
selecting which of the coprocessors to dispatch each kernel to as a function of relative performance characteristics of the respective coprocessors.

### Claim 10 (depends on 7)

The non-transitory computer readable medium of claim 7, wherein the input to the first kernel is determined to be the output from the second kernel by determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 11 (depends on 7)

The non-transitory computer readable medium of claim 7, wherein the input to the first kernel is determined to be the output from the second kernel by pre-fetching the first and second kernels, applying test data to the first and second kernels, and determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 12 (depends on 7)

The non-transitory computer readable medium of claim 7, wherein the input to the first kernel is determined to be the output from the second kernel by analyzing code of the first and second kernels.

### Claim 13

A data processing system comprising:
a hardware platform that includes at least one processor and a plurality of coprocessors;
an application running on the hardware platform via system software; and
a hardware abstraction layer installed in a non-privileged, user space and running logically between the application and the system software, wherein the hardware abstraction layer is configured to:
intercept, without modification of the application or of the system software, first, second, and third kernels dispatched within a data and command stream issued by the application, each said kernel corresponding to instructions to the plurality of coprocessors,
automatically, and transparently to the application, determine data dependencies among the kernels including determining that an input to the first kernel is an output from the second kernel,
automatically, and transparently to the application, determine that the third kernel has no data dependencies on the first and second kernels,
select at least one coprocessor to which the first and second kernels are to be dispatched based at least in part on the determined data dependencies,
select another coprocessor to which the third kernel is to be dispatched based at least in part on the third kernel having no data dependencies on the first and second kernels,
dispatch the first and second kernels to the selected at least one coprocessor and the third kernel to the selected another coprocessor, and
return kernel results to the application.

### Claim 14 (depends on 13)

The data processing system of claim 13, wherein the first, second, and third kernels each include a plurality of kernel tasks.

### Claim 15 (depends on 13)

The data processing system of claim 13, wherein the hardware abstraction layer is further configured to select which of the coprocessors to dispatch each kernel to as a function of relative performance characteristics of the respective coprocessors.

### Claim 16 (depends on 13)

The data processing system of claim 13, wherein the hardware abstraction layer determines the input to the first kernel to be the output from the second kernel by determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 17 (depends on 13)

The data processing system of claim 13, wherein the hardware abstraction layer determines the input to the first kernel to be the output from the second kernel by pre-fetching the first and second kernels, applying test data to the first and second kernels, and determining that a memory location to which the second kernel writes is the same memory location from which the first kernel reads.

### Claim 18 (depends on 13)

The data processing system of claim 13, wherein the hardware abstraction layer determines the input to the first kernel to be the output from the second kernel by analyzing code of the first and second kernels.
