Disaggregation of processing pipeline
Abstract
A method for processing includes receiving a definition of a processing pipeline including multiple sequential processing stages. The processing pipeline is partitioned into a plurality of partitions. The first partition of the processing pipeline is executed on a first computational accelerator, whereby the first computational accelerator writes output data from a final stage of the first partition to an output buffer in a first memory. The output data are copied over a packet communication network to an input buffer in a second memory. The second partition of the processing pipeline is executed on a second computational accelerator using the copied output data in the second memory as input data to a first stage of the second partition.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A method for processing, comprising: receiving a definition of a video processing pipeline comprising multiple sequential processing stages for processing an input video stream having a predefined video frame rate; partitioning the video processing pipeline into a plurality of partitions to enable completion of all processing stages within a video frame duration that is determined by the predefined video frame rate, each partition comprising one or more successive stages of the video processing pipeline, including at least a first partition and a second partition following the first partition in the video processing pipeline; executing the first partition of the video processing pipeline on a first computational accelerator, whereby the first computational accelerator writes output data from a final stage of the first partition for a first video frame to an output buffer in a first memory; copying the output data over a packet communication network to an input buffer in a second memory; executing the second partition of the video processing pipeline on a second computational accelerator using the copied output data in the second memory as input data to a first stage of the second partition; and while the second computational accelerator processes the copied output data from the first video frame, executing the first partition of the video processing pipeline for a next video frame on the first computational accelerator, thereby enabling real-time processing of consecutive video frames at the predefined video frame rate.
- Claim 2Depends on #1
The method according to claim 1, wherein the first and second computational accelerators comprise graphics processing units (GPUs).
- Claim 3Depends on #1
The method according to claim 1, wherein the stages of the processing pipeline comprise computational modules selected from a software library for implementation on the computational accelerators.
- Claim 4Depends on #1
The method according to claim 1, wherein the plurality of partitions includes a third partition following the second partition in the processing pipeline, and wherein the method comprises copying further output data written to the second memory by the final stage of the second partition over the packet communication network to a third memory for input to execution of the third partition on a third computational accelerator.
- Claim 5Depends on #1
The method according to claim 1, wherein the first and second computational accelerators are connected to the packet communication network by respective first and second network interface controllers (NICs), and wherein copying the output data comprises executing a remote direct memory access (RDMA) transaction between the first and second NICs.
- Claim 6Depends on #5
The method according to claim 5, wherein executing the RDMA transaction comprises transmitting an RDMA read request packet from the second NIC to the first NIC, and transmitting one or more RDMA read response packets containing the output data from the final stage of the first partition from the first NIC to the second NIC.
- Claim 7Depends on #6
The method according to claim 6, and comprising transmitting a send packet from the first NIC to the second NIC containing metadata with respect to the output data to be copied, wherein the second NIC transmits the RDMA read request in response to receiving the metadata.
- Claim 8Independent Claim
A processing system, comprising: a network interface controller (NIC), for connection to a packet communication network; a first computational accelerator; a first memory; and a central processing unit (CPU), which is to receive a definition of a video processing pipeline comprising multiple sequential processing stages for processing an input video stream having a predefined video frame rate, to partition the video processing pipeline into a plurality of partitions to enable completion of all processing stages within a video frame duration that is determined by the predefined video frame rate, each partition comprising one or more successive stages of the video processing pipeline, including at least a first partition and a second partition following the first partition in the video processing pipeline, to instruct the first computational accelerator to execute the first partition of the video processing pipeline, whereby the first computational accelerator writes output data from a final stage of the first partition for a first video frame to an output buffer in the first memory, to instruct the NIC to copy the output data over the packet communication network to an input buffer in a second memory for execution of the second partition of the video processing pipeline on a second computational accelerator using the copied output data in the second memory as input data to a first stage of the second partition, and to cause the first computational accelerator to process the first partition of the video processing pipeline for a next video frame while the second computational accelerator processes the copied output data from the first video frame, thereby enabling real-time processing of consecutive video frames at the predefined video frame rate.
- Claim 9Depends on #8
The system according to claim 8, wherein the first and second computational accelerators comprise graphics processing units (GPUs).
- Claim 10Depends on #8
The system according to claim 8, wherein the stages of the processing pipeline comprise computational modules selected from a software library for implementation on the computational accelerators.
- Claim 11Depends on #8
The system according to claim 8, wherein the plurality of partitions includes a third partition following the second partition in the processing pipeline, and wherein further output data written to the second memory by the final stage of the second partition is to be copied over the packet communication network to a third memory for input to execution of the third partition on a third computational accelerator.
- Claim 12Depends on #8
The system according to claim 8, wherein the NIC is to copy the output data by executing a remote direct memory access (RDMA) transaction over the packet communication network.
- Claim 13Depends on #12
The system according to claim 12, wherein executing the RDMA transaction comprises receiving an RDMA read request packet from a further NIC associated with the second memory, and transmitting one or more RDMA read response packets containing the output data from the final stage of the first partition to the further NIC.
- Claim 14Depends on #13
The system according to claim 13, wherein the NIC is to transmit a send packet to the further NIC containing metadata with respect to the output data to be copied, wherein the further NIC transmits the RDMA read request in response to receiving the metadata.
- Claim 15Independent Claim
A computer program product, comprising a tangible, non- transitory computer-readable medium in which program instructions are stored, which instructions, when read by a computer, cause the computer to receive a definition of a video processing pipeline comprising multiple sequential processing stages for processing an input video stream having a predefined video frame rate, to partition the video processing pipeline into a plurality of partitions to enable completion of all processing stages within a video frame duration that is determined by the predefined video frame rate, each partition comprising one or more successive stages of the video processing pipeline, including at least a first partition and a second partition following the first partition in the video processing pipeline, to instruct a first computational accelerator to execute the first partition of the video processing pipeline, whereby the first computational accelerator writes output data from a final stage of the first partition for a first video frame to an output buffer in a first memory, to instruct a NIC to copy the output data over a packet communication network to an input buffer in a second memory for execution of the second partition of the video processing pipeline on a second computational accelerator using the copied output data in the second memory as input data to a first stage of the second partition, and to cause the first computational accelerator to process the first partition of the video processing pipeline for a next video frame while the second computational accelerator processes the copied output data from the first video frame, thereby enabling real-time processing of consecutive video frames at the predefined video frame rate.
- Claim 16Depends on #15
The product according to claim 15, wherein the first and second computational accelerators comprise graphics processing units (GPUs).
- Claim 17Depends on #15
The product according to claim 15, wherein the stages of the processing pipeline comprise computational modules selected from a software library for implementation on the computational accelerators.
- Claim 18Depends on #15
The product according to claim 15, wherein the plurality of partitions includes a third partition following the second partition in the processing pipeline, and wherein the instructions cause the computer to instruct a further NIC to copy further output data written to the second memory by the final stage of the second partition over the packet communication network to a third memory for input to execution of the third partition on a third computational accelerator.
- Claim 19Depends on #15
The product according to claim 15, wherein the instructions cause the NIC to copy the output data by executing a remote direct memory access (RDMA) transaction over the packet communication network.
- Claim 20Depends on #19
The product according to claim 19, wherein executing the RDMA transaction comprises receiving an RDMA read request packet from a further NIC associated with the second memory, and transmitting one or more RDMA read response packets containing the output data from the final stage of the first partition to the further NIC.
- Claim 21Depends on #20
The product according to claim 20, wherein the instructions cause the NIC to transmit a send packet to the further NIC containing metadata with respect to the output data to be copied, wherein the further NIC transmits the RDMA read request in response to receiving the metadata.
Technical Overview & Description
FIELD OF THE INVENTION The present invention relates generally to computer systems and software, and particularly to methods for distribution of stages in a processing pipeline among multiple processors. BACKGROUND Computational accelerators, such as graphics processing units (GPUs), are able to perform many parallel processing tasks far more efficiently than a central processing unit (CPU). For example, GPUs are useful in performing convolutions of large matrices with high throughput for artificial intelligence (AI) applications. For this reason, GPUs are widely deployed in servers in data centers, and dedicated software tools, such as CUDA ® , are available to facilitate programming of GPUs. Software libraries are also available to GPU programmers, containing computational modules that can be pipelined to carry out complex tasks. One example of this sort of library is the Nvidia DeepStream software development kit (SDK), which facilitates real-time AI-based analysis of streaming video signals. SUMMARY Embodiments of the present invention that are described hereinbelow provide improved systems, methods, and software for pipelined data processing. There is therefore provided, in accordance with an embodiment of the invention, a method for processing, which includes receiving a definition of a processing pipeline including multiple sequential processing stages. The processing pipeline is partitioned into a plurality of partitions. Each partition includes one or more successive stages of the processing pipeline, including at least a first partition and a second partition following the first partition in the processing pipeline. The first partition of the processing pipeline is executed on a first computational accelerator, whereby the first computational accelerator writes output data from a final stage of the first partition to an output buffer in a first memory. The output data are copied over a packet communication network to an input buffer in a second memory. The
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (18)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- J. Kalomiros, J. Vourvoulakis and S. Vologiannidis,
- “
- A Workflow for Designing Video Processing Pipelines with PYNQ,
- ”
- 2021 11th IEEE International Conference on Intelligent Data Acquisition and Advanced Computing Systems: Technology and Applications (IDAACS), Cracow, Poland, 2021, pp. 109-114. (Year: 2021).
- U.S. Appl. No. 17/955,583 Office Action dated Nov. 28, 2023.
- U.S. Appl. No. 17/955,583 Office Action dated Oct. 13, 2023.
- Wikipedia,
- “
- PCI Express,