Method and apparatus for allocating automobile computing tasks to networked devices with heterogeneous capabilities

By designing a task configuration system in the vehicle computing system and using greedy algorithm and ILP algorithm to dynamically allocate computing tasks, the problem of low utilization efficiency of vehicle computing resources is solved, real-time distributed processing and resource optimization are realized, and the challenge of increasing processing requirements is met. .

CN112000458BActive Publication Date: 2024-09-06GM GLOBAL TECHNOLOGY OPERATIONS LLC +1
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing vehicle computing systems are difficult to effectively allocate computing tasks, resulting in low resource utilization efficiency when processing demands increase, and making it difficult to achieve real-time distributed processing.

Method used

A task configuration system is designed, which uses the real-time scheduler module and the allocator module to dynamically allocate automotive computing tasks to a suite of networked computing resources with heterogeneous capabilities, including onboard hardware, edge devices, and the cloud, through greedy algorithms and ILP algorithms. server, optimizing the allocation of computing resources and communication management.

Benefits of technology

It achieves improved computing resource utilization and processing efficiency, meets real-time processing requirements, reduces costs, and supports the coexistence of safety-critical applications and non-critical applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000458B_ABST
    Figure CN112000458B_ABST
Patent Text Reader

Abstract

A task configuration system for dynamically allocating computing tasks to networked computing resources with heterogeneous capabilities, comprising: a task library having a plurality of tasks, each task being one of a plurality of different implementations of an application, wherein the different implementations of the application provide different levels of accuracy and resource usage during execution, wherein the different implementations are configured based on a trade-off between the level of accuracy and resource usage during execution; and a real-time scheduler module configured to monitor available computing resources and connectivity to the computing resources, receive a plurality of task requests, prioritize applications to be executed when executing tasks, wherein more critical applications are assigned higher priorities, allocate computing resources to higher priority applications, allocate remaining computing resources to other applications, and select specific implementations of applications to allocate to specific computing resources in a manner that maximizes overall utility.
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 distributed processing systems. Background Art

[0002] Vehicles are becoming data centers on wheels. Vehicles can contain complex processing units, including central processing units (CPUs), graphics processing units (GPUs), field programmable gate arrays (FPGAs), and other processing elements. There is a growing demand for in-vehicle networking and vehicle-to-vehicle / vehicle-to-infrastructure (V2V / V2I) communication support. With the advent of dedicated short-range communications (DSRC), Wi-Fi, and cellular wireless networks (e.g., LTE), vehicles can better access off-board resources, such as off-board computing resources (e.g., edge and cloud devices) and off-board sensors (e.g., from other vehicles, traffic cameras, etc.).

[0003] Therefore, it is desirable to provide a real-time distributed processing framework for facilitating increased processing demands.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 this background of the invention. Summary of the invention

[0004] Systems and methods are provided for distributing automotive computing tasks to networked devices with heterogeneous capabilities. In one embodiment, a task configuration system for dynamically assigning atomic computing tasks to a networked computing resource suite with heterogeneous capabilities includes: a task library having a plurality of tasks, each task being one of a plurality of different implementations of an application, wherein the different implementations of the application provide different levels of accuracy and resource usage during execution, wherein the different implementations are configured based on a trade-off between the level of accuracy and resource usage during execution; a real-time scheduler module, including one or more processors configured by programming instructions on a non-transitory computer-readable medium, the scheduler module configured to monitor available computing resources and connectivity to the computing resources, receive a plurality of task requests, wherein the task requests are specifications of jobs requested for execution, and when executing the jobs, prioritize the applications to be executed, wherein more critical applications are assigned higher priorities, assign computing resources to the higher priority applications, assign remaining computing resources to other applications, and select specific implementations of the applications to be assigned to specific computing resources in a manner that maximizes overall utility; and a scheduler module, including one or more processors configured by programming instructions on a non-transitory computer-readable medium, the scheduler module configured to schedule the assigned specific implementations of the applications to their assigned computing resources for execution.

[0005] In one embodiment, a networked computing device suite includes onboard hardware and one or more mobile devices, edge devices, and cloud-based servers.

[0006] In one embodiment, the computing resources include one or more of a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), and a field programmable gate array (FPGA).

[0007] In one embodiment, the real-time scheduler module is configured to: execute a greedy algorithm to determine an allocation of specific implementations of an application to specific computing resources; and output the determined allocation of the specific implementations to the specific computing resources.

[0008] In one embodiment, the greedy algorithm is configured to: rank job implementations based on utility, with the job implementation with the highest utility ranked first; and schedule the job implementations one after the other at the best available node in hierarchical order, wherein a job implementation is scheduled if no other implementation of the job has been scheduled and the best available node is capable of executing the job implementation.

[0009] In one embodiment, the greedy algorithm is configured to: enumerate all possible job combinations, where each possible job combination is called a bundle; determine potential bundle-node pairs; calculate a utility measurement for each potential bundle-node pair; sort the bundle-node pairs in order of utility, with the bundle-node pair with the highest utility being ranked first; and schedule the bundles one by one until all nodes have been assigned or all jobs have been scheduled, wherein the assigned bundles cannot contain implementations of the same job.

[0010] In one embodiment, the task configuration system also includes a task profile database containing a task profile for each application implementation, the task profile including static and dynamic data about the task, including resource usage, latency, and reliability, wherein the task profile is accessible to the scheduler module when selecting a specific implementation of an application to assign to a specific computing resource.

[0011] In one embodiment, the task configuration system further includes a resource monitor configured to track the device and its available computing resources, wherein the real-time scheduler module is configured to monitor the available computing resources via information provided by the resource monitor.

[0012] In one embodiment, the task configuration system further includes an execution monitor configured to collect statistics about the communication channel and the device speed.

