Architecture and method for supporting multiple visual streams using a shared server on embedded platforms

By configuring multiple coprocessors and servers in the computing system to process perception streams in parallel, the problem of poor computational synchronization between the CPU and accelerator is solved, the processing capacity and the number of supported perception streams are improved, and more efficient computing synchronization and resources are achieved. use.

CN112306672BActive Publication Date: 2024-09-06GM GLOBAL TECHNOLOGY OPERATIONS LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010765230.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-08-02
Filing Date
2020-08-03
Publication Date
2024-09-06
Estimated Expiration
2040-08-03

AI Technical Summary

Technical Problem

When existing computing systems process multiple sensing streams, the calculation synchronization of the CPU and accelerator is poor, resulting in a loss of processing power and an increase in costs.

Method used

By configuring multiple coprocessors on the controller, using a read schedule determined by a predetermined policy, read data from multiple sensing streams, assign a unique identification tag to each sensing stream, write it to the server input queue, use The server processes and outputs to an output queue, leveraging multiple hardware devices for parallel processing and providing communication buffers to make asynchronous calls to downstream processing units.

Benefits of technology

It improves calculation synchronization on multiple CPUs and accelerators, reduces parameter memory, supports more stream-aware processing, and enhances the partitioning capabilities of processing algorithms and cross-device synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112306672B_ABST
    Figure CN112306672B_ABST
Patent Text Reader

Abstract

A method for processing multiple perception streams in a multi-processor system is disclosed. The method includes: reading data from multiple perception streams according to a read schedule determined by a predetermined policy, each perception stream including perception data from a different perception sensor; assigning a unique identification tag to each perception stream; writing each perception stream and its unique identification tag to a server input queue based on a predetermined policy; and processing the tagged perception streams using a server. The processing includes: retrieving the tagged perception streams from the server input queue; applying a processing algorithm to process the retrieved tagged perception streams; and outputting the processed perception streams to the server output queue. The method also includes retrieving the processed perception streams from the server output queue and assigning each retrieved processed perception stream to an appropriate post-processing destination based on the tags associated with the retrieved processed perception streams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The technology described in this patent document relates generally to computer systems, and more specifically to computer system architectures that allow for sharing of processing resources. Background Art

[0002] Modern advanced vision processing algorithms such as DLNN (Deep Learning Neural Network) algorithms introduce high computational and memory workload on the controller. This can limit the number of vision streams that can be processed simultaneously by the controller to a small number.

[0003] Advanced autonomous vehicle (AV) and advanced driver assistance system (ADAS) applications utilize multiple perception devices, such as cameras, and therefore process data from multiple perception devices. The processing of perception streams from perception devices can involve computation on both the CPU (central processing unit) and accelerators (e.g., GPU, DSP, FPGA). When multiple perception streams require computation, the processing of multiple perception streams may involve computation on multiple CPUs and accelerators, which are typically shared by multiple perception streams. The computations on these devices, CPUs, and accelerators may not be well synchronized for multiple perception streams, resulting in a loss of processing power and higher costs.

[0004] Therefore, it is desirable to provide a system and method for improving synchronization of computations on multiple CPUs and accelerators.Furthermore, other desirable features and characteristics of the present invention will become apparent from the subsequent detailed description of the invention and the appended claims, taken in conjunction with the accompanying drawings and background of the invention. Summary of the invention

[0005] Systems and methods for improving synchronization of computations on multiple CPUs and accelerators are provided. In one embodiment, a controller on a device is disclosed, the device having multiple coprocessors for processing multiple perception streams. The controller is configured to: read data from multiple perception streams according to a read schedule determined by a predetermined policy, wherein each perception stream includes perception data from a different perception sensor; assign a unique identification tag to each perception stream; write each perception stream and its unique identification tag to a server input queue based on a predetermined policy for processing by the server; retrieve processed perception streams from a server output queue, wherein the processed perception streams are processed by the server and written to the server output queue by the server; and assign each retrieved processed perception stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from the tag associated with the retrieved processed perception stream.

[0006] In one embodiment, a predetermined policy identifies the order of the sensing flows input into the server queue.

[0007] In one embodiment, the order identified using the predetermined policy comprises an order in which the perceived streams are read.

[0008] In one embodiment, the server is configured to: retrieve the marked perception streams from the server input queue in the order in which the marked perception streams were written to the server input queue; apply a processing algorithm to process the retrieved marked perception streams; and output the processed perception streams to the server output queue.

[0009] In one embodiment, the server includes a plurality of redundant servers, wherein each redundant server is configured to operate in parallel with another redundant server.

[0010] In one embodiment, the server is implemented by accelerator hardware including a digital signal processor (DSP) or a field programmable gate array (FPGA).

[0011] In one embodiment, the server is implemented as a software component running on accelerator hardware including a graphics processing unit (GPU), a central processing unit (CPU), or a math coprocessor dedicated to or shared with other software components.

[0012] In one embodiment, the processing algorithm comprises a neural network (NN) algorithm.

[0013] In one embodiment, the server includes a plurality of hardware devices, and the processing algorithm is divided into a plurality of processing algorithm partitions.

[0014] In one embodiment, the controller further comprises a communication buffer for storing data between execution of an upstream processing algorithm partition and execution of a downstream processing algorithm partition.