[0013] In one embodiment, the task configuration system also includes a communication manager configured to manage communication links between devices providing computer resources, the communication links being implemented using multiple dedicated short range communications (DSRC), cellular wireless networks (e.g., LTE, 5G, or other), Ethernet, wireless local area networks (WLAN), and controller area networks (CAN).

[0014] In another embodiment, a method implemented by a processor in a vehicle is provided for dynamically configuring automotive computing tasks to a networked computing resource suite with heterogeneous capabilities. The method includes: receiving a task request for executing a job through a computing resource by a processor in the vehicle; monitoring the status of the computing resource and the connectivity with the computing resource by the processor; identifying a specific task implementation for scheduling by the processor; scheduling the specific task implementation to a specific computing resource by the processor; retrieving the specific task implementation that has been scheduled from a task library by the processor; and allocating the specific task implementation for execution to the specific computing resource by the processor.

[0015] In one embodiment, the computing resources include one or more of a central processing unit (CPU), a graphics processor unit (GPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), and a field-programmable gate array (FPGA), and the computing resources are located in multiple computing devices on the vehicle, edge computing devices, and cloud-based computing devices.

[0016] In one embodiment, monitoring includes tracking computing devices and their available computing resources, and collecting statistics about communication channels and computing device speeds.

[0017] In one embodiment, a specific task implementation is identified from a task profile database that includes static and dynamic data about the task, including resource usage, latency, and reliability.

[0018] In one embodiment, specific task implementations are scheduled based on static and dynamic data regarding the tasks, available resources, communication channels, and device speeds.

[0019] In one embodiment, scheduling the specific task implementation to the specific computing resource includes running a scheduling algorithm to assign the job to the device for execution, wherein the scheduling algorithm includes an ILP-based algorithm or a greedy algorithm.

[0020] In one embodiment, the scheduling algorithm includes a greedy algorithm; the greedy algorithm is configured to sort the task implementations based on utility levels, wherein the task implementations with the highest utility are given the highest levels; and the greedy algorithm is configured to schedule the task implementations one after another in a hierarchical order at the best available computing resources, wherein a task implementation is scheduled if no other implementation of the task has been scheduled and the best available node is capable of executing the task implementation.

[0021] In one embodiment, the scheduling algorithm includes a greedy algorithm, and the greedy algorithm is configured to: enumerate all possible combinations of application implementations, where each combination is called a bundle; calculate the utility of each bundle-node pair; sort the bundle-node pairs in order of utility, with the bundle-node pair with the highest utility being ranked first; and schedule the bundles one by one until all nodes have been allocated or all jobs have been scheduled, wherein the allocated bundles cannot contain implementations of the same job.

[0022] In one embodiment, the task library includes binary files of different task implementations, and the different task implementations provide various task implementation options.

[0023] In another embodiment, a vehicle is provided. The vehicle includes: a plurality of computing resources; a task library including a plurality of tasks, each task being one of a plurality of different implementations of an application, wherein the different implementations of the application provide different levels of accuracy and resource usage during execution, wherein the different implementations are configured based on a trade-off between the level of accuracy and resource usage during execution; a real-time scheduler module including one or more processors configured by programming instructions on a non-transitory computer-readable medium, the scheduler module configured to monitor available computing resources and connectivity to the computing resources, receive job requests to execute a plurality of applications, prioritize the applications, allocate computing resources to higher priority applications, wherein more critical applications are assigned a higher priority, allocate remaining computing resources to other applications, and select specific implementations of the applications to allocate to specific computing resources in a manner that maximizes overall utility; and a scheduler module including one or more processors configured by programming instructions on a non-transitory computer-readable medium, the scheduler module configured to allocate the allocated specific implementations of the applications to their allocated computing resources for execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Exemplary embodiments will be described below in conjunction with the following drawings, wherein like numerals represent like elements, and wherein:

[0025] Figure 1A is a block diagram showing an example computing environment according to various embodiments;

[0026] Figure 1Bis a diagram showing an example vehicle in an example computing environment and illustrating various levels at which processing modules may be located relative to the example vehicle in accordance with various embodiments;

[0027] Figure 2 An example vehicle including a mission configuration system according to various embodiments is shown;

[0028] Figure 3 is a block diagram depicting an example environment for a task configuration system according to various embodiments;

[0029] Figure 4A and Figure 4B is a diagram of example operational scenarios according to various embodiments, illustrating potential benefits of providing different implementations of an application;

[0030] Figure 5A and 5B is a diagram illustrating the use of an example greedy algorithm to schedule application implementations for execution according to various embodiments;

[0031] Figure 6 is a diagram illustrating example jobs and example job packages used when scheduling jobs using an example greedy algorithm according to various embodiments;

[0032] Fig. 7A and 7B is a diagram illustrating sorting and scheduling of bundles to nodes (e.g., computing resources) using an exemplary greedy algorithm according to various embodiments;

[0033] Figure 8 is an example flow chart illustrating example components in an example environment of an example task configuration system according to various embodiments; and

[0034] Fig. 9 is a process flow diagram describing an example process in an example task configuration system in accordance with various embodiments. DETAILED DESCRIPTION

[0035] The following detailed description is merely exemplary in nature and is not intended to limit application and use. In addition, it is not intended to be bound by any express or implied theory presented in the aforementioned technical field, background technology, invention content or the following specific embodiments. 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 memories that execute one or more software or firmware programs, combinational logic circuits and / or other suitable components that provide the functions.

[0036] 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 storage 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 implemented in conjunction with any number of systems, and the systems described herein are merely exemplary embodiments of the present disclosure.