[0015] In one embodiment, when data in the communication buffer is available, the downstream processing algorithm partition may be asynchronously invoked to process the data stored in the communication buffer.

[0016] In another embodiment, a method for processing multiple sensory streams using multiple processing devices in a multi-processor system is provided. The multiple processing devices include a central processing unit (CPU) and an accelerator device. The method includes: reading data from multiple sensory streams according to a read schedule determined by a predetermined policy, wherein each sensory stream includes sensory data from a different sensory sensor; assigning a unique identification tag to each sensory stream; writing each sensory stream and its unique identification tag to a server input queue based on the predetermined policy; and processing the tagged sensory streams using a server. The processing includes: retrieving the tagged sensory streams from the server input queue in the order in which the tagged sensory streams were written to the server input queue; applying a processing algorithm to process the retrieved tagged sensory streams; and outputting the processed sensory streams to the server output queue. The method also includes retrieving the processed sensory streams from the server output queue; and assigning each retrieved processed sensory stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from the tag associated with the retrieved processed sensory stream.

[0017] In one embodiment, the frequency of reading the first perceptual stream is different from the frequency of reading the second perceptual stream.

[0018] In one embodiment, applying the processing algorithm includes applying a neural network (NN) algorithm.

[0019] In one embodiment, the server includes a plurality of hardware devices, and the processing algorithm is divided into a plurality of processing algorithm partitions.

[0020] In one embodiment, the method further comprises executing each processing algorithm partition by a different hardware device among the plurality of hardware devices.

[0021] In one embodiment, the method further comprises providing a communication buffer for storing data between execution of an upstream processing algorithm partition and execution of a downstream processing algorithm partition.

[0022] In one embodiment, the method further includes asynchronously invoking a downstream processing algorithm partition to process data stored in the communication buffer when the data in the communication buffer is available.

[0023] In one embodiment, the method further includes storing results from execution of the upstream processing algorithm partition in a communication buffer, and retrieving the results from the communication buffer for execution by the downstream processing algorithm partition.

[0024] In another embodiment, a vehicle for transporting passengers is provided, the vehicle including a plurality of sensory data sources for performing detection and observation operations on the vehicle; and a sensory data processing system configured to process sensory data from the plurality of sensory data sources. The sensory data processing system includes a plurality of processing units including one or more central processing units (CPUs) and one or more accelerator modules; a storage medium having a plurality of memory segments for implementing a server input queue and a server output queue; and a scanner implemented by one or more of the plurality of processing units. The scanner is configured to: read data from a plurality of sensory streams according to a reading schedule determined by a predetermined policy, wherein each sensory stream includes sensory data from a different sensory sensor; assign a unique identification tag to each sensory stream; and write each sensory stream and its unique identification tag to the server input queue based on the predetermined policy. The sensory data processing system also includes a server implemented by one or more of the plurality of processing units. The server is configured to: retrieve the tagged sensory streams from the server input queue in the order in which the tagged sensory streams are written to the server input queue; apply a processing algorithm to process the retrieved tagged sensory streams; and output the processed sensory streams to the server output queue. The sensory data processing system further includes a dispatcher implemented by one or more of the plurality of processing units, the dispatcher being configured to: retrieve processed sensory streams from the server output queue; and assign each retrieved processed sensory stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from a tag associated with the retrieved processed sensory stream. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Hereinafter, exemplary embodiments will be described in conjunction with the following drawings, wherein like reference numerals denote like elements, and in the drawings:

[0026] Figure 1 is a block diagram illustrating an example controller for processing sensory data from multiple sensory data sources according to various embodiments;

[0027] Figure 2A An exemplary vehicle including a controller for processing multiple sensory (e.g., visual) streams is depicted in accordance with various embodiments;

[0028] Figure 2B depicts an example vehicle having multiple perception sources for performing detection and observation operations on the vehicle in accordance with various embodiments;

[0029] Figure 3A is a block diagram illustrating an example system for processing sensory data from multiple sensory data sources according to various embodiments;

[0030] Figure 3B is a block diagram illustrating an exemplary scanner according to various embodiments;

[0031] Figure 3C is a block diagram illustrating an example dispatcher, a server output buffer, and a plurality of stream output buffers according to various embodiments;

[0032] Figure 4A is a block diagram illustrating an example server that may be comprised of a plurality of redundant servers, wherein each redundant server is configured to operate in parallel with another redundant server, according to various embodiments;

[0033] Figure 4B is a diagram illustrating an example server algorithm that may have multiple layers such as those found in a neural network in accordance with various embodiments;

[0034] Figure 4C is a diagram illustrating an example server algorithm layer that may be divided into multiple partitions and each partition may be assigned to a different hardware device for execution according to various embodiments;

[0035] Figure 4D is a diagram showing how to use the Figure 4C The algorithm partitioning scheme shown in processes graphs of multiple visual streams in parallel;

[0036] Figure 5 is a process flow diagram depicting an example process in a multi-processor system for processing multiple perceptual streams using multiple processing devices in accordance with various embodiments;

[0037] Figure 6 is a block diagram illustrating an example hardware configuration for a controller for processing sensory data from multiple sensory data sources according to various embodiments; and

[0038] Figure 7 is a block diagram illustrating another example hardware configuration for a controller for processing sensory data from multiple sensory data sources in accordance with various embodiments. DETAILED DESCRIPTION

[0039] The following detailed description is merely exemplary in nature and is not intended to limit the present application and use. In addition, there is no intention to be bound by any express or implied theory presented in the aforementioned technical field, the invention content or the following detailed description. As used herein, the term "module" refers to any hardware, software, firmware, electronic control component, processing logic and / or processor device, individually or in any combination, including but not limited to: application-specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), electronic circuits, processors (shared, dedicated or grouped) and memory that executes one or more software or firmware programs, combinational logic circuits and / or other suitable components that provide the described functions.

[0040] Embodiments of the present disclosure may be described herein in terms of functional and / or logical block components and various processing steps. It should be understood that such block components may be implemented by any number of hardware, software, and / or firmware components configured to perform a specified function. For example, embodiments of the present disclosure may employ various integrated circuit components, such as memory elements, digital signal processing elements, logic elements, lookup tables, etc., which may perform various functions under the control of one or more microprocessors or other control devices. In addition, those skilled in the art will appreciate that embodiments of the present disclosure may be practiced in conjunction with any number of systems, and the systems described herein are merely exemplary embodiments of the present disclosure.

[0041] For the sake of brevity, conventional techniques related to signal processing, data transmission, signaling, control, machine learning models, radar, lidar, image analysis, and other functional aspects of the system (as well as the various operating components of the system) may not be described in detail herein. In addition, the connecting lines shown in the various figures included herein are intended to represent exemplary functional relationships and / or physical connections between the various elements. It should be noted that many alternative or additional functional relationships or physical connections may exist in the embodiments of the present disclosure.

[0042] Modern advanced vision processing algorithms such as deep learning neural networks (DLNNs) introduce high computational and storage requirements on the controller. This can limit the number of vision streams that can be processed simultaneously by the controller to a smaller amount.

[0043] The subject matter described herein discloses devices, systems, techniques and articles describing the architecture of a device with a shared coprocessor, which is used to process multiple perception (e.g., visual) streams. The described devices, systems, techniques and articles adopt a server concept to allow a single version of an algorithm to be applied to multiple perception streams, rather than applying a dedicated version of the algorithm to each stream, resulting in more streams being supported without additional hardware. The described devices, systems, techniques and articles can implement the processing algorithm as a server that processes multiple streams in a time-division multiplexing manner, thereby reducing parameter memory. The described devices, systems, techniques and articles can implement front-end processing, which can run on a CPU as a client to process each input with a tag and communicate with the processing server. The described devices, systems, techniques and articles can provide communication and synchronization for the architecture so that server calculations can be partitioned across multiple devices. The described devices, systems, techniques and articles can provide pipeline capabilities.

[0044] Figure 1 1 is a block diagram depicting an example controller 100 for processing sensory data from multiple sensory data sources. The example controller 100 includes hardware 102 and software 104. The example hardware 102 includes one or more central processing units (CPUs) and accelerators, communication hardware, and memory. Examples of accelerators may include graphics processing units (GPUs), digital signal processors (DSPs), field programmable gate arrays (FPGAs), mathematical coprocessors, and others. When executed via the hardware 102, the software 104 is configured to provide a server that runs an algorithm for processing multiple sensory data streams. By using the server, the example controller 100 is configured to use shared hardware resources to process multiple input sensory streams 106-1 to 106-m of sensory data to generate multiple output streams 108-1 to 108-m. This architecture can allow a single version of an algorithm to be applied to multiple sensory streams, rather than applying a dedicated version of the algorithm to each stream, thereby supporting more streams without the need for additional hardware.

[0045] Figure 2A An example vehicle 200 is depicted that includes a controller 210 for processing multiple sensory (eg, visual) streams. Figure 2AAs shown, the vehicle 200 generally includes a chassis 12, a body 14, a front wheel 16 and a rear wheel 18. The body 14 is arranged on the chassis 12 and substantially surrounds the components of the vehicle 200. The body 14 and the chassis 12 can form a frame together. The wheels 16-18 are respectively rotatably connected to the chassis 12 near the corresponding corners of the body 14. In the illustrated embodiment, the vehicle 200 is described as a passenger car, but other vehicle types, including motorcycles, trucks, sports utility vehicles (SUVs), recreational vehicles (RVs), ships, aircraft, etc. can also be used. The vehicle 200 also includes a propulsion system 20, a transmission system 22, a steering system 24, a braking system 26, a sensor system 28, an actuator system 30, at least one data storage device 32, at least one controller 34 and a communication system 36, which is configured to wirelessly communicate information with other entities 48.

[0046] The data storage device 32 stores data used to automatically control the vehicle 200. The data storage device 32 can be part of the controller 34, separate from the controller 34, or part of the controller 34 and part of a separate system. The controller 34 includes at least one processor 44 and a computer readable storage device or medium 46. In various embodiments, the controller 34 is configured to implement the controller 210 for processing multiple perception streams. Although in Figure 2A Only one controller 34 is shown, but embodiments of the vehicle 200 may include any number of controllers 34 that communicate via any suitable communication medium or combination of communication media and collaborate to process sensor signals, execute logic, calculations, methods and / or algorithms, and generate control signals to automatically control features of the vehicle 200.