[0037] For the sake of brevity, conventional techniques related to signal processing, data transmission, signal transmission, control, machine learning models, radar, lidar, image analysis, and other functional aspects of the system (and 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 example functional relationships and / or physical connections between 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.

[0038] The subject matter described herein discloses a device, system, technology and article for providing a real-time distributed processing framework to help increase processing requirements. The following disclosure provides a device, system, technology and article for utilizing shared hardware resources for multiple systems, thereby reducing costs, improving redundancy, and utilizing reusable expertise. The following disclosure provides a device, system, technology and article for sharing hardware resources, which can provide performance guarantees for safety-critical applications and provide optimal configurations for non-critical applications. The following disclosure provides a device, system, technology and article that can allow safety-critical applications to coexist with non-critical tasks. The following disclosure provides a device, system, technology and article for utilizing polymorphism (utilizing adaptable workloads to meet constraints while maintaining functionality). The following disclosure provides a device, system, technology and article for utilizing a greedy heuristic solution (greedy, heuristic solution) to achieve a suboptimal solution but with rapid decision-making capabilities. The following disclosure provides a device, system, technology and article for utilizing ILP problem formulas and solutions to achieve global optimization.

[0039] Figure 1A1 is a block diagram showing an example computing environment 100. The example computing environment includes a software environment 102 and a hardware environment 104. The software environment 102 includes a plurality of software applications 106 that will be executed at different times using hardware from the hardware environment 104. In this example, the example computing environment includes an automotive computing environment, and the example software includes software applications that may be present in an automobile. In this example, the example software includes engine control unit (ECU) software, anti-lock braking system (ABS) software, cruise control software, and radio software, among others. Some software is more important to the safe operation of the vehicle and is therefore considered to be higher priority software, while some software is less important to the safe operation of the vehicle and is considered to be lower priority software. For example, ABS software would be considered to be higher priority software, while radio software would be considered to be lower priority software. When the computing resource requirements of the software environment 102 exceed the computing capacity of the hardware environment 104, the software in the software environment 102 may need to be prioritized so that the higher priority software can always be executed when it is needed.

[0040] The hardware environment includes multiple processing modules 108, 109. Each processing module 108 may include multiple computing resources, such as a central processing unit (CPU) 110, a graphics processing unit (GPU) 112, and / or other computing resources. Processing modules 108, 109 may be distributed in a distributed network. Some processing modules (e.g., processing module 108) may be local, while some (e.g., processing module 109) may be remote. In addition to being local or remote, the various processing modules may also have different computing capabilities and different access times (e.g., based on the communication networks they can access). In the example of a vehicle, the local processing module 108 may be located on the vehicle, and the remote processing module 109 may be located outside the vehicle.

[0041] Figure 1B1 is a diagram showing an example vehicle 122 in an example computing environment 120 and illustrating various levels at which processing modules may be located relative to the example vehicle 122. In this example, the example environment 120 includes processing modules on the vehicle 122 in a first level (1). The example environment 120 may also include a mobile processing module 124 (e.g., contained in a mobile device such as a smart phone, tablet, tablet phone, etc.) in a second level (2) that is located within or in close proximity to the vehicle 122. The example environment 120 may include an edge processing module 126 (e.g., contained in an edge device such as a traffic device or sign) in a third level (3) that is located near the vehicle 122. The example environment 120 may include a cloud processing module 128 (e.g., contained in a cloud device such as a server state) in a fourth level (4) that is accessible by the vehicle 122.

[0042] The example computing environments 100 and 120 implement a task configuration system that is configured to configure computing tasks from a software environment (eg, software environment 102 ) to various processing modules based on priority, computing requirements, and computing capabilities.

[0043] Figure 2 An example vehicle 200 including a mission configuration system 210 is shown. As shown in FIG1 , the vehicle 200 generally includes a chassis 12, a body 14, front wheels 16, and rear wheels 18. The body 14 is disposed on the chassis 12 and substantially surrounds the components of the vehicle 200. The body 14 and the chassis 12 may together form a frame. The wheels 16-18 are each rotatably connected to the chassis 12 near a corresponding corner of the body 14.

[0044] In various embodiments, vehicle 200 may be an autonomous vehicle or a semi-autonomous vehicle. Autonomous vehicle 200 is, for example, a vehicle that is automatically controlled to transport passengers from one location to another. Vehicle 200 is shown as a passenger car in the illustrated embodiment, but other types of vehicles (including motorcycles, trucks, sport utility vehicles (SUVs), recreational vehicles (RVs), boats, airplanes, etc.) may also be used.

[0045] As shown, the vehicle 200 generally 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. In various embodiments, the propulsion system 20 may include an internal combustion engine, an electric machine such as a traction motor, and / or a fuel cell propulsion system. The transmission system 22 is configured to transmit power from the propulsion system 20 to the wheels 16 and 18 according to a selectable speed ratio. According to various embodiments, the transmission system 22 may include a step-ratio automatic transmission, a continuously variable transmission, or other suitable transmission.

[0046] Braking system 26 is configured to provide braking torque to wheels 16 and 18. In various embodiments, braking system 26 may include friction brakes, brake-by-wire brakes, a regenerative braking system such as an electric motor, and / or other suitable braking systems.

[0047] The steering system 24 affects the position of the wheels 16 and / or 18. Although the steering system 24 is shown as including a steering wheel 25 for purposes of illustration, in some embodiments contemplated within the scope of the present disclosure, the steering system 24 may not include a steering wheel.

[0048] The sensor system 28 includes one or more sensing devices 40a-40n that sense observable conditions of the external environment and / or the internal environment of the vehicle 200 (e.g., the status of one or more occupants) and generate sensor data related thereto. The sensing devices 40a-40n may include, but are not limited to, radar (e.g., long-range, medium-range-short-range), lidar, global positioning system, optical camera (e.g., front-facing, 360-degree, rear-facing, side, stereo, etc.), thermal (e.g., infrared) camera, ultrasonic sensor, odometer sensor (e.g., encoder), and / or other sensors that may be used in conjunction with systems and methods according to the present subject matter.

[0049] The actuator system 30 includes one or more actuator devices 42a-42n that control one or more vehicle features, such as, but not limited to, the propulsion system 20, the transmission system 22, the steering system 24, and the braking system 26. In various embodiments, the vehicle 200 may also include interior and / or exterior vehicle features not shown in FIG. 1 , such as various doors, trunks, and cabin features, such as air, music, lighting, touch screen display components (such as those used in conjunction with a navigation system), etc.

[0050] The data storage device 32 stores data for automatically controlling the vehicle 200. In various embodiments, the data storage device 32 stores a defined map of the navigable environment. In various embodiments, the defined map can be predefined by a remote system and obtained from the remote system. For example, the defined map can be assembled by the remote system and transmitted to the vehicle 200 (wirelessly and / or by wire), and stored in the data storage device 32. Route information can also be stored in the data storage device 32, that is, a set of road segments (geographically associated with one or more defined maps) that together define the route that a user can take to travel from a starting location (e.g., the user's current location) to a target location. It will be appreciated that 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 an independent system.

[0051] The controller 34 includes at least one processor 44 and a computer-readable storage device or medium 46. The processor 44 can be any custom or commercially available processor, a central processing unit (CPU), a graphics processing unit (GPU), an application-specific integrated circuit (ASIC) (e.g., a custom ASIC that implements a neural network), a field programmable gate array (FPGA), an auxiliary processor of several processors associated with the controller 34, a semiconductor-based microprocessor (in the form of a microchip or chipset), any combination thereof, or generally any device for executing instructions. The computer-readable storage device or medium 46 can include volatile and non-volatile storage in, for example, read-only memory (ROM), random access memory (RAM), and keep-alive memory (KAM). KAM is a permanent or non-volatile memory that can be used to store various operating variables when the processor 44 is powered off. The computer readable storage device or medium 46 may be implemented using any of a variety of known storage devices, such as a PROM (programmable read only memory), an EPROM (electrical PROM), an EEPROM (electrically erasable PROM), flash memory, or any other electrical, magnetic, optical, or combination storage device capable of storing data, some of which represent executable instructions used by the controller 34 in controlling the vehicle 200. In various embodiments, the controller 34 is configured to implement a mapping system as discussed in detail below.

[0052] The instructions may include one or more separate programs, each of which includes an ordered list of executable instructions for implementing logical functions. When executed by the processor 44, the instructions receive and process signals (e.g., sensor data) from the sensor system 28, execute logic, calculations, methods and / or algorithms for automatically controlling components of the vehicle 200, and generate control signals that are transmitted to the actuator system 30 to automatically control components of the vehicle 200 based on the logic, calculations, methods and / or algorithms. Although in Figure 2 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.

[0053] The communication system 36 is configured to wirelessly communicate information with other entities 48, such as, but not limited to, other vehicles ("V2V" communications), infrastructure ("V2I" communications), networks ("V2N" communications), pedestrians ("V2P" communications), remote transportation systems, and / or user devices. In an exemplary embodiment, the communication system 36 is a wireless communication system configured to communicate via a wireless local area network (WLAN) using the IEEE 802.11 standard or by using cellular data communications. However, additional or alternative communication methods, such as dedicated short-range communications (DSRC) channels, are also considered within the scope of the present disclosure. A DSRC channel refers to a one-way or two-way short-range to medium-range wireless communication channel designed specifically for automotive use, and a corresponding set of protocols and standards.

[0054] Figure 3 300 is a block diagram of an example environment 300 showing a task configuration system 302. The example task configuration system 302 is configured to dynamically configure atomic computing tasks to a set of networked computing devices with heterogeneous capabilities. The networked computing device suite includes one or more of a mobile device, an edge device, and a cloud-based server and onboard hardware. Each networked computing device includes one or more computing resources 301. Each computing resource 301 may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a math coprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), and / or other processing devices.

[0055] The example task configuration system 302 includes one or more processors configured by programming instructions on a non-transient computer-readable medium that implements the task configuration system components. The example task configuration system components include a real-time scheduler module 304, a monitor 308, a task library 310, and a dispatcher module 312. The example real-time dispatcher module 304 is configured to receive job specifications and / or requests 306 for computing resources 301 to perform jobs, use information from performance monitors 308 to monitor the status of computing resources 301 and connectivity with computing resources 301, identify specific task implementations from the task library 310, and dispatch the specific task implementations to computing resources 301 to satisfy the job requests 306. The example dispatcher module 312 is configured to retrieve specific task implementations and dispatch the specific task implementations to the specific computing resources 301 that have been allocated for them for execution.

[0056] The example task library 310 includes a plurality of tasks. Each task is a specific implementation of an application that can be executed using one or more computing resources 301. An application can have multiple implementations, wherein different implementations of the application provide different levels of accuracy and resource usage during execution. Different implementations of the application are configured based on a trade-off between the accuracy level of the results brought about by the execution of the application implementation and the resource usage during execution.

[0057] Figure 4A and Figure 4B is an example operating scenario diagram illustrating the potential benefits of providing different implementations of an application. In the example operating scenario, a vision system in a vehicle takes a snapshot 400 of the environment in front of the vehicle. A detection system in the vehicle may request execution of an application to detect an object in the snapshot 400. The application may have two implementations, a first implementation that provides a less accurate analysis of the snapshot 400 but requires fewer computing resources to execute, and a second implementation that provides a more accurate analysis of the snapshot 400 but requires more computing resources to execute.

[0058] Figure 4A 4 shows object detection results from a first example implementation. In the first example implementation, a 16-layer convolutional neural network (CNN) with an average mean average precision (mAP) of 57.1% was applied, which executed in 4.8ms / frame. The first example implementation provides a less accurate analysis of the snapshot 400 (e.g., some cars 402 in the snapshot are recognized, while some cars 404 in the snapshot are not recognized), but requires fewer computing resources to execute (e.g., each snapshot is executed in 4.8ms).

[0059] Figure 4B Object detection results from a second example implementation are shown in . In the second example implementation, a 32-layer CNN was applied with a mAP of 76.8%, executing in 14.9ms / frame. The second example implementation provides a more accurate analysis of the snapshot (e.g., more or all cars 402 in the snapshot are identified), but requires greater computing resources to execute (e.g., each snapshot is executed in 14.9 milliseconds). Depending on the workload of the computing resources, it may be advantageous to use the first implementation of the application to obtain some detection information, because having some information may be better than no information compared to time constraints.

[0060] Back to Figure 3 , the example monitor 308 is configured to track devices and their available computing resources 301. The example monitor 308 is also configured to collect statistics about communication channels to and from the computing resources 301 and device speeds of the computing resources 301. The example performance monitor 308 is also configured to transmit the tracked data and statistics to the example real-time scheduler module 304.

[0061] The exemplary real-time scheduler module 304 is configured to monitor available computing resources 301 and connectivity to computing resources 301 using a monitor 308, receive a plurality of received job specifications and / or requests 306, wherein the specifications / requests 306 identify tasks requested for execution, prioritize applications to be executed when executing the tasks, wherein more critical applications are assigned a higher priority, configure computing resources 301 to higher priority applications first, configure remaining computing resources 301 to other applications, and select specific implementations for applications assigned to specific computing resources 301 in a manner that maximizes overall utility.

[0062] The example real-time scheduler module 304 is configured to use a scheduling algorithm to determine which computing resource to schedule which specific application implementation. The problem solved by the scheduling algorithm can be expressed as follows:

[0063] Assume N k Heterogeneous processing nodes:

[0064] Existence N j assignments,

[0065] The resources used for each node k N r -dimensional vector

[0066] Resource consumption is represented by r(j, k, m), where

[0067] The vector of resources required by job j when running on node k using implementation m

[0068] Let X(j, k, m) ∈ {0, 1} be a binary configuration variable that is 1 if job j is scheduled on node k using implementation m and 0 otherwise. A valid configuration or job schedule must satisfy the following constraints:

[0069]

[0070]

[0071] Equation 1, the resource constraint, ensures that the number of jobs assigned to a node does not exceed its resources, while equation 2, the allocation constraint, ensures that at most one job is assigned at a time (one implementation per node).

[0072] Let u(j, k, m) be the user-defined performance of running job j on node k using implementation m

[0073] The goals are:

[0074] maximize:

[0075] Subject to:

[0076]

[0077]

[0078] In one example, the example real-time scheduler module 304 is configured to execute an integer linear program (ILP) as a scheduling algorithm to determine the allocation of specific implementations of the application to specific computing resources. The ILP can use a rounding-based method, such as the COIN-OR branch and cut (CBC) open source ILP solver, or the Gurobi ILP solver.

[0079] In one example, the example real-time scheduler module 304 is configured to execute a greedy algorithm as a scheduling algorithm to determine allocations of specific implementations of an application to specific computing resources, and output the determined allocations of the specific implementations to the specific computing resources.

[0080] In one example, the greedy algorithm is configured to sort application implementations based on utility levels, wherein the application implementation with the highest utility is given the highest level; and to schedule the application implementations one by one in order of the levels at the best available node (e.g., computing resource 301), wherein an application implementation is scheduled if no other implementation of the application has been scheduled and the best available node is capable of executing the application implementation.

[0081] Figure 5A and 5B is a diagram illustrating the use of an example greedy algorithm to schedule an application implementation for execution. Figure 5A Shown in is a block diagram showing example tasks and application implementations that can be scheduled by the system and the types of computing resources (e.g., CPU or GPU) that can be used to execute the application implementations. In this example, there are three tasks to be executed, Job 1, Job 2, and Job 3. Job 1 has one application implementation - Job 1.A (for CPU execution), and Job 2 has two application implementations - Job 2.A (for CPU execution) and Job 2.B (for GPU execution). Task 3 has two application implementations - Task 3.A (for GPU execution) and Job 3.B (for GPU execution).

[0082] Figure 5B is an exemplary block diagram showing the ordering and scheduling of three tasks to compute nodes using an exemplary greedy algorithm. The exemplary greedy algorithm first orders the application implementations based on their utility ratings, with the application implementations with the highest utility rating ranked first. In this example, job 3.A ranks first, job 2.B ranks second, job 2.A ranks third, job 1.A ranks fourth, and job 3.B ranks last. The application implementations are ordered according to their utility ratings in order from the highest utility rating to the lowest utility rating.

[0083] Secondly, the example greedy algorithm schedules tasks to compute nodes. In this example, since job 3.A ranks first, it is scheduled to execute on node 1, which has sufficient computing resources for job 3.A. Job 2.B, which ranks second, is next scheduled to node 1, which has sufficient computing resources for job 2.B in addition to job 3.A. Job 2.A is not scheduled because another implementation of the application, namely job 2.B, has already been scheduled. Job 1.A, which ranks second in the utility ranking, is next scheduled to node 2, which has sufficient computing resources for job 1.A. Job 3.B is not scheduled because another implementation of the application, namely job 3.A, has already been scheduled. In summary, the greedy algorithm schedules application implementations one by one at the best available node in a hierarchical order, wherein if no other implementation of the application has been scheduled and the best available node is able to execute an application implementation, the application implementation is scheduled.

[0084] Return to reference Figure 3In another example, the example real-time scheduler module 304 is configured with another example greedy algorithm to schedule specific application implementations to execute on specific nodes. The greedy algorithm in this example is configured to: enumerate all possible combinations of application implementations, where each combination is referred to herein as a bundle; calculate the utility of each bundle-node pair; sort the bundle-node pairs by highest utility first; and schedule the bundles one by one until all nodes have been assigned or all jobs have been scheduled, where the assigned bundles cannot contain implementations of the same job.

[0085] Figure 6 is a diagram showing example jobs and example bundles used when scheduling jobs using an example greedy algorithm. Figure 6 Shown in is a block diagram illustrating example tasks and application implementations that can be scheduled by the system and the types of computing resources (e.g., CPU or GPU) that can be used to execute the application implementations. In this example, there are three tasks to be executed, Job 1, Job 2, and Job 3. Job 1 has one application implementation - Job 1.A (for CPU execution), Job 2 has two application implementations - Job 2.A (for CPU execution) and Job 2.B (for GPU execution), and Job 3 has two application implementations - Job 3.A (for GPU execution) and Job 3.B (for GPU execution). .

[0086] Figure 6 An enumeration of all possible combinations of application implementations (e.g., bundles) is also shown. As shown, in this example, a bundle can consist of one application implementation (e.g., (1A), (2A), (2B), (3A), (3B)). In this example, a bundle can consist of two application implementations (e.g., (1A, 2A), (1A, 2B), (1A, 3A), (1A, 3B), (2A, 3A), (2A, 3B), (2B, 3A), (2B, 3B)). In this example, a bundle can consist of three application implementations (1A, 2A, 3A), (1A, 2A, 3B), (1A, 2B, 3A), (1A, 2B, 3B). A bundle can only contain one implementation of the same application and cannot contain two or more implementations of the same application. As shown, example bundle 602 is a suitable bundle because it contains no more than one implementation of the same application - it contains one implementation (1A, 2A, 3B) of each of application jobs 1, 2, and 3. As shown, collection 604 cannot be a bundle - it includes two implementations of the same application (job 3.A and job 3.B).

[0087] Fig. 7A and 7Bis a diagram illustrating the ordering and placement of bundles to nodes (e.g., computing resources) using an exemplary greedy algorithm. Fig. 7A Shown in is a graph 702 showing potential assignments of bundles to nodes. Although only a few potential bundle-to-node combinations are shown, the graph may disclose all possible bundle-to-node combinations. In this example, the graph shows that either bundle B1 or B2 may be assigned to node 1 (N1), only bundle B3 may be assigned to node 2 (N2), and bundles B2 and B3 may be assigned to node 3 (N3). In addition to showing the possible bundle-to-node assignments, the utility scores calculated by the example algorithm and assigned to each potential bundle-to-node assignment are also shown. In this example, potential bundle to node assignment (N1B1) is assigned a calculated utility value u1, potential bundle to node assignment (N1B2) is assigned a calculated utility value u2, potential bundle to node assignment (N3B2) is assigned a calculated utility value u3, potential bundle to node assignment (N2B3) is assigned a calculated utility value u4, and potential bundle to node assignment (N3B3) is assigned a calculated utility value u5.

[0088] Also shown is a conflict graph 704 showing competing potential bundles that can be assigned to each node and the calculated utility values ​​for each potential bundle to node assignment. The conflict graph 704 shows that node assignments can include bundles to node combination N1B1 or N1B2, node combination N2B3, and bundles to node combination N3B2 or N3B3.

[0089] Figure 7B 7 is a diagram showing the use of an exemplary greedy algorithm to convert information from a conflict graph 710 into actual bundle-to-node assignments. In this example, the conflict graph 710 shows the competing potential bundles that can be assigned to each node and the calculated utility value for each potential bundle-to-node assignment, and shows that potential bundle-to-node assignment (N1B1) is assigned a calculated utility value of 20, potential bundle-to-node assignment (N1B2) is assigned a calculated utility value of 10, potential bundle-to-node assignment (N3B2) is assigned a calculated utility value of 15, potential bundle-to-node assignment (N2B3) is assigned a calculated utility value of 5, and potential bundle-to-node assignment (N3B3) is assigned a calculated utility value of 8.

[0090] Figure 7BAlso included is a table 712 for converting data from the conflict graph 710 into actual bundle to node assignments. Table 712 discloses that bundle B1 is arranged at node 1 (N1) because the potential bundle to node assignment (N1B1) is assigned the highest calculated utility value of 20. Because the potential bundle to node assignment (N3B2) is assigned the second highest calculated utility value of 15, bundle B2 is arranged at node 3 (N3) because node 3 (N3) has not yet been assigned. Even though the potential bundle to node assignment (N1B2) is assigned the second highest calculated utility value of 10, bundle B2 is not arranged at node 1 (N1) because node 1 (N1) has already been assigned. Although the potential bundle to node assignment (N3B3) is assigned the second highest calculated utility value of 8, bundle B3 is not arranged at node 3 (N3) because node 3 (N3) has already been assigned. Because the potential bundle to node assignment (N2B3) is assigned the next highest computational utility value of 5, bundle B3 is placed on node 2 (N2) because node 2 (N2) has not yet been assigned.

[0091] In summary, table 712 shows that the example greedy algorithm first sorts the bundle-node pairs by highest utility and schedules the bundles one by one until all nodes have been assigned or all jobs have been scheduled.

[0092] Return to reference Figure 3 The example scheduler module 312 is configured to schedule the allocated application implementations to their allocated computing resources for execution. Therefore, the allocation performed by the greedy algorithm is implemented by the example scheduler module 312.

[0093] Figure 8 is an example flow diagram illustrating example components in an example environment 800 of an example task configuration system. The example task configuration system is configured to dynamically configure atomic computing tasks to a set of networked computing devices having heterogeneous capabilities.

[0094] The example real-time scheduler module 802 receives a task request 804 through computing resources in a computing device to perform a job. The example computing device includes a local computing device 806 (e.g., an onboard controller in a vehicle), an edge computing device 808 (e.g., a controller in a traffic device), and a cloud computing device 810 (e.g., a cloud-based server). The example computing devices 806, 808, 810 include computing resources consisting of CPU, GPU, ASIC, FPGA, DSP, etc.

[0095] The example real-time scheduler module 802 monitors the status of and connections to computing resources through resource monitors 812 and performance monitors 814. The example resource monitor 812 tracks devices 806, 808, 810 and their available resources. The example performance monitor 814 collects statistics about communication channels and device speeds.

[0096] The example real-time scheduler module 802 identifies a specific task implementation from a task profile database 816. The example task profile database 816 includes static and dynamic data about the task, including resource usage, latency, reliability, etc. Based on the static and dynamic data about the task, available resources, and communication channels and device speeds, the example real-time scheduler module 802 schedules the specific task implementation to a specific computing resource to satisfy the task request 804. The example real-time scheduler module 802 runs a scheduling algorithm to assign jobs to devices for execution. The scheduling algorithm may include the use of an ILP or greedy algorithm.

[0097] The example scheduler module 818 retrieves the specific task implementations that have been scheduled by the example real-time scheduler module 802 from the task library 820, and deploys the specific task implementations to specific computing resources within the computing devices 806, 808, 810 for execution via the communication manager 822. The example task library 820 includes binary files of task implementations. The example communication manager 822 manages the communication links between devices. The communication links can be implemented using DSRC, cellular wireless networks (e.g., LTE, 5G or other), Ethernet, controller area network (CAN), wireless local area network (WLAN), and / or other communication protocols.

[0098] Fig. 9 is a process flow diagram showing an example process 900 in an example task configuration system. The order of operations within process 900 is not limited to being performed in the order shown in the figure, but can be performed in one or more applicable variation orders according to the present disclosure.

[0099] The example process 900 includes receiving a task request to perform a job by a computing resource in a computing device (operation 902). The example computing device may include a local computing device 806 (e.g., an onboard controller in a vehicle), an edge computing device 808 (e.g., a controller in a traffic device), and a cloud computing device 810 (e.g., a cloud-based server). The example computing devices 806, 808, 810 may include computing resources composed of a central processing unit (CPU), a graphics processor unit (GPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or others.

[0100] The example process 900 includes monitoring the status and connectivity of computing resources (operation 904). Monitoring may include tracking computing devices and their available computing resources, collecting statistics about communication channels and computing device speeds.

[0101] The example process 900 includes identifying a specific task implementation for scheduling (operation 906). The specific task implementation may be identified from the task profile database 816. The example task profile database 816 may include static and dynamic data about the task, including resource usage, delays, reliability, and the like.

[0102] The example process 900 includes scheduling specific task implementations to specific computing resources (operation 908). The specific task implementations may be scheduled to specific computing resources based on static and dynamic data about the tasks, available resources, and communication channels and device speeds to satisfy the task request. Scheduling the specific task implementations to specific computing resources may involve running a scheduling algorithm to assign jobs to devices for execution. The scheduling algorithm may include an ILP-based algorithm. The scheduling algorithm may include a greedy algorithm.

[0103] The greedy scheduling algorithm can be configured to sort the application implementations based on utility ranking, wherein the application implementation with the highest utility is given the highest ranking; and to schedule the application implementations one by one in the ranking order at the best available node (e.g., computing resource), wherein an application implementation is scheduled if no other implementation of the application has been scheduled and the best available node is capable of executing the application implementation. The utility of the application implementation is related to the priority and can be a function of the data contained in the task summary database, the selected implementation, and where it is scheduled to be executed.

[0104] The greedy scheduling algorithm can be configured to: enumerate all possible combinations of application implementations, where each combination is referred to herein as a bundle; compute the utility of each bundle-node pair; sort the bundle-node pairs by highest utility first; and schedule the bundles one by one until all nodes have been assigned or all jobs have been scheduled, where the assigned bundles cannot contain implementations of the same job.

[0105] The example process 900 includes retrieving a specific task implementation that has been scheduled from a task library, and (operation 910) dispatching the specific task implementation to a specific computing resource for execution (operation 912). The example task library may include binary files of different task implementations. Different task implementations provide a variety of task implementations (options) for different hardware, based on acceptable trade-offs in accuracy level.

[0106] The arrangement may be performed by a communication manager. The communication manager may be configured to manage communication links between devices. The communication links may be implemented using DSRC, cellular wireless networks (e.g., LTE, 5G, or other), Ethernet, controller area network (CAN), wireless local area network (WLAN), and / or other communication protocols.

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

Claims

1. A task configuration system in a vehicle for dynamically configuring atomic computing tasks for the vehicle to a networked computing resource suite with heterogeneous capabilities, the system comprising: a task library including a plurality of tasks, each task being one of a plurality of different implementations of an application, wherein the different implementations of the application provide different levels of accuracy and resource usage during execution, wherein the different implementations are configured based on a tradeoff between the level of accuracy and resource usage during execution; a real-time scheduler module, comprising one or more processors configured by programming instructions on a non-transitory computer-readable medium, the scheduler module being configured to: monitor available computing resources, the available computing resources comprising onboard computing resources provided by the vehicle and off-board computing resources provided by one or more of a mobile device, an edge device, and a cloud-based server; monitoring connectivity to computing resources, receiving a plurality of task requests, wherein the task request is a specification of a job requested for execution, prioritizing applications to be executed when executing the jobs, wherein more critical applications are assigned a higher priority, allocating onboard computing resources and off-board computing resources provided by one or more of a mobile device, an edge device, and a cloud-based server to the prioritized applications, wherein computing resources are allocated to the higher priority applications and remaining computing resources are allocated to other applications, and selecting specific implementations of the applications to allocate for execution on specific computing resources in a manner that maximizes overall utility; wherein the real-time scheduler module is configured to execute an integer linear program or a greedy algorithm to determine the allocation of specific application implementations of the application to be executed on specific computing resources; Among them, the greedy algorithm is configured as: sorting the application implementations in a hierarchical order based on their utility for use on available compute nodes, or sorting the application implementation bundles in a hierarchical order for use on available compute nodes based on utility measures of different combinations of bundles and compute nodes; and A scheduler module, comprising one or more processors configured by programming instructions on a non-transitory computer-readable medium, is configured to schedule allocated specific implementations of applications to their allocated computing resources for execution.

2. The task configuration system according to claim 1, wherein: A suite of networked computing devices including in-vehicle hardware and mobile devices, edge devices, and cloud-based servers; and The on-board computing resources and the off-board computing resources each include one or more central processing units, graphics processors, digital signal processors, application-specific integrated circuits, and field-programmable gate arrays.

3. The task configuration system according to claim 1, wherein the greedy algorithm is configured as follows: Ranking the job realizations based on utility, with the highest utility job realizations ranked first; and Job realizations are scheduled one by one in hierarchical order at the best available node, wherein a job realization is scheduled if no other realization of the job has been scheduled and the best available node is capable of performing the job realization.

4. The task configuration system according to claim 1, wherein the greedy algorithm is configured as follows: Enumerate all possible job combinations, where each possible job combination is called a bundle; identifying potential bundle-node pairs; Calculate the utility measure for each potential bundle-node pair; sorting the bundle-node pairs in order of utility, with the bundle-node pair with the highest utility being placed first; and Bundles are scheduled one after another until all nodes have been assigned or all jobs have been scheduled, where the assigned bundles cannot contain implementations of the same job.

5. The task configuration system according to claim 1, further comprising: a task profile database containing a task profile for each application implementation, the task profile comprising static and dynamic data about the task, including resource usage, latency, and reliability, wherein the task profile is accessible by the scheduler module when selecting a specific implementation of an application to assign to a specific computing resource; a resource monitor configured to track the device and its available computing resources, wherein the real-time scheduler module is configured to monitor the available computing resources via information provided by the resource monitor; an execution monitor configured to collect statistics about the communication channel and the speed of the device; and A communication manager is configured to manage communication links between devices providing computer resources, the communication links being implemented using a plurality of dedicated short-range communications, cellular wireless networks, Ethernet, wireless local area networks, and controller area networks.

6. A processor-implemented method in a vehicle for dynamically allocating automotive computing tasks to a suite of networked computing resources having heterogeneous capabilities, the method comprising: receiving, by a processor in the vehicle, a task request to perform a job via computing resources, the computing resources including onboard computing resources provided by the vehicle and off-board computing resources provided by one or more of a mobile device, an edge device, and a cloud-based server; monitoring, by the processor, a status of and connectivity to the computing resource; identifying, by the processor, specific task implementations for scheduling; Scheduling, by the processor, specific task implementations to be executed on specific onboard computing resources and specific off-board computing resources provided by one or more of a mobile device, an edge device, and a cloud-based server; wherein arranging the specific task implementations to the specific computing resources comprises executing an integer linear program or a greedy algorithm to determine an allocation of specific application implementations of the application to be executed on the specific computing resources, in, Executing the greedy algorithm involves: sorting the application implementations in a hierarchical order based on their utility for use on available compute nodes, or sorting the application implementation bundles in a hierarchical order for use on available compute nodes based on utility measures of different combinations of bundles and compute nodes; and The processor retrieves the specific task implementation that has been scheduled from the task library; and The processor allocates specific tasks for execution to specific on-board computing resources and non-on-board computing resources. 7 . The method of claim 6 , wherein scheduling specific task implementations to specific computing resources comprises running a scheduling algorithm to assign jobs to devices for execution, wherein the scheduling algorithm comprises an ILP-based algorithm or a greedy algorithm.

8. The method according to claim 6, wherein: Scheduling algorithms include greedy algorithms; The greedy algorithm is configured to rank the task realizations based on a utility ranking, wherein the task realizations having the highest utility are given the highest ranking; and The greedy algorithm is configured to schedule task implementations one by one in hierarchical order at the best available computing node, wherein a task implementation is scheduled if no other implementation of the task has been scheduled and the best available computing node is capable of performing the task implementation.

9. The method according to claim 6, wherein: Scheduling algorithms include greedy algorithms; The greedy algorithm is configured to enumerate all possible combinations of application implementations, where each combination is called a bundle; determine potential bundle-node pairs, and calculate the utility of each bundle-node pair; sort the bundle-node pairs in order of utility, with the bundle-node pair with the highest utility being placed first; and schedule the bundles one by one until all nodes have been assigned or all jobs have been scheduled, wherein the assigned bundles cannot contain implementations of the same job.

Citation Information

Patent Citations

  • Computing Optimized Virtual Machine Allocations Using Equivalence Combinations

    CN103970607A

  • Mapping method for multimode real-time tasks and multimode computing resources

    CN104834556A

  • Providing optimized quality of service to prioritized virtual machines and applications based on quality of shared resources

    CN104937584A

  • Method and device for resource scheduling in cloud system

    CN106878389A

  • Management system and method for automatic-driving vehicle-mounted computing resources

    CN108594819A