[0047] Figure 2B An example vehicle 220 is depicted, which has multiple perception sources for performing detection and observation operations on the vehicle. The detection operations can provide object detection, pedestrian detection, sign detection, traffic detection, lane detection, free space detection, occupant / seat belt / child seat detection, etc. The observation operations can provide surround view, rear view, blind spot view, cabin view, etc. In this example, the perception sources include front radar 202 for adaptive cruise control and distance warning, surround view camera 204a / 204b for displaying the view on either side of the vehicle in the infotainment system, blind spot detection radar 206a / 206b, front view camera 208, rear view camera 210, front camera 212 with visual or tactile warning, and driver monitoring camera 214 with tactile or acoustic warning. Multiple perception sources generate multiple perception data streams. Multiple perception data streams can be processed by a set of common resources.

[0048] Figure 3A300 for processing sensory data from multiple sensory data sources. The example system 300 includes a scanner 302, a server 304, a dispatcher 306, a server input queue 308, and a server output queue 310. The hardware associated with the example system 300 includes a plurality of processing units including one or more central processing units (CPUs) and one or more accelerator modules to implement the scanner 302, the server 304, and the dispatcher 306; a memory medium having a plurality of memory segments to implement the server input queue 308 and the server output queue 310.

[0049] The example scanner 302 is implemented by one or more of a plurality of processing units configured by programming instructions on a non-transitory computer-readable medium. The example scanner 302 is configured to read data from a plurality of perception streams 301-1 to 301-n according to a reading schedule determined by a predetermined strategy. Each perception stream includes perception data from a different perception sensor. The perception sensor may include one or more of a camera, a lidar, or other perception sensor data source. The example scanner 302 is also configured to assign a unique identification tag to each perception stream (e.g., in a preprocessing operation 303), and write each perception stream and its unique identification tag to a server input queue 308 based on a predetermined strategy (e.g., in a scanning operation 305).

[0050] The example server 304 is implemented by one or more of a plurality of processing units. The server may be implemented by accelerator hardware such as a digital signal processor (DSP) or a field programmable gate array (FPGA). The server may be implemented as a software component running on accelerator hardware such as a graphics processing unit (GPU), a central processing unit (CPU) or a math coprocessor dedicated to or shared with other software components.

[0051] The example server 304 is configured to retrieve the labeled perception streams from the server input queue 308, for example, in the order in which the labeled perception streams were written to the server input queue 308; apply a processing algorithm to process the retrieved labeled perception streams; and output the processed perception streams to the server output queue 310. The processing algorithm may include a neural network (NN), which is typically used to process perception data.

[0052] The example dispatcher 306 is implemented by one or more of a plurality of processing units configured by programming instructions on a non-transitory computer-readable medium. The example dispatcher 306 is configured to retrieve processed perceptual streams from a server output queue 310 and dispatch each retrieved processed perceptual stream to an appropriate post-processing destination (e.g., via dispatch operation 307). An appropriate post-processing destination is determined from a tag associated with the retrieved processed perceptual stream. In order to dispatch each retrieved processed perceptual stream to an appropriate post-processing destination, the example dispatcher 306 may be configured to decode each retrieved processed perceptual stream to use the tag information to separate the results of different streams. For dispatching, the example dispatcher 306 may also remove the tag associated with the processed perceptual stream (e.g., via post-processing operation 309), and send each retrieved processed perceptual stream minus the tag as a processed output 311 (e.g., stream outputs 311-1 to 311-n).

[0053] Figure 3B is a block diagram depicting an example scanner 322 (e.g., scanner 302). The example scanner 322 includes a reader module 324, a scheduler module 326, and a marker module 328. The reader module 324 is configured to read input streams 321-1, 321-2, ..., 321-N according to a predetermined policy implemented by the scheduler module 326. The predetermined policy may identify an order and schedule of the perception streams in the input server queue. The identified order may include an order in which the perception streams are read.

[0054] The scheduler module 326 can be configured to determine the reading order according to a predetermined policy and schedule based on the table 323 that identifies the stream identifier 325 and the predetermined reading frequency 327 in each table row. The frequency of reading one perceptual stream (e.g., 321-1) can be different from the frequency of reading another perceptual stream (e.g., 321-2).

[0055] The tagger module 328 is configured to tag data read from each input stream with a tag identifier specific to the input stream so that the perceived stream data can be reconstructed after processing by a server (e.g., server 304). The tagger module 328 is configured to store the tagged input stream data and its associated tag identifier in a queue 3300 (e.g., server input queue 308).

[0056] Figure 3C346. The example dispatcher 342 is implemented by one or more of a plurality of processing units configured by programming instructions on a non-transitory computer-readable medium. The example dispatcher 342 is configured to retrieve processed sensory streams from the server output buffer 344, decode (345) each retrieved processed sensory stream using tag information to separate the results of different streams, and dispatch (347) each retrieved processed sensory stream to an appropriate post-processing destination. The appropriate post-processing destination is determined from the tag associated with the retrieved processed sensory stream. The plurality of stream output buffers 346 may be implemented by a storage medium, and the dispatcher 342 is configured to dispatch each retrieved processed sensory stream to an appropriate one of the plurality of stream output buffers 346 for downstream processing.

[0057] Figure 4A 404, wherein each redundant server 404 is configured to operate in parallel with another redundant server. In this example, each redundant server 404 can retrieve the marked input stream data from the common server input queue 406, process the retrieved marked input stream data, and output the processed marked stream data to the common server output queue 408.

[0058] Figure 4B 4 is a diagram showing that an example server algorithm 410 can have multiple layers 412 (such as those found in a neural network). Each layer 412 in the server algorithm 410 can represent one or more layers of a neural network.

[0059] Figure 4C416 and 417. The server executing the partitions 414 and 416 may include multiple hardware devices (e.g., CPUs and / or accelerators), and the processing algorithm is divided into multiple processing algorithm partitions 414 and 416. The number of processing algorithm partitions may be equal to the number of hardware devices assigned to execute the algorithm, and each processing algorithm partition may be executed by a different hardware device in the multiple hardware devices. The server executing the partitions 414 and 416 may also include a communication buffer 422 implemented by a memory for saving data between the execution of the upstream processing algorithm partition 414 and the execution of the downstream processing algorithm partition 416. The downstream processing algorithm partition 416 may be asynchronously called to process data stored in the communication buffer 422 when the data is available in the communication buffer 422. Thus, results from execution of the upstream processing algorithm partition 414 may be stored in the communication buffer 422 and the results may be retrieved from the communication buffer 422 for execution by the downstream processing algorithm partition 416 .

[0060] Figure 4D is to show how to use Figure 4C 4. The algorithm partitioning scheme shown in FIG. processes multiple visual streams in parallel. The first perception stream 430 may include data for image 13, image 12, and image 11. The second perception stream 432 may include data for image 23, image 22, and image 21. The third perception stream 434 may include data for image 33, image 32, and image 31. In this example, image 13 and image 32 may be processed on device 1 (418). Image 12 and image 22 may be in communication buffer 422. Image 21 and image 31 may be processed on device 2 (420). Image 11 may have been output as an output result (424). Image 23 and image 33 may be waiting to be processed on device 1 (418).

[0061] Figure 5 1 is a process flow diagram depicting an example process 500 in a multiprocessor system for processing multiple sensory streams using multiple processing devices. The multiple processing devices include a central processing unit (CPU) and an accelerator device. The order of operations within process 500 is not limited to the following. Figure 5 Rather, the sequences shown are not intended to be performed in the order shown, but may be performed in one or more alternative sequences as may be applicable and in accordance with the present disclosure.

[0062] The example process 500 includes reading data from a plurality of perception streams according to a reading schedule determined by a predetermined policy (operation 502). Each perception stream includes perception data from a different perception sensor. The perception sensor may include one or more of a camera, a lidar, or other perception sensor data source. The frequency of reading a first perception stream may be different from the frequency of reading a second perception stream.

[0063] The example process 500 includes assigning a unique identification tag to each sensory stream (operation 504), and writing each sensory stream and its unique identification tag to a server input queue based on a predetermined policy (operation 506). The server input queue may include a storage medium accessible by a controller, such as a memory. The predetermined policy may identify an order in which the sensory streams are input into the server queue. The identified order may include an order in which the sensory streams are read.

[0064] The example process 500 includes processing the tagged perception stream using a server (operation 508). The server may include a plurality of redundant servers, wherein each redundant server is configured to operate in parallel with another redundant server. The server may be implemented by accelerator hardware, wherein the accelerator hardware may include a digital signal processor (DSP) or a field programmable gate array (FPGA). The server may be implemented as a software component running on accelerator hardware, such as a graphics processing unit (GPU), a central processing unit (CPU) or a math coprocessor dedicated to or shared with other software components.

[0065] Processing may include retrieving the tagged perception streams from a server input queue in the order in which the tagged perception streams were written to the server input queue (operation 510), applying a processing algorithm to process the retrieved tagged perception streams (operation 512), and outputting the processed perception streams to a server output queue (operation 514).

[0066] Applying the processing algorithm may include applying a neural network (NN) algorithm. The server may include multiple hardware devices, and the processing algorithm may be divided into multiple processing algorithm partitions. The number of processing algorithm partitions may be equal to the number of hardware devices. The process may further include executing each processing algorithm partition by a different hardware device in the multiple hardware devices. The process may further include providing a communication buffer for storing data between the execution of the upstream processing algorithm partition and the execution of the downstream processing algorithm partition. The process may also include: when the data in the communication buffer is available, asynchronously calling the downstream processing algorithm partition to process the data stored in the communication buffer. The process may further include storing the results from the execution of the upstream processing algorithm partition in the communication buffer, and retrieving the results from the communication buffer for execution by the downstream processing algorithm partition.

[0067] The example process 500 includes retrieving processed perceptual streams from a server output queue (operation 516), and dispatching each retrieved processed perceptual stream to an appropriate post-processing destination (operation 518). The appropriate post-processing destination may be determined from a tag associated with the retrieved processed perceptual stream. Dispatching each retrieved processed perceptual stream to an appropriate post-processing destination may include decoding each retrieved processed perceptual stream to identify associated tag information, and using the tag information to separate results for different streams. A plurality of stream output buffers may be provided, and dispatching each retrieved processed perceptual stream to an appropriate post-processing destination may include dispatching each retrieved processed perceptual stream to an appropriate one of the plurality of stream output buffers for downstream processing.

[0068] Figure 6 6 is a block diagram showing an example hardware configuration for a controller 600 for processing sensory data from a plurality of sensory data sources. The example hardware used in the controller 600 includes a system memory 602, a CPU 604, and an accelerator 606. The example hardware is used to implement a first input buffer 608 for retrieving sensory stream data from a first sensory data stream, a second input buffer 610 for retrieving sensory stream data from a second sensory data stream, a scanner 612, a server input queue 614, a server 616, a server output queue 618, a dispatcher 620, a first stream output buffer 622 for outputting processed stream data for the first sensory stream, a second stream output buffer 624 for outputting processed stream data for the second sensory stream, and an algorithm 626.

[0069] The first input buffer 608 may be implemented by a first memory segment 609 in the system memory 602, the second input buffer 610 may be implemented by a second memory segment 611 in the system memory 602, the server input queue 614 may be implemented by a third memory segment 615 in the system memory 602, the server output queue 618 may be implemented by a fourth memory segment 619 in the system memory 602, the first stream output buffer 622 may be implemented by a fifth memory segment 623 in the system memory 602, and the second stream output buffer 624 may be implemented by a sixth memory segment 625 in the system memory 602. The scanner 612, the server 614, and the dispatcher 620 may be implemented by the CPU 604, and the algorithm 626 may be executed by the accelerator 606.

[0070] Figure 77 is a block diagram showing another example hardware configuration of a controller 700 for processing sensory data from multiple sensory data sources. The example hardware used in the controller 700 includes a first sensory device 702 (e.g., camera 702), a second sensory device 704 (e.g., camera 704), a controller board 714, a first physical link 706 connecting the first sensory device 702 to a bus 710 on the controller board 714, a bus 710 connecting the second sensory device 704 to the controller board 714, a CPU 716 on the controller board 714, memory devices 718, 720 on the controller board 714, an accelerator device 722 on the controller board 714, a second physical link 708 of 724, a display device 726, and a low-level controller 728 (e.g., a brake controller, a steering controller, a body controller, etc.).

[0071] The exemplary controller 730 may be implemented via hardware on the controller board 714. The exemplary controller 730 includes a scanner 732, a CNN (convolutional neural network) server 734, and a dispatcher 736. The scanner 732 and the dispatcher 736 may be implemented by the CPU 716. The CNN server 734 may have two CNN partitions 738, 740. The first CNN partition 738 may be implemented by the accelerator 722, and the second CNN partition 740 may be implemented by the accelerator 724.

[0072] The scanner 732 may receive input perception streams from the perception devices 702, 704 via the bus 710. The dispatcher may dispatch the processed perception streams to the downstream display device 726 and the downstream low-level controller 728 via the connections 727, 729 to the bus 710.

[0073] The system may use queues or buffers to exchange data from upstream system components to downstream system components. The buffers may be implemented via memory devices 716, 718. The queues or buffers may have read and write controls. The read control may only allow data to be read from the buffer / queue when the buffer / queue is not empty, and prevent reading when the buffer / queue is empty. The write control may only allow data to be written to the buffer / queue when the buffer / queue is not full, and prevent data from being written to the buffer / queue when the buffer / queue is full.

[0074] In one embodiment, a controller on a device is disclosed, the device having multiple coprocessors for processing multiple perception streams. The controller is configured to: read data from multiple perception streams according to a read schedule determined by a predetermined policy, wherein each perception stream includes perception data from a different perception sensor; assign a unique identification tag to each perception stream; write each perception stream and its unique identification tag to a server input queue based on the predetermined policy for processing by the server; retrieve the processed perception stream from the server output queue, wherein the processed perception stream is processed by the server and written to the server output queue by the server; and assign each retrieved processed perception stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from the tag associated with the retrieved processed perception stream.

[0075] These aspects and other embodiments may include one or more of the following features. The frequency of reading the first perception stream may be different from the frequency of reading the second perception stream. The perception sensor may include one or more of a camera, a lidar, or other perception sensor data source. The server input queue may include a storage medium accessible to the controller. The predetermined policy may identify the order of the perception streams input into the server queue. The identified order may include the order in which the perception streams are read. The server may be configured to: retrieve the marked perception streams from the server input queue in the order in which the marked perception streams are written to the server input queue; apply a processing algorithm to process the retrieved marked perception streams; and output the processed perception streams to the server output queue. The server may include multiple redundant servers, each of which is configured to operate in parallel with another redundant server. The server may be implemented by accelerator hardware, wherein the accelerator hardware includes a digital signal processor (DSP) or a field programmable gate array (FPGA). The server may be implemented as a software component running on accelerator hardware, the accelerator hardware including a graphics processing unit (GPU), a central processing unit (CPU) dedicated to or shared with other software components, or a mathematical coprocessor. The processing algorithm may include a neural network (NN) algorithm. The server may include multiple hardware devices, and the processing algorithm may be divided into multiple processing algorithm partitions. The number of processing algorithm partitions may be equal to the number of hardware devices. Each processing algorithm partition may be executed by a different hardware device in the multiple hardware devices. The controller may further include a communication buffer for saving data between the execution of the upstream processing algorithm partition and the execution of the downstream processing algorithm partition. When the data is available in the communication buffer, the downstream processing algorithm partition may be asynchronously called to process the data stored in the communication buffer. The result of the execution of the upstream processing algorithm partition may be stored in the communication buffer, and the result may be retrieved from the communication buffer for execution by the downstream processing algorithm partition. In order to dispatch each retrieved processed perceptual stream to an appropriate post-processing destination, the controller may be configured to decode each retrieved processed perceptual stream using tag information to separate the results of different streams. The controller may be configured to dispatch each retrieved processed perceptual stream to an appropriate one of the multiple stream output buffers for downstream processing.

[0076] In another embodiment, a method for processing multiple sensory streams using multiple processing devices in a multi-processor system is disclosed. The multiple processing devices include a central processing unit (CPU) and an accelerator device. The method includes: reading data from multiple sensory streams according to a read schedule determined by a predetermined policy, wherein each sensory stream includes sensory data from a different sensory sensor; assigning a unique identification tag to each sensory stream; writing each sensory stream and its unique identification tag to a server input queue based on the predetermined policy; and processing the tagged sensory streams using a server. The processing includes: retrieving the tagged sensory streams from the server input queue in the order in which the tagged sensory streams were written to the server input queue; applying a processing algorithm to process the retrieved tagged sensory streams; and outputting the processed sensory streams to the server output queue. The method further includes retrieving the processed sensory streams from the server output queue; and assigning each retrieved processed sensory stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from the tag associated with the retrieved processed sensory stream.

[0077] These aspects and other embodiments may include one or more of the following features. The frequency of reading the first perception stream may be different from the frequency of reading the second perception stream. The perception sensor may include one or more of a camera, a lidar, or other perception sensor data source. The server input queue may include a storage medium accessible to the controller. The predetermined policy may identify the order of the perception streams in the input server queue. The identified order may include the order in which the perception streams are read. The server may include a plurality of redundant servers, each of which is configured to operate in parallel with another redundant server. The server may be implemented by accelerator hardware, wherein the accelerator hardware includes a digital signal processor (DSP) or a field programmable gate array (FPGA). The server may be implemented as a software component running on accelerator hardware, the accelerator hardware including a graphics processing unit (GPU), a central processing unit (CPU) or a mathematical coprocessor dedicated to or shared with other software components. Applying a processing algorithm may include applying a neural network (NN) algorithm. The server may include a plurality of hardware devices, and the processing algorithm may be divided into a plurality of processing algorithm partitions. The number of processing algorithm partitions may be equal to the number of hardware devices. The method may further include executing each processing algorithm partition by a different hardware device in the plurality of hardware devices. The method may further include providing a communication buffer for storing data between execution of an upstream processing algorithm partition and execution of a downstream processing algorithm partition. The method may also include asynchronously calling the downstream processing algorithm partition to process the data stored in the communication buffer when the data in the communication buffer is available. The method may further include storing the results from the execution of the upstream processing algorithm partition in the communication buffer and retrieving the results from the communication buffer for execution by the downstream processing algorithm partition. Dispatching each retrieved processed perceptual stream to an appropriate post-processing destination may include decoding each retrieved processed perceptual stream to identify associated tag information and using the tag information to separate results of different streams. The method may further include multiple stream output buffers and dispatching each retrieved processed perceptual stream to an appropriate one of the multiple stream output buffers for downstream processing.

[0078] In another embodiment, a vehicle for transporting passengers is disclosed, the vehicle including a plurality of sensory data sources for performing detection and observation operations on the vehicle; and a sensory data processing system for processing sensory data from the plurality of sensory data sources. The sensory data processing system includes a plurality of processing units, the plurality of processing units including one or more central processing units (CPUs) and one or more accelerator modules; a storage medium having a plurality of memory segments for implementing a server input queue and a server output queue; and a scanner implemented by one or more of the plurality of processing units. The scanner is configured to: read data from a plurality of sensory streams according to a reading schedule determined by a predetermined policy, wherein each sensory stream includes sensory data from a different sensory sensor; assign a unique identification tag to each sensory stream; and write each sensory stream and its unique identification tag to the server input queue based on the predetermined policy. The sensory data processing system also includes a server implemented by one or more of the plurality of processing units. The server is configured to: retrieve the tagged sensory streams from the server input queue in the order in which the tagged sensory streams are written to the server input queue; apply a processing algorithm to process the retrieved tagged sensory streams; and output the processed sensory streams to the server output queue. The sensory data processing system further includes a dispatcher implemented by one or more of the plurality of processing units. The dispatcher is configured to: retrieve processed sensory streams from the server output queue; and dispatch each retrieved processed sensory stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from a tag associated with the retrieved processed sensory stream.

[0079] These aspects and other embodiments may include one or more of the following features. The frequency of reading the first perception stream may be different from the frequency of reading the second perception stream. The perception sensor may include one or more of a camera, a lidar, or other perception sensor data source. The predetermined policy may identify the order of the perception streams in the input server queue. The identified order may include the order in which the perception streams are read. The server may include multiple redundant servers, each of which is configured to operate in parallel with another redundant server. The server may be implemented by accelerator hardware, wherein the accelerator hardware includes a digital signal processor (DSP) or a field programmable gate array (FPGA). The server may be implemented as a software component running on accelerator hardware, wherein the accelerator hardware includes a graphics processing unit (GPU), a central processing unit (CPU) or a mathematical coprocessor dedicated to or shared with other software components. The processing algorithm may include a neural network (NN) algorithm. The server may include multiple hardware devices, and the processing algorithm may be divided into multiple processing algorithm partitions. The number of processing algorithm partitions may be equal to the number of hardware devices. Each processing algorithm partition may be executed by a different hardware device in the multiple hardware devices. The system may further include a communication buffer implemented by a storage medium for maintaining data between the execution of an upstream processing algorithm partition and the execution of a downstream processing algorithm partition. When data is available in the communication buffer, the downstream processing algorithm partition may be asynchronously called to process the data stored in the communication buffer. Results of execution of the upstream processing algorithm partition may be stored in the communication buffer, and the results may be retrieved from the communication buffer for execution by the downstream processing algorithm partition. In order to dispatch each retrieved processed perceptual stream to an appropriate post-processing destination, a dispatcher may be configured to decode each retrieved processed perceptual stream to separate results of different streams using tag information. The dispatcher may be configured to dispatch each retrieved processed perceptual stream to an appropriate one of a plurality of stream output buffers for downstream processing.

[0080] The foregoing summarizes the features of several embodiments so that those skilled in the art can better understand the various aspects of the present disclosure. Those skilled in the art will appreciate that they can easily use the present disclosure as a basis for designing or modifying other processes and structures to achieve the same purpose and / or achieve the same advantages as the embodiments described herein. Those skilled in the art will also appreciate that such equivalent constructions do not depart from the spirit and scope of the present disclosure, and that they may make various changes, substitutions, and modifications herein without departing from the spirit and scope of the present disclosure.

Claims

1. A controller on a device having a plurality of coprocessors, the plurality of coprocessors being configured to process a plurality of perception streams, the controller being configured to: reading data from a plurality of perception streams according to a reading schedule determined by a predetermined strategy, each perception stream including perception data from a different perception sensor; Assign a unique identification tag to each perception stream; Based on the predetermined strategy, each perception flow and its unique identification tag are written into a server input queue for processing by the server, wherein the server is configured to: retrieving the tagged sense streams from the server input queue in the order in which the tagged sense streams were written to the server input queue; applying a processing algorithm to process the retrieved tag-aware stream; and Output the processed perception stream to the server output queue; Retrieve the processed perception stream from the server output queue; and dispatching each retrieved processed perception stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from a tag associated with the retrieved processed perception stream; wherein the server includes a plurality of hardware devices, and the processing algorithm is divided into a plurality of processing algorithm partitions; The controller further includes a communication buffer for storing data between execution of an upstream processing algorithm partition and execution of a downstream processing algorithm partition; and When data in the communication buffer is available, the downstream processing algorithm partition can be asynchronously called to process the data stored in the communication buffer.

2. The controller according to claim 1, wherein: The predetermined policy identifies an order in which the perceptual streams are input into a server queue, and wherein the identified order comprises an order in which the perceptual streams are read.

3. The controller according to claim 1, wherein: The server includes a plurality of redundant servers, wherein each redundant server is configured to operate in parallel with another redundant server.

4. The controller according to claim 1, wherein: The server is implemented by accelerator hardware, and the accelerator hardware includes a digital signal processor or a field programmable gate array.

5. The controller according to claim 1, wherein: The server is implemented as a software component running on accelerator hardware including a graphics processing unit, a central processing unit or a math coprocessor dedicated to or shared with other software components.

6. The controller according to claim 1, wherein: The processing algorithm includes a neural network algorithm.

7. A method for processing a plurality of sensory streams using a plurality of processing devices in a multiprocessor system, the plurality of processing devices comprising a central processing unit and an accelerator device, the method comprising: reading data from a plurality of perception streams according to a reading schedule determined by a predetermined strategy, each perception stream including perception data from a different perception sensor; Assign a unique identification tag to each perception stream; Based on the predetermined strategy, each perception stream and its unique identification tag are written into a server input queue; Aware stream of tags using server processing that includes: retrieving the tagged sense streams from the server input queue in the order in which the tagged sense streams were written to the server input queue; applying a processing algorithm to process the retrieved tag-aware stream; and Output the processed perception stream to the server output queue; Retrieving the processed perception stream from the server output queue; and dispatching each retrieved processed perception stream to an appropriate post-processing destination, wherein the appropriate post-processing destination is determined from a tag associated with the retrieved processed perception stream; wherein the server includes a plurality of hardware devices, and the processing algorithm is divided into a plurality of processing algorithm partitions; Using a communication buffer to store data between execution of an upstream processing algorithm partition and execution of a downstream processing algorithm partition; and When data in the communication buffer is available, the downstream processing algorithm partition can be asynchronously called to process the data stored in the communication buffer.

8. The method according to claim 7, wherein: The frequency of reading the first perceptual stream is different from the frequency of reading the second perceptual stream.