Platform Resource Selection for Upscaler Operation
The platform resource recommendation service addresses inefficiencies in workload allocation by dynamically identifying suitable GPUs and APUs based on real-time utilization and capabilities, optimizing performance and power consumption.
Patent Information
- Application Number
- JP2024519001
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-09-27
- Filing Date
- 2022-09-23
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing computing systems lack visibility into the runtime behavior of processing resources, leading to inefficient allocation of workloads that can result in oversubscription and suboptimal user experiences due to the inability to consider actual utilization and capabilities of platform resources.
A platform resource recommendation service that dynamically identifies and provides candidate resources based on performance capabilities, utilization metrics, and undiscoverable limitations, allowing for intelligent workload allocation across GPUs and APUs.
Improves workload allocation efficiency by ensuring workloads are placed on appropriate resources, optimizing performance and power consumption, and enhancing user experience by avoiding oversubscription and resource overutilization.
Smart Images

Figure 2024534640000001
Abstract
Description
[Background technology]
[0001] A computing system often includes several processing resources (e.g., one or more processors) that can fetch and execute instructions and store the results of the executed instructions in an appropriate location or output the calculated results. A processing resource (e.g., a central processing unit (CPU) or a graphics processor unit (GPU)) may include several functional units, such as, for example, arithmetic logic unit (ALU) circuits, floating point unit (FPU) circuits, and / or combinational logic blocks, that can be used to execute instructions by performing logical operations on data (e.g., one or more operands). For example, the functional unit circuits may be used to perform arithmetic operations, such as addition, subtraction, multiplication, and / or division, on operands via several logical operations.
[0002] Applications executing on such computer systems may be provided with the opportunity to select a particular processing resource for executing a particular workload. For example, in a computing system that includes a CPU and one or more GPUs, an application may select a particular processor for executing an application workload. An application may determine which processing resources are resident on a computing system by querying an operating system of the computing system. In one example, a multimedia playback application may query the operating system for a list of devices capable of media playback and select, for example, a particular GPU for executing a video playback workload. [Brief description of the drawings]
[0003] [Figure 1] FIG. 1 is a block diagram of an example system for providing a platform resource recommendation service in accordance with some embodiments of the present disclosure. [Diagram 2]FIG. 2 is an additional block diagram of an example system 200 for providing a platform resource recommendation service (e.g., a platform resource integrity service) that provides platform resource candidates, in accordance with some embodiments of the present disclosure. [Figure 3A] FIG. 2 is an additional block diagram of an example top-level system for client-server alloc, in accordance with some embodiments of the present disclosure. [Figure 3B] FIG. 13 is an additional block diagram of an example system for providing a platform resource recommendation service as a platform resource library in a server mode, in accordance with some embodiments of the present disclosure. [Figure 3C] FIG. 3 is an additional block diagram of an example system 325 for providing dynamic allocation services in a client mode using a platform resource library, in accordance with some embodiments of the present disclosure. [Figure 4] FIG. 2 is a block diagram of an example system for using a platform resource library in a user mode to provide a platform resource recommendation service, in accordance with some embodiments of the present disclosure. [Figure 5A] FIG. 13 is an additional block diagram of an example system for providing a platform resource recommendation service (e.g., a platform resource completeness service) for providing platform resource candidates for audio noise reduction (ANR) in accordance with some embodiments of the present disclosure. [Figure 5B] FIG. 11 is an additional block diagram of an example system for providing a platform resource recommendation service (e.g., a platform resource completeness service) for providing platform resource candidates for video preprocessing, in accordance with some embodiments of the present disclosure. [Figure 5C]FIG. 13 is an additional block diagram of an example system for providing a platform resource recommendation service (e.g., a platform resource completeness service) for providing platform resource candidates for video recording / streaming, in accordance with some embodiments of the present disclosure. [Figure 5D] FIG. 13 is an additional block diagram of an example system for providing a platform resource recommendation service (e.g., a platform resource integrity service) for providing platform resource candidates for post-processing and scaling, in accordance with some embodiments of the present disclosure. [Figure 6] FIG. 13 is an additional block diagram of an example system for providing a platform resource recommendation service (e.g., a platform resource integrity service) for composite processing of an upscaling operation, in accordance with some embodiments of the present disclosure. [Figure 7] FIG. 1 is a flow diagram illustrating an example method for providing platform resource candidates to a workload initiator, consistent with some embodiments of the present disclosure. [Figure 8] FIG. 11 is a flow diagram illustrating another example method for providing platform resource candidates to a workload initiator in accordance with some embodiments of the present disclosure. [Figure 9] FIG. 11 is a flow diagram illustrating another example method for providing platform resource candidates to a workload initiator in accordance with some embodiments of the present disclosure. [Figure 10] 1 is a flow diagram illustrating an example method in which platform resource candidates are updated during runtime, according to an embodiment of the present disclosure. [Figure 11] A flow diagram illustrating an example method of composite processing of upscaling operations of rendered frames using a platform resource recommendation service (e.g., a platform resource integrity service) in accordance with some embodiments of the present disclosure. [Figure 12]A flow diagram illustrating another example method of composite processing of upscaling operations of rendered frames using a platform resource recommendation service, according to some embodiments of the present disclosure. [Figure 13] FIG. 11 is a flow diagram illustrating another example method of composite processing of upscaling operations in which workload allocation is performed in several different ways, in accordance with some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0004] As described above, applications executing on a computer system may be given the opportunity to select a particular processing resource to execute a particular workload. In some scenarios, when an application is ready to allocate a workload for execution, the application first queries the operating system to determine which processing resources are available. For example, if the workload is a graphics (e.g., graphics rendering for a game) or a multimedia workload (e.g., multimedia playback), the application may first determine whether a GPU is present in the computing device. In some computing devices, more than one GPU may be present. For example, a computing device may include an integrated CPU and GPU, while also including a discrete GPU (i.e., on a separate chip). Additionally, the application may determine which video codecs are supported by the GPU, for example, to determine where the workload can be placed. For example, a streaming media service player may describe a particular workload (e.g., a movie) in terms of source resolution, bit rate, codec, display resolution, frame rate, etc., and query the operating system for processor resources on which the workload can be executed. The operating system may respond by identifying a GPU that has the capability to execute the workload. Based on the operating system's response, the application can select a GPU and assign the workload to that GPU. For example, the application can assign the workload to an integrated GPU because an integrated GPU typically consumes less power than a discrete GPU. This can be of particular concern when the computing device is running on battery power.
[0005] However, when the operating system provides information about the capabilities of the computing device, it does so without any insight into the runtime behavior of the system. That is, the operating system does not know how busy the video codec of the integrated GPU is. If an application decides to put a workload on the integrated GPU that may also be running other video workloads, such as a video conferencing application, the video codec of the integrated GPU may become oversubscribed. In other words, the application and the operating system have no visibility into the actual runtime utilization of the processor resources and therefore do not know whether the computing device can deliver the expected user experience for the workload.
[0006] In addition, the operating system does not fully understand the capabilities and limitations of the actual platform resources (e.g., hardware). In fact, some platform resource capabilities are not discoverable by the operating system. Thus, an application may be assigned to a platform resource that is not the most appropriate or optimal resource for processing the application.
[0007] In addition, data defining an image frame is typically scaled to various sizes for presentation. That is, image scaling refers to resizing a digital image. Upscaling or "resolution enhancement" is the process of generating a high-resolution image from a low-resolution input. Upscaling presents an image on a display with a higher resolution. For example, a picture or frame (e.g., an image) from a video stream is upscaled from a lower resolution to a higher resolution. The upscaled image may then be displayed on a display, for example, such that the image fills the entire display. One of the challenges with upscaling is the comprehensive and exhaustive use of platform resources without considering platform resource capabilities, availability, and limitations along with user preferences. Furthermore, the modality of the upscaling operation can adversely affect processing efficiency and power consumption.
[0008] Thus, embodiments according to the present disclosure provide a mechanism for a platform resource recommendation service by which an application or other workload initiator can receive platform resource recommendations for selecting one or more of a plurality of platform resources for executing a workload based on performance capabilities and utilization metrics.
[0009] An embodiment is directed to a method for recommending platform resources. The method includes receiving a request from a workload initiator for a platform resource candidate. The method also includes identifying one or more platform resource candidates based on the request and performance capabilities and utilization metrics of a plurality of platform resources, the plurality of platform resources including one or more GPUs and one or more accelerated processing units (APUs). It is noted that APU is considered a broad term. For example, APU refers to any cooperating set of hardware and / or software that performs functions and calculations related to accelerated graphics processing tasks, data parallel tasks, or nested data parallel tasks in an accelerated manner compared to a traditional CPU, a traditional GPU, software, and / or combinations thereof. For example, an APU is a processing unit (e.g., a processing chip / device) that can function as both a CPU and a GPU. Additionally, an APU is a chip that includes additional processing power used to accelerate one or more types of calculations outside of a general-purpose CPU. In one embodiment, the APU may include an integrated general-purpose CPU on the same die as a GPU, FPGA, machine learning processor, digital signal processor (DSP), audio / sound processor, or other processing unit, thus improving data transfer rates between these units while reducing power consumption. In some embodiments, the APU may include video processing and other application-specific accelerators.
[0010] A GPU is a graphics and video rendering device for computers, workstations, game consoles, and similar digital processing devices. A GPU is generally implemented as a co-processor component to a computer's CPU, and can be provided in the form of an add-in card (e.g., a video card), a co-processor, or as functionality directly integrated into a computer's motherboard or other device. A GPU can be a discrete GPU.
[0011] The method also includes dynamically providing the identified one or more candidate platform resources to the workload initiator. The terms "dynamic" or "dynamically" are used herein to indicate that the action is performed in an asynchronous, on-demand manner rather than statically. In this example, the "provisioning" is said to be performed dynamically in that the candidate platform resources may be identified and provided to the workload initiator at any time, including while the system is running. In this manner, the candidate resources may be identified based on real-time current utilization and system configuration, rather than statically without any knowledge of the current utilization.
[0012] In some embodiments, the method includes dynamically providing the identified one or more candidate platform resources based on non-performance capabilities and performance limitations of the plurality of platform resources. In some embodiments, the method includes collecting utilization metrics, non-discoverable performance capabilities, and performance limitations for each of the plurality of platform resources in a performance capability platform resource library.
[0013] In some embodiments, the method includes referencing a platform resource library to determine non-discoverable performance capabilities, performance limits, and historical performance data for each of a plurality of platform resources based on a request from a workload initiator for a platform resource recommendation. In some embodiments, the method includes monitoring performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limits for each of the plurality of platform resources at startup or during runtime of the workload.
[0014] In some embodiments, the method includes dynamically providing updated platform resource candidates during runtime of the workload based on adjusted performance capabilities and adjusted utilization metrics of the plurality of platform resources.
[0015] In some embodiments, the method includes ranking each of the plurality of platform resources based on performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations. In some embodiments, the method includes predicting a utilization impact for executing a workload on each of one or more of the plurality of platform resources based on the performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations. The performance capabilities can include an operating mode of the plurality of platform resources, an interconnect capability between the plurality of platform resources, a power capability of the plurality of platform resources, and a peripheral device capability. Additionally, the plurality of processor resources can include a local memory, a system memory, one or more peripheral devices, a display controller, a bus interface controller, and a memory subsystem controller. Additionally, the GPU can be a discrete GPU.
[0016] Another embodiment is directed to an apparatus for providing platform resource candidates, the apparatus comprising: a computer processor; and a computer memory operatively coupled to the computer processor, the computer memory having computer program instructions disposed therein that, when executed by the computer processor, causes the apparatus to make a request from a workload initiator for platform resource recommendations. The request may include a description of a workload from the workload initiator. The computer program instructions also cause the apparatus to analyze performance capabilities and utilization metrics of a plurality of platform resources, the plurality of platform resources including one or more GPUs and one or more APUs. The computer program instructions also cause the apparatus to dynamically provide the identified one or more platform resource candidates to the workload initiator. In one aspect, the workload initiator provides a set of profiled workloads and selects a workload type that fits / matches the capabilities of the platform resources or a user setting.
[0017] The computer program instructions also cause the device to refer to a platform resource library to determine undiscoverable performance capabilities, performance limitations, and historical performance data for each of the plurality of platform resources based on a request from the workload initiator for a platform resource recommendation.
[0018] The computer program instructions also cause the apparatus to monitor, at startup or during runtime of the workload, performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations for each of the plurality of platform resources, and the computer program instructions also cause the apparatus to dynamically provide updated candidate platform resources during runtime of the workload based on the adjusted performance capabilities and adjusted utilization metrics of the plurality of platform resources.
[0019] The computer program instructions also cause the apparatus to rank each of the plurality of platform resources based on the performance capabilities, the utilization metrics, the non-discoverable performance capabilities, and the performance limitations. The computer program instructions also cause the apparatus to predict a utilization impact for each of one or more of the plurality of platform resources for executing a workload based on the performance capabilities, the utilization metrics, the non-discoverable performance capabilities, and the performance limitations.
[0020] Yet another embodiment is directed to a computer program product for providing platform resource candidates. The computer program product includes computer program instructions disposed on a computer-readable medium that, when executed, causes a computer to receive a request for platform resource recommendations from a workload initiator. The request can include a description of the workload from the workload initiator. That is, the description can include a set of profiled workloads, allowing the workload initiator to select a workload type that fits / matches the capabilities of the platform resources or user settings.
[0021] The computer program instructions also cause the apparatus to analyze performance capabilities and utilization metrics of a plurality of platform resources, the plurality of platform resources including one or more GPUs and one or more APUs, and the computer program instructions also cause the apparatus to dynamically provide the identified one or more candidate platform resources to a workload initiator.
[0022] One embodiment is directed to a method for composite processing using platform resources. The method includes identifying a plurality of platform resources available for performing upscaling operations, the plurality of platform resources including one or more GPUs and one or more APUs. The method also includes dynamically allocating a workload of the upscaling operations to one or more of the plurality of platform resources based on at least one modality of the upscaling operations. The method also includes processing the workload of the upscaling operations by one or more of the plurality of platform resources based on the dynamically allocating workload.
[0023] In some embodiments, the method includes selecting a modality of the upscaling operation based on a user preference. In some embodiments, the method includes selecting a modality of the upscaling operation based on performance capabilities of one or more of a plurality of platform resources.
[0024] In some embodiments, the method includes dynamically allocating a workload of upscaling operations to one or more of the plurality of platform resources based on a performance capability of the one or more of the plurality of platform resources. In some embodiments, the method includes dynamically allocating a workload of upscaling operations to one or more of the plurality of platform resources based on a user preference. In some embodiments, the method includes dynamically allocating a workload of upscaling operations between a first platform resource and a second platform resource of the plurality of platform resources based on a modality of the upscaling operations, a user preference, and a performance capability of the first platform resource and the second platform resource. In some embodiments, the method includes dynamically allocating a workload of rendering operations, upscaling operations, and display operations between one or more of the plurality of platform resources based on a modality of the upscaling operations, a user preference, and a performance capability of the one or more of the plurality of platform resources.
[0025] Another embodiment is directed to an apparatus for composite processing using platform resources, the apparatus comprising: a computer processor; and a computer memory operatively coupled to the computer processor, the computer memory having computer program instructions disposed therein that, when executed by the computer processor, cause the apparatus to: identify a plurality of platform resources available for performing an upscaling operation, the plurality of platform resources including one or more GPUs and one or more APUs. The computer program instructions also cause the apparatus to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on at least a modality of the upscaling operation. The computer program instructions also cause the apparatus to process the workload of the upscaling operation with one or more of the plurality of platform resources based on the dynamically allocating the workload.
[0026] The computer program instructions also cause the device to select a modality of the upscaling operation based on a user preference, and the computer program instructions also cause the device to select a modality of the upscaling operation based on performance capabilities of one or more of a plurality of platform resources.
[0027] The computer program instructions also cause the apparatus to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on a performance capability of the one or more of the plurality of platform resources. The computer program instructions also cause the apparatus to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on a user preference. The computer program instructions also cause the apparatus to dynamically allocate a workload of the upscaling operation between a first platform resource and a second platform resource of the plurality of platform resources based on a modality of the upscaling operation, the user preference, and a performance capability of the first platform resource and the second platform resource.
[0028] The computer program instructions also cause the apparatus to dynamically allocate rendering, upscaling and display operations of the workload among one or more of the multiple platform resources based on a modality of the upscaling operation, user preferences and performance capabilities of the one or more of the multiple platform resources.
[0029] Yet another embodiment is directed to a computer program product for composite processing using platform resources. The computer program product is disposed on a computer-readable storage medium and includes computer program instructions that, when executed, cause a computer to identify a plurality of platform resources available for performing an upscaling operation, the plurality of platform resources including one or more GPUs and one or more APUs. The computer program instructions also cause the computer to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on at least a modality of the upscaling operation. The computer program instructions also cause the computer to process the workload of the upscaling operation with one or more of the plurality of platform resources based on the dynamically allocating the workload.
[0030] The computer program instructions also cause the computer to select a modality of the upscaling operation based on a user preference.The computer program instructions also cause the computer to select a modality of the upscaling operation based on performance capabilities of one or more of a plurality of platform resources.
[0031] The computer program instructions also cause the computer to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on a performance capability of the one or more of the plurality of platform resources. The computer program instructions also cause the computer to dynamically allocate a workload of the upscaling operation to one or more of the plurality of platform resources based on a user preference. The computer program instructions also cause the computer to dynamically allocate a workload of the upscaling operation between a first platform resource and a second platform resource of the plurality of platform resources based on a modality of the upscaling operation, the user preference, and a performance capability of the first platform resource and the second platform resource.
[0032] The computer program instructions also cause the computer to dynamically allocate the rendering, upscaling and display operations of the workload among one or more of the plurality of platform resources based on a modality of the upscaling operation, user preferences and performance capabilities of the one or more of the plurality of platform resources.
[0033] The embodiments according to the present disclosure are described in more detail beginning with FIG. 1. Throughout the specification and drawings, like numerals refer to like components. FIG. 1 is a block diagram of an example system 100 for providing platform resource recommendation services (e.g., dynamic allocation services) according to some embodiments of the present disclosure. The example system 100 of FIG. 1 can be implemented in a computing device such as a laptop or desktop personal computer, a server, a mobile device such as a smartphone or tablet, a game console, etc. The example system 100 includes two GPUs 104, 134, but one skilled in the art will understand that other systems can include more GPUs or use other types of accelerated processing devices without departing from the spirit of the present disclosure.
[0034] In the example of FIG. 1, the exemplary system 100 includes an APU 102 that integrates a CPU 106 and a GPU 104 (referred to herein as an "integrated GPU"). The CPU 106 and the integrated GPU 104 may be implemented on the same chip and therefore may share some components and interfaces, such as a system memory 160, a memory controller 114, and a direct memory addressing (DMA) engine 118 for accessing the system memory 160, a bus interface, such as a personal computing interface express (PCIe) interface 116, and other interfaces and adapters not shown in FIG. 1, such as a network interface, a universal serial bus (USB) interface, a persistent storage interface, such as a hard disk drive (HDD) and a solid state drive (SSD) interface. The CPU 106 includes one or more cores 108 (i.e., execution engines), a cache structure (not shown), pipeline components (not shown), and the like. The CPU 106 and other shared components are connected to the GPU 104 via a high-speed on-chip communication fabric (not shown).
[0035] In the example system 100 of Figure 1, the integrated GPU 104 includes a GPU compute engine 110 that includes multiple single instruction multiple data (SIMD) processing cores 112 with many parallel processing units (not shown). The GPU compute engine 110 also includes other components not shown in Figure 1, such as a geometry processor, a rasterizer, a graphics command processor, a hardware scheduler, an asynchronous compute engine, a cache, data sharing, etc. In the example of Figure 1, the integrated GPU 104 includes hardware accelerators in the form of application specific integrated circuits or functional logic blocks, such as a video encoder / decoder 120 (i.e., "codec") for accelerated video encoding and decoding, an audio codec 122 for accelerated audio encoding and decoding, a display controller 124 for accelerated display processing, and a security processor 126 for accelerated security protocol enforcement and compliance.
[0036] 1, APU 102 communicates with discrete GPU 134 (dGPU) via an interconnect, such as PCIe interconnect 190. PCIe interface 116 of APU 102 and PCIe interface 146 of dGPU 134 communicate via PCIe interconnect 190. In some examples, APU 102 and dGPU 134 may be implemented on the same board (e.g., printed circuit board). In other examples, dGPU 134 is implemented on a video or graphics card separate from the board of APU 102.
[0037] Similar to the integrated GPU 104, the dGPU 134 in the example of FIG. 1 includes a GPU execution engine 140 (e.g., a "GPU compute engine") that includes multiple SIMD processing cores 142 with many parallel processing units (not shown). The GPU compute engine 140 also includes other components not shown in FIG. 1, such as a geometry processor, a rasterizer, a graphics command processor, a hardware scheduler, an asynchronous compute engine, a cache, data sharing, and the like. In the example of FIG. 1, the dGPU 134 includes hardware accelerators in the form of application specific integrated circuits or functional logic blocks, such as a video encoder / decoder 150 (i.e., a "codec") for accelerated video encoding and decoding, an audio codec 152 for accelerated audio encoding and decoding, a display controller 154 for accelerated display processing, and a security processor 156 for accelerated security protocol enforcement and compliance. The dGPU 134 also includes a memory controller 144 and a DMA engine 148 for accessing a graphics memory 180 (e.g., a local memory). In some examples, the memory controller 144 and the DMA engine 148 are configured to access a shared portion of the system memory 160 .
[0038] In the example system 100 of FIG. 1, the system memory 160 (e.g., dynamic random access memory (DRAM)) hosts an operating system 164 that interfaces with device drivers 166 for the processor resources (i.e., the APU and discrete GPU and their components) described above. The system memory 160 also hosts one or more applications 162. In the context of this disclosure, the one or more applications may be graphics applications, multimedia applications, video editing applications, video conferencing applications, high performance computing applications, machine learning applications, or other applications that utilize the parallelism and / or graphics and video capabilities of the integrated GPU 104 and the dGPU 134. The one or more applications 162 generate workloads (e.g., graphics rendering workloads, audio / video transposition workloads, media playback workloads, machine learning workloads, etc.) that are assigned to the integrated GPU 104 or the discrete GPU (or a combination of both) by calls to the operating system 164. One skilled in the art will appreciate that the one or more applications may be a variety of additional application types that generate a variety of workload types, not all of which are identified herein. However, specific references to application types and workload types within this disclosure should not be construed as limiting the application types and workload types to those identified therein.
[0039] System memory 160 also hosts a resource manager 170 that receives requests including a description of a workload from a workload initiator, such as application 162, analyzes performance capabilities and utilization metrics of a plurality of platform resources, the plurality of platform resources including one or more GPUs and one or more APUs, and dynamically provides platform resource recommendations to the workload initiator, such as application 162, for example, to select one or more of the plurality of platform resources for executing the workload based on the performance capabilities and utilization metrics. In some examples, resource manager 170 is embodied in computer-executable instructions stored on a tangible computer-readable storage medium that, when executed by a processor, causes system 100 to perform the steps described above, as well as other steps and operations performed by the resource manager described below.
[0040] The resource manager may include an API 172 that enables an application 162 to request a platform resource recommendation from the resource manager 170 before assigning a workload to a particular GPU. A workload assignment recommendation, in this context, is a recommendation as to where (i.e., on which GPU) a workload should be placed (i.e., for execution of the workload). The platform resource recommendation is based on the performance capabilities and utilization metrics of various platform resources in the system 100, and may also be based on undiscoverable performance capabilities and performance limitations of each platform resource recommendation in the system 100.
[0041] In some examples, resource manager 170 includes a policy engine 174 that interprets one or more policies 176 related to determining optimal platform resource recommendations for workloads to platform resources in system 100 based on current values of runtime performance capabilities and utilization metrics of platform resources in system 100. The platform resource recommendations are then returned to application 162, which can use them to determine where to place the workload. In various embodiments, resource manager 170 communicates with driver 166 to obtain the values of utilization metrics or obtains the values of utilization metrics through other mechanisms. In such examples, driver 166 can include a utilization monitor for a particular processor resource and an interface for providing utilization metric values to the resource manager.
[0042] In various embodiments, resource manager 170 can provide platform resource allocation recommendations in platform resource recommendations. Platform resources can be devices in system 100 that are allocated to execute a particular task. Resource manager 170 provides platform resource recommendations to a workload initiator, such as application 162, to enable the workload initiator to select or reject one or more of the recommended platform resources (e.g., various devices in system 100) to execute a workload. This is advantageous for the workload initiator because traditionally, platform resources are allocated by OS 164 without full capabilities or detailed knowledge of platform resources. For example, performance capabilities or limitations (due to license or design) of APU 102 and GPU are not visible to OS 164. Also, each of application 162 and OS 164 may lack detailed runtime platform load information to evaluate available resources per task class domain.
[0043] Various types of applications may be workload initiators, each having a different type of workload. In some examples, a request from a workload initiator describes a type of workload, workload characteristics, processing requirements, and / or performance expectations for the workload. For example, a media player application may have a media playback workload to be executed on a computing system. In such an example, the workload description includes a source resolution, a display resolution, a bit rate, a video codec, an audio codec, and a frame rate for the playback workload. As another example, a video conferencing application may have a transcoding workload to be executed on a computing system. In such an example, the workload description may include a source video codec, a target video codec, and a frame rate. The video conferencing application may also include an artificial intelligence (AI) workload that includes AI algorithms for gaze correction or removing / replacing the background of an on-screen participant.
[0044] In some examples, the description of the workload may be provided using a description language that is parsable by the resource manager. For example, the description language includes descriptor tags for bitrates, for display resolutions, for video encoding protocols, etc. In these examples, the description of the workload is a structured description of the workload. In some examples, the description language included in the request is parsable by policy engine 174 of resource manager 170, as described in more detail below.
[0045] Additional details describing receiving a request for platform resource recommendations, identifying one or more platform resource candidates based on the request and performance capabilities and utilization metrics of a plurality of platform resources, and dynamically providing the identified one or more platform resource candidates to a workload initiator are provided below.
[0046] For further explanation, FIG. 2 is an additional block diagram of an exemplary system 200 for providing platform resources, a recommendation service (e.g., platform resource integrity service) that provides platform resource candidates, according to some embodiments of the present disclosure. In the example of FIG. 2, by way of example only, the exemplary system 200 includes an APU 102 that integrates a CPU 106, a GPU 104, an audio codec 122 (e.g., an audio co-processor), a video codec 120, a GPU computation engine 110, and a display controller 124. The dGPU 134 can include a video codec 150, a GPU computation engine 140, and a display controller 154. It should be noted that each of the components of FIG. 1 can be included in the APU 102 and the dGPU 134, but those shown in FIG. 2 are used for convenience of explanation. The platform resource integrity service 210 (e.g., platform resource recommendation service) is also associated with a smart shift component 242 and a platform component 240.
[0047] In one aspect, the smart shift component 242 provides per-engine utilization information and additional information required for application specific integrated circuits (ASICs). The smart shift component 242 provides information regarding per-workload power budget / requirements and assists in shifting power allocations among platform resources as needed. That is, the smart shift component 242 assists in rebalancing power distribution to platform resources. The smart shift component 242 provides the platform resource integrity service 210 with power, performance, thermal, and policy information related to the capabilities of platform resources, such as the APU 102 and dGPU 134.
[0048] As shown, APU 102 and dGPU 134 communicate with platform resource integrity services 210. That is, platform resource integrity services 210 may be referred to as a “smart allocator” (e.g., “SmartAlloc”). Platform resource integrity services 210 are also associated with system memory 160 associated with APU 102. Platform resource integrity services 210 are also associated with graphics memory 180 (e.g., local memory) of dGPU 134.
[0049] 1, the APU 102 communicates with the dGPU 134 via an interconnect, such as a PCIe interconnect 190. In some examples, the APU 102 and the dGPU 134 may be implemented on the same substrate (e.g., a printed circuit board). A platform component 240 may be an interface between the APU 102 and the dGPU 134 for communicating with a platform resource integrity service 210.
[0050] Platform resource integrity service 210 is a user-mode subsystem for collecting, storing, and monitoring platform capabilities to provide engine selection guidance. That is, platform resource integrity service 210 has access to and stores all data regarding the capabilities of APU 102, dGPU 134, system memory 160, and local memory 180 (e.g., graphics memory 180 of FIG. 1). Platform resource integrity service 210 acts as a centralized platform "brain" that has access to and knowledge of all platform resources, such as APU 102, dGPU 134, system memory 160, and local memory 180 capabilities installed on the computer platform along with each of their operating modes, interconnect capabilities between APU 102 and dGPU 134, power envelopes for alternating current (AC) and direct current (DC) modes, and connectable peripheral device capabilities (e.g., cameras, display panels, etc., not shown for ease of illustration).
[0051] In addition, the platform resource integrity service 210 has full knowledge and awareness of undiscoverable capabilities (e.g., undiscoverable by the OS) or even known limitations of platform resources, such as the APU 102, dGPU 134, system memory 160, and local memory 180. The platform resource integrity service 210 can receive requests for platform resource recommendations from workload initiators, such as the application 162 of FIG. 1, using platform components 240. Thus, the platform resource integrity service 210 can gather information about platform hardware resources in use at the start or during runtime of a workload, allowing the workload initiators themselves to make adjustments and use available resources. When queried by a workload initiator, the platform resource integrity service 210 can return recommended resource hints (e.g., GPU or APU and their engines) for each use case class.
[0052] The platform resource integrity service 210 analyzes and examines the performance capabilities and utilization metrics of a plurality of platform resources, such as the APU 102, the dGPU 134, the system memory 160, and the local memory 180. The platform resource integrity service 210 provides platform resource recommendations to a workload initiator to select one or more of the plurality of platform resources, such as the APU 102, the dGPU 134, the system memory 160, and the local memory 180, for executing a workload based on the performance capabilities and utilization metrics. The platform resource recommendations can also be based on non-performance capabilities and performance limitations of the plurality of platform resources. The platform resource integrity service 210 collects, stores, and monitors the performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations for each of the plurality of platform resources in a platform resource library.
[0053] In one aspect, the platform resource integrity service 210 is a dynamic platform resource library (SmartAlloc library) for determining undiscoverable performance capabilities, performance limitations, and historical performance data for each of a number of platform resources (e.g., APU 102, dGPU 134, system memory 160, and graphics memory 180, etc.) based on a request from a workload initiator for a platform resource recommendation.
[0054] During the launch or execution of a workload, the platform resource integrity service 210 monitors the performance capabilities, utilization metrics, undiscoverable performance capabilities, and performance limits for each of a plurality of platform resources, such as the APU 102, the dGPU 134, the system memory 160, and the local memory 180. The platform resource integrity service 210 can dynamically provide updated platform resource candidates during the runtime of the workload based on the adjusted performance capabilities and adjusted utilization metrics of the plurality of platform resources.
[0055] The platform resource integrity service 210 ranks each of the plurality of platform resources based on performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations. For example, the ranking can be based on policies, such as, for example, that a platform resource should not fall below a power threshold level to receive additional workload tasks. Alternatively, the ranking can be based on platform capabilities associated with a workload and user preferences.
[0056] The platform resource integrity service 210 predicts utilization impacts for executing a workload on each of one or more of a plurality of platform resources based on performance capabilities, utilization metrics, undiscoverable performance capabilities, and performance limitations.
[0057] For further explanation, FIG. 3A is an additional block diagram of an example system 300, e.g., a top-level system for client-server smart alloc, according to some embodiments of the present disclosure. In the example of FIG. 3, by way of example only, the example system 300 includes a client-server smart alloc service, referred to herein as a "platform resource integrity service" 210 (e.g., "platform resource integrity service"). Thus, references to the "platform resource integrity service 210" may be used interchangeably with client-server smart alloc or "smart alloc" services. As mentioned above, the platform resource integrity service 210 of FIG. 2 includes platform resource libraries 312 that may be provided on the server side and in user mode, e.g., platform resource libraries 314A and 314B. Thus, the platform resource integrity service 210 may be provided collectively as services and libraries that are loaded and invoked on demand.
[0058] As used herein, the term "smart allocation" or "smart alloc" may refer to one or more operations or systems that provide platform resource integrity services. Also, the term "smart allocation" or "smart alloc" may refer to an operation or system that can identify one or more platform resource candidates based on the requirements and performance capabilities of multiple platform resources and utilization metrics, and dynamically provide the identified platform resource candidates to a workload initiator. The platform resources include one or more GPUs and one or more APUs. Also, a "smart alloc" operation or system does not "allocate" resources on behalf of a workload initiator (e.g., an application), but simply provides recommendations or "hints" to the workload initiator, which then selects the resource allocation.
[0059] Platform resource library 312 operates in two modes: 1) a client-only mode (or client mode / user mode) (e.g., application or driver), and 2) a client-server mode (or server mode). Note that as used herein, references to client-only mode (or client mode / user mode) are sometimes also referred to as "smart alloc client mode." Similarly, references to client-server mode (or server mode) are sometimes also referred to as "smart alloc server mode."
[0060] In client-server mode, the client may be a platform resource library that links with the application, and the server performs operations for resource estimation for platform resource recommendation as described in Figures 3A, 3B, and 4.
[0061] In the client only, the client may be a platform resource library that links with applications that perform operations for resource estimation for platform resource recommendation, as in Fig. 3C. In one aspect, a set of applications using the client-only mode may have client platform resource library code for building a serverless mesh of smart alloc-enabled applications that effectively executes a server-centric modality through client platform resource library communication.
[0062] For example, in a user mode (e.g., client mode), such as user modes 320A and 320B, user modes 320A and 320B (and also driver 344 in "user mode drivers") can link with or load platform resource libraries 314A and 314B and use platform resource library 312 (server side) to invoke APIs (e.g., platform resource interfaces or "internal interfaces") exposed by platform resource libraries 314A and 314B.
[0063] In server mode, the platform resource integrity service 210 provides a platform resource library 312, hosts the server mode, and is continuously running and linked with the initialized platform resource library 312 in server mode. When a request (e.g., an API call) is made by a user (e.g., a workload initiator), the request is passed to the server side of the platform resource library 312 using a remote procedure call (RPC) in a synchronous operation.
[0064] The platform resource library 312 can be deployed and can involve a set of records, such as resource platform records 340. The records 340 can be a list of platform resource capabilities including capabilities, limitations, performance metrics, and historical data that are not discoverable by the operating system. The records 340 can be used by the platform resource library 312 as read-only. The records 340 can be provided in the platform resource library 312 and can be queried for per-original equipment manufacturer (OEM) and per-platform supplemental information along with overrides. In one aspect, the records 340 can be considered as a read-only (RO) database (DB), such as, for example, a RO SmartAlloc (SA) DB (RO SA DB). The records 340 can be encrypted and decrypted by the platform resource integrity service 210.
[0065] Records 340 are updated with driver update installations and are used as drop-in replacements for debugging and testing purposes. Upon receiving requests from workload initiators, records 340 are instantiated, merged and / or updated to provide a comprehensive platform data set, such as a complete static platform resource capability list, which is used continuously while collecting, storing and recording the latest activity data / metrics related to platform resources.
[0066] At operating system boot time or upon first execution of a particular application, platform resource library 312 performs a platform resource discovery operation to determine / discover all available platform information and then cross-checks the discovery data against records 340 to build a complete static platform resource capability list for system 300. The static platform resource capability list can be stored in platform resource library 312, and the static platform resource capability list can be accessed by subsequent queries to platform resource library 312.
[0067] In contrast, for dynamic operation (eg, to determine the current status, load, and usage of each GPU engine in the system 300), the platform resource library 312 collects, processes, stores, and monitors current platform resource metrics.
[0068] In an additional aspect, in a user mode, such as user mode 320A or 320B, a user mode integrity process is used to connect to a platform resource library, which in turn hosts a user mode platform resource library, such as platform resource library 314A or 314B. A platform resource library 312 instance can be linked to the platform resource integrity service 210 in server mode upon initialization by the platform resource integrity service 210. The platform resource integrity service 210 performs integrity tasks and provides services to other platform resource library instances (linked with clients) upon receiving remote procedure call (RPC) requests.
[0069] For example, a platform resource library, such as platform resource library 314A or 314B, may be linked with multiple client processes to provide per-client platform information queries. These instances include platform resource libraries, such as platform resource library 314A or 314B, initialized in user mode, such as user mode 320A or 320B (e.g., using user mode platform resource interfaces 322A and 322B). Note that the only platform resource library initialized in server mode is platform resource library 312 linked with platform resource integrity service 210; all other platform resource libraries are initialized in user mode.
[0070] To further illustrate the platform resource library 312 in server mode, FIG. 3B shows an additional block diagram of an example system 315 for providing a platform resource recommendation service as a platform resource library in server mode (e.g., smart alloc server mode).
[0071] At startup, the platform resource integrity service 210 loads and calls the platform resource library 312 to initialize in server mode, which can use the platform hardware and state discovery manager 328. Upon receiving the initial call to initialize in server mode, the platform resource library 312 subscribes to platform and system events triggered by the operating system (OS) or drivers for resource recommendation requests via the platform state change listener 325 (e.g., OS notification listener). The platform resource library 312 uses the device, engine, property (prop) and state communication manager 324 to initialize device discovery (e.g., discover all available hardware devices) and all other alternative devices 316 (e.g., third party devices), such as discovery of drivers 344. The platform resource library 312 can use the alternative device communication manager 326 to build a list of alternative devices (e.g., third party devices) and their properties (e.g., device engines, device engine characteristics, and static capability "caps"), such as platform resources.
[0072] The platform resource library 312 reads the record database 346 (e.g., ROSA DB) or software basic input / output system (SBIOS) and applies overrides to the records, if available. The platform resource library 312 updates the platform database 348 if any platform capability changes are identified, and creates additional platform capabilities if not identified via the platform hardware and state discovery manager 328. The platform resource library 312 can also determine the platform state of each platform resource and use the platform hardware and state discovery manager 328 to set the identified state in the platform state manager 332.
[0073] During runtime, static capabilities 330 can be created or updated for the platform, and when the arrival / removal of a device is detected, platform state change listener 327 uses platform hardware and state discovery manager 328 to initiate the operations described herein for initiation. Platform state change listener 327 can update platform database 348 (e.g., a read / write record database) and / or set state within platform state change listener 327 as necessary. Platform state change listener 327 can notify and provide information about any platform resource state changes to user platform resource interface 322 (e.g., user platform resource interface manager).
[0074] The user platform resource interface 322 provides the user (via the platform resource library 314) with any notifications, any platform resource state changes, and redirects platform resource recommendations (e.g., hints) to the policy manager 334 per use case. For example, if tracking is required for each platform resource library (e.g., each platform resource library per client), such as the user platform resource library 314, the platform resource library 312 (in server mode) can accept registration and deregistration of each user using a user identifier (ID) via an auxiliary channel (AUX). The user platform resource interface 322 can maintain an active user / client state or "alive state" with each registered client in the platform state manager 332. The user platform resource interface 322 can indicate to the platform state manager 332 to maintain the active user / client state longer or to clean, remove, and / or scrub those of users / clients that were previously registered as "active" but failed the active user state validation from the user platform resource interface 322. In addition, the user platform resource interface 322 provides a cross-process communication channel for users.
[0075] In an additional aspect, policy manager 334 receives and processes platform resource recommendation requests (e.g., resource allocation hint requests). In doing so, policy manager 334 determines the use case class request and determines the request details, such as whether there are any specific engine or format requirements as part of the request, from the request record in platform database 348. Policy manager 334 retrieves static capability records and platform resource state from platform database 348 and applies the hint requests per use case to determine one or more platform resources to recommend per request. In an aspect, platform database 348 can have policy overrides (as part of the records it merges from record database 346) in case of platform shortages or other reasons.
[0076] During runtime, for platform dynamic capabilities of platform resources, the dynamic capabilities manager 352 can be initialized if the dynamic capabilities are an extension of the static capabilities. When a workload initiator initiates a platform resource recommendation request, the policy manager 334 determines and checks the dynamic records in the platform database 348 and makes resource allocation decisions similar to the process described above for the static capability records.
[0077] In one aspect, the dynamic capability manager 352 obtains the device's engine load and alternate device load (if applicable) via the third party device communications manager 326 and stores the information in a dynamic capability record in the platform database 348. Upon receiving a request from the dynamic capability manager 352, the third party device communications manager 326 checks and determines the power management state and consumption for each of the alternate devices (e.g., driver 344).
[0078] The dynamic capability manager 352 triggers a check of the load on platform resources following one or more events, such as, for example, a platform state change, a user platform resource recommendation / hint request (if response time is not compromised), or a periodic check request. The dynamic capability manager 352 can build and maintain a historical profile of platform device engine usage and stores the historical profile in a dynamic capability record in the platform database 348.
[0079] In an additional aspect, if user / client tracking is required and each user / client platform resource recommendation / hint request needs to be stored and logged, the user platform resource interface 320 can inform the dynamic capability manager 352 of such requirement. The client is identified (via the platform resource library 314) by a client ID generated by the platform resource library 314 and provided by the user platform resource interface 320. The user platform resource interface 320 also informs the dynamic capability manager 352 if the client terminates the connection, providing the terminated client user ID in order to release the reserved resources.
[0080] For event subscription, the platform state change listener 327, which may reside in the platform resource library 312, is active in server mode. The platform state change listener 327 listens for various events and provides / includes a list of system or driver events. The list of events may increase and grow over time. In one aspect, the platform state change listener 327 listens for various required events that must always be registered in the platform resource library 312, such as, for example, AC / DC switch events, addition or removal of platform resources, or changes to the power envelope based on user request via the power source (e.g., battery / performance slider), or changes to control panel settings, such as, for example, changes to AC and DC modes. In one aspect, there may be multiple events occurring at the same time. The platform resource library 312 queues each of the events and processes them in the order in which they occur. It should be noted that the operating system sets the device (e.g., non-primary display GPU) to a hot or cold state, such as, for example, D3 hot or D3 cold state. Any access to such a device will wake up the device. Thus, the platform resource library 312 subscribes to and avoids accesses to devices in any non-D0 state (e.g., D1, D2, and D3 power states). Rather, the platform resource library 312 stores and caches all platform resource capabilities and considers all platform resources available when providing platform resource recommendations to workload initiators.
[0081] To further illustrate the platform resource library 312, FIG. 3C illustrates an additional block diagram of an example system 325 for providing a smart allocation service in a client mode using a platform resource library. That is, FIG. 3C illustrates a variation of the client-only mode where the platform resource library itself provides resource estimation without a server portion (or without a smart allocation server mode). As used herein, the smart allocation service in the client mode using the platform resource library may be referred to as a platform resource recommendation service as the platform resource library in the client mode (e.g., user mode) without the smart allocation server mode.
[0082] Again, as described above, Figure 3C illustrates operation in a client-only mode where the client can be a platform resource library that links with an application that performs operations for resource estimation for platform resource recommendation. In addition, a set of workload initiators (e.g., applications) using the client-only mode can have client platform resource library code and, through client platform resource library communication, build a serverless mesh of smart alloc-enabled applications, effectively executing a client-server modality.
[0083] Using similar components described herein, the system 325 provides an example embodiment of the essential components of the platform resource integrity service 210 and the platform resource library 314 in user mode (e.g., smart alloc client mode). In this manner, the example system 325 can be tailored to accommodate future extensions and porting of the platform resource integrity service 210 to a full client-server architecture or other types of computing systems.
[0084] In one embodiment, a client application (e.g., a user-mode application) or a user-mode driver in user mode that issues a request for platform resource recommendations loads or links with and initializes the platform resource library 314. Note that as shown in Figure 3C, the platform resource library 314 is initialized in client mode rather than server mode as described in Figure 3B.
[0085] Initialization and population of platform resource library 314 may include initializing and implementing the following activities: In one aspect, initialization and population of platform resource library 314 may include providing interface definitions via user platform resource interface 320 to provide and implement various notifications. Platform state change listener 327 subscribes to one or more platform system events, such as AC / DC power events. All platform capabilities may be reduced to only the interface support domain. Additionally, static capabilities of platform resources may be considered immutable and may be discovered once using platform database 348. Dynamic capabilities of platform resources may be queried via dynamic capability manager 352 upon platform resource recommendation request. Initialization and population of platform resource library 314 may also include recognizing D3 state devices and avoiding unnecessary wakeups, as described herein. All historical data of dynamic capabilities stored in dynamic capability manager 352 may be used to determine the load history required to determine platform capabilities of various platform resources.
[0086] The platform resource library 314 provides an entry point for client applications (eg, workload initiators) through which the client applications can query for recommended platform resources or hints.
[0087] In one aspect, a client subscribes to the platform resource library 314 to receive notifications regarding one or more types of notifications. Upon subscribing, the platform resource library 314 provides the client with any notifications regarding various platform resource state changes, such as, for example, AC / DC switches or device arrival / removal, via the platform state manager 332. For some events, previously issued platform resource recommendations / hints may be invalidated. In this case, the platform resource library 314 may dynamically provide updated platform resource recommendations or allocation hints. However, the decision to reallocate platform resources or to maintain use of previously allocated platform resources may be at the discretion of the client. That is, the platform resource library 314 only provides platform resource recommendations or allocation hints and does not make a decision to reallocate or continue to use previously allocated platform resources.
[0088] In one aspect, platform resource recommendations may be provided per use case class. A list of platform resources per class may be provided and used with the user platform resource interface 320. The user platform resource interface 320 provides hierarchical use case classes along with details and resources associated with each of the hierarchical use case classes via the platform resource library 314. All available use case domain classes and a list of platform resources per class may be provided with the user platform resource interface 320.
[0089] In an additional aspect, the platform resource library 314 provides platform resource recommendations to the user / client via a user platform resource interface 320. The platform resource recommendations include platform resource classes, details, and performance capabilities and utilization metrics.
[0090] A resource inquiry received by the platform resource library 314 specifies a use case class (e.g., domain) of platform resources (e.g., video or audio) and specific details about the platform resource recommendation request, such as, for example, the type of encoding standard for the video class. The use case class and specific details of the use case can be used as input to the platform resource library 314 to provide a platform resource recommendation of the best or "optimal" platform resource to use. The platform resource recommendation can be specific, such as, for example, providing a recommended CPU or GPU shader, or even providing dedicated hardware. Thus, the platform resource library 314 provides a user (e.g., a workload initiator) with a platform resource recommendation that includes a particular device and a resource description that may be appropriate for the purpose and details of the request.
[0091] In an additional aspect, the platform resource library 314 can optionally provide performance profiles, such as performance preferences per class (domain) for quality (e.g., more power) compared to efficiency, such as power saving (e.g., less power). This option allows the client to receive the option to select a particular recommended solution for execution in the case of multiple variants of implementation of the same feature in the platform resource recommendation. In one aspect, the performance profile includes the performance capabilities and limitations of a particular platform resource. Performance profile data can be collected, monitored, and stored in a platform database.
[0092] For further explanation, FIG. 4 illustrates an additional block diagram of an exemplary system 400 for using a platform resource library in a user mode to provide a platform resource recommendation service in accordance with some embodiments of the present disclosure. More specifically, FIG. 4 supplements FIG. 3B (wherein the server mode is shown) and illustrates a logical diagram of a client or "client mode" of the client-server smart alloc system described in FIG. 3A. In the example of FIG. 4, by way of example only, the exemplary system 400 includes a user mode application / driver 410 that communicates with a platform resource library 312 that may be provided on the server side. The user mode application / driver 410 includes a platform resource library 314 internally or externally. Thus, the platform resource integrity service 210 of FIG. 2 may be provided collectively as a platform resource integrity service and a platform resource library such that the server mode platform resource library 312 and the user mode platform resource library 314 are loaded and called on demand or as needed.
[0093] In one embodiment, during initialization to provide a platform resource recommendation service, a client application, such as, for example, a user mode application / driver 410, loads or links with the platform resource library 314 in user mode and initializes the platform resource library 314. In one aspect, the platform resource library 314 may be initialized in client mode and the server platform resource library 312 is initialized in server mode. Once initialized, the platform resource library 314 establishes communication in user mode with the platform resource library 312 in server mode. However, if a connection cannot be established with the platform resource library 312 and the platform resource library 314, an error is returned to the user mode application / driver 410.
[0094] Upon initialization, the platform resource library 312 attempts to establish a cross-process communication channel with the server platform resource library 312. The platform resource interface 320 provides the cross-process communication channel. Once initialized, the platform resource library 314 communicates with the platform resource library 314 on behalf of the user mode applications / drivers 410 to a) provide or receive requests / responses for platform resource recommendations (e.g., platform resource hint recommendations per use case), b) receive notifications regarding any platform state changes, and c) optionally provide information, metrics, and capabilities regarding platform resource usage.
[0095] For example, the user mode application / driver 410 calls the platform resource library 314 using the platform resource interface 320 to request platform resource recommendations, such as, for example, a request or query for resource allocation recommendations per domain use case. The platform resource library 312 provides the platform resource recommendations to the platform resource library 314. However, if the platform resource recommendation service notification suggests to reallocate platform resources due to a platform state change, it is the responsibility of the user mode application / driver 410 to reallocate the platform resources. The thread pool 422 may be used by the platform resource library 314 to provide notifications to the user mode application / driver 410. Also, the callbacks may be implemented on the platform resource library 314 in an unblocking fashion using the thread pool 422, so that there is no blocking of the invocation of the platform resource interface 320 from within the callback itself, and thus the user mode application / driver 410 may fully complete the reinitialization and call other interface functions of the platform resource library 314.
[0096] Again, as referred to herein, various connections and interfaces may be established between the platform resource interface 320 and the server platform resource library 312, such as, for example, request / response, notification, auxiliary (AUX) and state change interface connections.
[0097] In one aspect, the platform resource interface 320 allows the user mode application / driver 410 to issue requests for and receive responses (e.g., requests / responses) for platform resource recommendations. In one aspect, the platform resource recommendations include platform resource capabilities, limitations, utilization metrics, and types of platform resources for specific requirements. The platform resource interface 320 also allows the user mode application / driver 410 to subscribe to various notifications, such as, for example, any platform state changes. The platform state changes can also be included or provided in updated platform resource recommendations for resource allocation or reallocation events.
[0098] The AUX information channel is generated by the platform resource library 314 and can be implicitly maintained and "kept active" (or "kept alive") with the server platform resource library 312, for example, when per-client tracking is required.
[0099] The identified user (ID) can be provided and generated (ID GEN) by the platform resource library 314, which can be used to track the user mode application / driver 410. The platform resource library 314 can unload the auxiliary channel but deregister by the server platform resource library 312. The AUX information channel can also be used to keep / keep messages active / alive (without involvement from the user mode application / driver 410) and when a server mode shutdown attempts to reconnect to the server platform resource library 312. The AUX information channel can be used to provide notifications regarding connection loss and connection recovery shall be sent to the platform resource interface 320. The AUX information channel can be used to register and deregister the platform resource library 314 on load / unload with the provided user ID. The user ID can be used by the server platform resource library 312 to track the state (e.g., client state) of the user mode application / driver 410 and clean up resources if the connection with the user mode application / driver 410 is terminated.
[0100] In addition, the server platform resource library 312 collects, gathers, monitors and discovers all capabilities and limitations of platform level resources (e.g., static capabilities) and monitors and maintains run-time usage of platform resources per capability (e.g., dynamic capabilities) via metrics. The server platform resource library 312 provides platform resource recommendations of desired or "preferred" platform resources per domain class (e.g., devices / engines per domain class, such as video, audio, three-dimensional (3D) and / or compute classes). Policies per class can also be defined and used. Policies can be rules and can be changed or adjusted over time. Policy rules can be extensible for new domain classes, user tasks and workloads.
[0101] For further explanation, FIG. 5A illustrates an additional block diagram of an example system 500 for providing a platform resource recommendation service (e.g., platform resource integrity service) that provides platform resource candidates for audio noise reduction (ANR) according to some embodiments of the present disclosure. The example system 500 includes an APU 102 that integrates a CPU 106, a GPU 104, an audio codec 122, a video codec 120, and a GPU computation engine 110, and a display controller 124. The example system 500 includes a dGPU 134 that includes a video codec 150, a GPU computation engine 140, and a display controller 154. The APU 102 can communicate with a system memory 160 having a GPU / CPU coherent memory 544 and a display 542B. The dGPU 134 can communicate with a local memory 180 and a display 542B. It should be noted that each of the components of Figure 1 or Figure 2 may be included in the APU 102 and the dGPU 134, but the components shown in Figure 5A are used only for convenience of explanation. The APU 102 receives audio input 546A data and outputs audio data as audio output 546B.
[0102] The example system 500 includes a platform resource library 312 in communication with the APU 102 and the dGPU 134. The platform resource library 312 may be responsible for collecting and storing the static and dynamic capabilities of each platform resource, such as, for example, the APU 102 and the dGPU 134.
[0103] During operation, a workload initiator, such as virtual audio driver 510, can request platform resource recommendation hints, such as querying a request for information regarding allocation recommendations for audio noise reduction (ANR). Platform resource library 312 analyzes and determines the static capabilities (e.g., resource availability) and dynamic capabilities (resource occupancy) of all platform resources, such as APU 102, dGPU 134, and their internal / associated components (e.g., compute engine 110, display controller 124, etc.).
[0104] The platform resource library 312 provides platform resource recommendations based on the specific details of the requests issued by the driver 510, such as, for example, recommending which resources to use for each quality request to maximize efficiency and optimize power / performance. Using the platform resource recommendations received from the platform resource library 312, the workload initiator (e.g., driver 510) can accept or reject the platform resource recommendations. For example, if the workload initiator (e.g., driver 510) accepts the platform resource recommendations, the workload initiator (e.g., driver 510) allocates the recommended platform resources to maximize efficiency and optimize power / performance.
[0105] FIG. 5B illustrates an additional block diagram of an example system 500 for providing a platform resource recommendation service (e.g., a platform resource completeness service) that provides platform resource candidates for video preprocessing, in accordance with some embodiments of the present disclosure.
[0106] In operation, a workload initiator, such as, for example, a video capture pipeline device media foundation transformation (DMFT) component 514, which may be connected to a camera 562, requests platform resource recommendation hints, such as, for example, querying a request for information regarding allocation recommendations for video pre-processing. The platform resource library 312 analyzes and determines the static capabilities (e.g., resource availability) and dynamic capabilities (resource occupancy) of all platform resources, such as, for example, the APU 102, dGPU 134, and their internal / associated components (e.g., compute engine 110, display controller 124, etc.).
[0107] A workload initiator, such as a video capture pipeline device DMFT component 514, links with a computer vision and machine learning (CVML) software development kit (SDK) 566 for video quality improvement, such as noise removal, brightness level, contrast, and other image enhancements. The CVML SDK 566 loads the platform resource library 312. The platform resource library 312 analyzes and determines the static capabilities (e.g., resource availability) and dynamic capabilities (resource occupancy) of all platform resources, such as the APU 102, dGPU 134, and their internal / associated components (e.g., compute engine 110, display controller 124, etc.).
[0108] The platform resource library 312 provides platform resource recommendations, such as, for example, recommending which resources to use per quality requirement to maximize efficiency and optimize power / performance, based on specific details about the requests issued by the workload initiator (e.g., the video capture pipeline DMFT component 514). Using the platform resource recommendations received from the platform resource library 312, the workload initiator (e.g., the video capture pipeline DMFT component 514) can accept or reject the platform resource recommendations. For example, if the workload initiator (e.g., the video capture pipeline DMFT component 514) accepts the platform resource recommendations, the workload initiator (e.g., the video capture pipeline DMFT component 514) allocates the recommended platform resources to maximize efficiency and optimize power / performance.
[0109] FIG. 5C shows an additional block diagram of an example system 500 for providing a platform resource recommendation service (e.g., a platform resource completeness service) that provides platform resource candidates for video recording / streaming, in accordance with some embodiments of the present disclosure.
[0110] During operation, workload initiators such as gaming / game playing applications 550 for capturing, streaming and sharing media / video and images, and Open Broadcaster Software (OBS) applications 552 request platform resource recommendation hints, such as querying requests for information regarding allocation recommendations for video pre-processing.
[0111] The gaming / game playing application 550 and the OBS application 552 can open an Advanced Media Framework (AMF) 570 for encoding, such as encoding requests. The AMF 570 can open a platform resource library 312. The platform resource library 312 analyzes and determines the static capabilities (e.g., resource availability) and dynamic capabilities (resource occupancy) of all platform resources, such as the APU 102, the dGPU 134, and their internal / associated components (e.g., the compute engine 110, the display controller 124, and the video codecs 120 and 150, etc.).
[0112] The platform resource library 312 provides platform resource recommendations, such as, for example, recommending which resources to use for each quality requirement to maximize efficiency and optimize power / performance, based on specific details about requests issued by the workload initiators (e.g., gaming / game playing applications 550 and OBS applications 552). Using the platform resource recommendations received from the platform resource library 312, the workload initiators (e.g., gaming / game playing applications 550 and OBS applications 552) accept or reject the platform resource recommendations. For example, if the workload initiators (e.g., gaming / game playing applications 550 and OBS applications 552) accept the platform resource recommendations, the workload initiators (e.g., gaming / game playing applications 550 and OBS applications 552) allocate the recommended platform resources to maximize efficiency and optimize power / performance.
[0113] FIG. 5D shows an additional block diagram of an example system 500 for providing a platform resource recommendation service (e.g., a platform resource integrity service) that provides platform resource candidates for post-processing and scaling in accordance with some embodiments of the present disclosure.
[0114] During operation, a workload initiator, such as a gaming / game playing application 550 for capturing, streaming, and sharing media / video and images, requests platform resource recommendation hints, such as querying a request for information regarding allocation recommendations for video pre-processing.
[0115] A workload initiator, such as gaming / game playing application 550, can open platform resource library 312. Platform resource library 312 analyzes and determines the static capabilities (e.g., resource availability) and dynamic capabilities (resource occupancy) of all platform resources, such as APU 102, dGPU 134, and their internal / associated components (e.g., compute engine 110, display controller 124, and video codecs 120 and 150, etc.).
[0116] The platform resource library 312 provides platform resource recommendations, such as, for example, which resources to use for upscaling and post-processing, based on specific details about the request issued by the workload initiator. The workload initiator 514 uses the platform resource recommendations received from the platform resource library 312 to accept or reject the platform resource recommendations.
[0117] Note that, as shown in Figure 5D, a gaming application can use either the dGPU 134 or the APU 102 for rendering. Thus, Figure 5D represents post-processing of rendered frames on either the dGPU 134 or the APU 102 without application awareness of further upscaling / post-processing. However, Figure 5D can also be applied when a gaming application queries platform resources and requests post-processing actions.
[0118] Referring now to Fig. 6, a block diagram of an example system 600 for providing a platform resource recommendation service (e.g., platform resource integrity service) for composite processing of an upscaling operation, according to some embodiments of the present disclosure, is shown. Fig. 6 also shows generalized operations for composite processing that can be applied to an upscaling process. That is, Fig. 6 can be applied to composite processing of an upscaling operation using a platform resource recommendation service, according to some embodiments of the present disclosure.
[0119] In operation, the platform resource integrity service 210 can provide an upscaling service (e.g., a "smart upscaling" service). That is, the upscaling service selects optimal resource access to perform upscaling. More specifically, the upscaling service provided by the platform resource integrity service 210 accurately identifies the presence or availability of the APU 102 and the dGPU 134 and distributes the rasterization and upscaling workload across or between the APU 102 and the dGPU 134. In an additional aspect, the platform resource integrity service 210 allocates the APU 102, the dGPU 134, or a combination thereof, for image rendering, upscaling, and scanout placement.
[0120] In an additional aspect, the upscaling service provided by the platform resource integrity service 210 dynamically identifies one or more GPUs and one or more APUs to upscale data. The upscaling service provided by the platform resource integrity service 210 dynamically allocates the workload of the upscaling operation to the APU 102, the dGPU 134, or a combination thereof based on at least the modality of the upscaling operation. In one aspect, the modality of the upscaling operation includes, but is not limited to, nearest neighbor interpolation, bilinear (basic interpolation), and bicubic algorithm (complex interpolation). Each of the modalities constitutes a different upscaling operation, and each processes similar images differently. The workload of the upscaling operation can be processed by the APU 102, the dGPU 134, or a combination thereof based on the dynamic allocation of the workload. The upscaling service provided by the platform resource integrity service 210 dynamically allocates the workload of the upscaling operation based on user preferences, the capabilities of the APU 102, the dGPU 134, or a combination thereof.
[0121] In an additional aspect, the upscaling service provided by the platform resource integrity service 210 dynamically selects the modality of the upscaling operation depending on user preferences, the platform capabilities of the APU 102, the dGPU 134, or a combination thereof.
[0122] For example, assume that the upscaling service attempts to conserve or save processing cycles of the dGPU 134 to complete a full frame rendering using ray tracing. To do this, the dGPU 134 renders in lower spatial units. Using the upscaling service, the platform resource integrity service 210 assigns to the APU 102, which restores the low resolution rendering to high resolution using filtering, such as edge enhancement. Thus, the upscaling service provided by the platform resource integrity service 210 provides flexibility for upscaling by selecting an appropriate upscaling algorithm based on user preferences and platform capabilities.
[0123] In one aspect, the user preferences include, but are not limited to, defining upscaling modalities (e.g., modes or types of upscaling operation), values, thresholds, capacities, utilization metrics. The user preferences include various types of headroom bias, power bias, quality bias, and speed bias. For example, the user preferences may include: 1) using the highest quality upscaling modality that limits the APU 102 below a defined utilization threshold (e.g., below 60 percent) for headroom bias; 2) using a baseline upscaling modality for power bias; 3) using the highest quality upscaling modality supported by the APU 102 up to a defined utilization threshold (e.g., at least 80 percent utilization capacity by the APU 102) for quality bias; or 4) using a baseline upscaling modality for speed bias.
[0124] With respect to upscaling modality quality, the upscaling modalities can be based on ranked or preferred quality levels. For example, the upscaling modalities can be ranked, selected or arranged based on the quality delivered. The upscaling modalities include, for example, 1) time-based super-resolution to the output resolution, 2) time-based super-resolution to near the output resolution (i.e., upscaling less than 1.3 times in each direction in the display controller), 3) spatial-only perceptual-based upscaling to the output resolution, 4) spatial-only perceptual-based upscaling to near the output resolution, and 5) an improved RCAS on the input resolution and algorithm with overshoot / undershoot filter to near the output resolution. An algorithm with RCAS at the input resolution and overshoot / undershoot filter near the output resolution.
[0125] Thus, the upscaling service provided by the platform resource integrity service 210 selects rendering operations on the dGPU 134, the APU 102, or both the dGPU 134 and the APU 102. The upscaling service provided by the platform resource integrity service 210 selects upscaling operations on the dGPU 134, the APU 102, or both the dGPU 134 and the APU 102. The upscaling service provided by the platform resource integrity service 210 selects display operations on the dGPU 134, the APU 102, or both the dGPU 134 and the APU 102. For example, the platform resource integrity service 210 selects rendering on the dGPU 134, upscaling on the APU 102, and displaying using the display controller 124 of the APU 102. Alternatively, the platform resource integrity service 210 selects rendering on the dGPU 134, upscaling on the APU 102, and displaying using the display controller 154 of the dGPU 134. In another aspect, the platform resource integrity service 210 selects between rendering on the dGPU 134, upscaling on the dGPU 134, and displaying using the display controller 154 of the dGPU 134. In an additional aspect, the platform resource integrity service 210 selects between rendering on the APU 102, upscaling on the APU 102, and displaying using the display controller 124 of the APU 102.
[0126] To further illustrate, consider the following example operations. As a preliminary matter, in each of the examples, platform resource integrity service 210 performs static and dynamic platform resource checks (e.g., analyzes capabilities) using platform component 240. Smart shift 242 provides platform resource integrity service 210 with power, performance, temperature, and policy information regarding capabilities of platform resources, such as APU 102 and dGPU 134.
[0127] In a first example, assume that the platform resource integrity service 210 selects the dGPU 134 to perform rendering operations and selects the APU 102 to display a gaming application (e.g., image display). In one aspect, the platform resource integrity service 210 makes this selection when the user preference desires or intends to maximize frame rate and ray tracing. However, ray tracing can adversely affect frame rate if spatial resolution is reduced. Thus, ray tracing with frames results in a trade-off of achieving a higher frame rate while sacrificing spatial resolution. Thus, in this example, the user indicates a preference to select to maximize frame rate (e.g., achieve the highest frame rate), but this selection results in a loss of quality in spatial resolution.
[0128] In this scenario, the platform resource integrity service 210 selects the APU 102 to restore spatial resolution. In this manner, the platform resource integrity service 210 determines which platform resource to use based on user preferences. For example, the platform resource integrity service 210 can learn or determine that the user indicates a preference for higher frame rates that compromise image detail, or that the user indicates a preference for maximum detail, such as, for example, high-definition video (e.g., "4K" video), and the user is satisfied with a suboptimal frame rate or has no preference for ray tracing. In one aspect, the workload request provides the user preferences, while machine learning operations can be performed by the platform resource integrity service 210 to learn user behavior based on historical data.
[0129] Thus, in this example, the game is executed (e.g., played) on the dGPU 134 at a lower resolution than the current display settings of the display 542B. In this scenario, the rendered image is processed for upscaling and post-processing. In one aspect, post-processing can be image sharpening, color grade adjustment, or any other processing operations required after the dGPU 134 finishes rendering. The GPU compute engine 140 can perform selected upscaling operations, such as temporal reconstruction supersampling (TRSS), on the dGPU 134.
[0130] Again, during operation, the game played is rendered on the dGPU 134, and then other upscaling workloads are transferred / sent to the APU 102 for display, such as by using the display controller 124. The APU 102, at the direction of the platform resource integrity service 210, provides advanced upscaling operations, machine learning inference-based upscaling or shader upscaling (based on the capabilities of the APU 102 and user preferences), with post-processing performed by the APU 102. In one aspect, since the image was rendered at a lower resolution, the APU 102 can perform image sharpening for post-processing. The image is then sharpened and upscaled in the display pipe (e.g., Display Core Next "DCN" scale), such as by using the APU's display controller 124.
[0131] In a second example, assume that the dGPU 134 is high powered and provides low latency output. In this scenario, the platform resource integrity service 210 selects the dGPU 134 to perform full frame rate gameplay and (optionally) output on the dGPU 134 or, in a hybrid graphics situation, on the APU 102.
[0132] In a third example, assume that the user preference is to use an advanced upscaler, for example, instead of using a basic upscaler, such as advanced machine learning inference-based upscaling. If the dGPU 134 lacks the ability to perform advanced machine learning inference-based upscaling, the platform resource integrity service 210 selects the APU 102 to upscale in a specialized modality of machine learning inference-based upscaling, where the APU 102 includes an inference processor unit (e.g., machine learning components not shown) and can perform upscaling using a full complement of shaders, or can perform upscaling based on the inference processing unit, resulting in better or increased results of upscaling. Thus, in this third example, a game can be played on the dGPU 134, and the APU 102 can perform the machine learning inference upscaler and then post-process on the APU 102 with additional sharpening of the image. In this way, the APU 102 uses machine learning for upscaling and then uses shaders (e.g., the GPU compute engine 110 on the APU 102) for further post-processing.
[0133] In a fourth example, assume that a user preference is to run an application, such as, for example, playing a game, with the lowest power. The platform resource integrity service 210 can choose to play the game on the APU 102 and output on the APU 102 while completely ignoring the dGPU 134. Thus, this example illustrates how the operations described herein for platform resource recommendations can work with a smart upscaler. For example, the platform resource integrity service 210 provides a recommendation to switch platform resources based on a low battery, implying or suggesting to move all operations from the dGPU 134 to the APU 102 and continue playing the game while ignoring the dGPU 134.
[0134] In summary, the platform resource integrity service 210 identifies the platform capabilities of each platform. The platform resource integrity service 210 can then use smart upscaling to determine the modality of upscaling (e.g., how to perform upscaling) based on the operating conditions. That is, the platform resource integrity service 210 understands and determines which of the platform resources perform upscaling based on the user preferences and the platform capabilities of the APU 102 and the dGPU 134. For example, if the dGPU 134 is tuned to a particular upscale ratio, the platform resource integrity service 210 can determine what other platform resources, if any, can be selected and used when the user indicates a preference to, for example, change the aspect ratio, indicate a preference to use a different scale ratio, or indicate a preference to offset some results of the upscaling, such as ringing or aliased lines, and then post-process using shaders. In this manner, the platform resource integrity service 210 can dynamically allocate the upscaling workload of the upscaling operation to the APU 102, the dGPU 134, or both based on at least the modality of the upscaling operation, the platform capabilities, and the user preferences. The APU 102, the dGPU 134, or both can then process the workload of the upscaling operation based on the dynamically allocating workload.
[0135] For further explanation, FIG. 7 illustrates a flow diagram illustrating an example method for providing platform resource candidates to a workload initiator, according to some embodiments of the present disclosure. The example method of FIG. 7 includes receiving 710 a request for platform resource recommendations from a workload initiator. In some examples, the request may be for information indicating where the workload should be placed among processing resources capable of executing the workload. For example, if the workload includes video processing or graphics processing tasks, the computing system (e.g., system 100 of FIG. 1) that executes the workload includes multiple GPUs capable of executing the workload. In a particular example, the computing system includes an integrated GPU (e.g., integrated GPU 104 of FIG. 1) and a discrete GPU (e.g., dGPU 134 of FIG. 1). In such an example, the request from the workload initiator is a query to platform resource integrity service 210 for a recommendation or "hint" that the workload should be placed on an integrated GPU or a discrete GPU, or a combination thereof. In some cases, a workload includes work-items that may execute on an integrated GPU and other work-items that may execute simultaneously on a discrete GPU.
[0136] Various types of applications may be workload initiators, each having a different type of workload. In some examples, a request from a workload initiator describes a type of workload, workload characteristics, processing requirements, and / or performance expectations for the workload. For example, a media player application may have a media playback workload to be executed on a computing system. In such an example, the workload description includes a source resolution, a display resolution, a bit rate, a video codec, an audio codec, and a frame rate for the playback workload. As another example, a video conferencing application may have a transcoding workload to be executed on a computing system. In such an example, the workload description includes a source video codec, a target video codec, and a frame rate. The video conferencing application may also include an artificial intelligence (AI) workload that includes AI algorithms for gaze correction or removing / replacing a participant's background on a screen.
[0137] The example method of FIG. 7 includes identifying 720 one or more platform resource candidates based on the requirements and performance capabilities and utilization metrics of a plurality of platform resources. The platform resources include one or more GPUs and one or more APUs. In some examples, identifying 720 one or more platform resource candidates is performed by collecting static and dynamic capabilities along with runtime utilization metrics from APUs and dGPUs, including capabilities and utilization metrics of an integrated GPU compute engine (e.g., integrated GPU compute engine 110 of FIG. 1 ) and a discrete GPU compute engine (e.g., discrete GPU compute engine 140 of FIG. 1 ).
[0138] The capabilities of the APU and dGPU can be expressed in various ways as recognized by those skilled in the art. For example, platform capabilities include processing speed, power state, engine utilization, memory controller / PCIe utilization and capabilities, power limitations or constraints, upscaling capabilities and limitations, rendering capabilities and limitations, and display capabilities and limitations. Platform capabilities can include video enhancement capabilities and artificial intelligence (AI) features for video / video conference calling or streaming. Platform capabilities include capabilities to perform various types of modalities of workloads or applications, such as upscaling, rendering, or display. Platform capabilities include capabilities to process workloads in low battery modes, such as running gaming applications with the lowest power consumption.
[0139] In some examples, identifying 720 one or more platform resource candidates is performed based on a performance factor of a platform resource's ability to perform a task better than another processor resource. In one example, the platform resource integrity service 210 determines that a gaming workload should be placed on a discrete GPU unless the gaming workload is predicted to result in oversubscription of the discrete GPU. In another aspect, the platform resource integrity service 210 determines that video playback should be performed using the audio codec 122. It may be the case that one of the GPUs includes an audio codec 122 accelerator and the other does not.
[0140] APU and dGPU utilization can be expressed in a variety of ways as will be appreciated by those skilled in the art. For example, utilization metrics for APUs and dGPUs include processor utilization as a ratio of idle time to busy time, as a number of active processes, as a number of active threads, as power consumption, or a combination thereof. Integrated and discrete GPUs include various counters to provide these metrics.
[0141] 7 includes dynamically providing the identified platform resource candidates to the workload initiator 730. In some examples, dynamically providing the identified platform resource candidates to the workload initiator 730 is performed by the platform resource integrity service 210 sending a notification to the workload initiator that includes the identified platform resource candidates.
[0142] In an additional example, the platform resource recommendation includes a recommendation to select at least one of a plurality of platform resources to execute the workload when at least two of the plurality of platform resources are available to execute the workload. For example, the recommendation or resource hint may include a hint or recommendation as to which platform resource (e.g., GPU, APU, etc.) to load the workload on, and may also provide a recommendation / resource hint as to which platform resource to use when multiple options are available.
[0143] For further explanation, Figure 8 illustrates a flow diagram illustrating another exemplary method of providing platform resource candidates to a workload initiator, according to some implementations of the present disclosure. The method of Figure 8 is similar to the method of Figure 7, except that the method of Figure 8 also includes collecting 810 the performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations (collectively referred to as "parameters" or "metrics" for ease of reference) of each platform resource in a platform resource library. The collection of such parameters 810 is performed at the start of a system workload or at boot time as an initial "discovery" task. Collecting parameters may include collecting information about platform hardware resources.
[0144] At operating system boot time or upon first execution of an application, platform resource library 312 performs a platform resource discovery operation to determine all available platform information. Platform resource library 312 then cross-checks the discovery data against resource platform records (described above as 340) to build a complete static platform resource capability list for system 300. The static platform resource capability list can be stored so that it is accessible by platform resource library 312. In contrast, for dynamic operation (e.g., to determine current system 300 status, load, and usage per GPU engine), platform resource library 312 collects, processes, stores, and monitors current platform resource metrics or parameters. Platform resource utilization metrics can also be collected for each platform resource (e.g., each engine / core) load within the available dynamic load range. Such dynamic load range can be based on any platform resource capabilities or limitations. Such capabilities or limitations can be due to the type of operating mode, memory bandwidth-based limitations, or system interconnect load.
[0145] The method of FIG. 8 includes monitoring 820 performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limits for each of a plurality of platform resources during runtime of the workload. That is, after an initial discovery process and baseline of resource utilization metrics, the system can monitor and update the metrics with the real-time utilization and capabilities of the resources. As part of the monitoring, the platform resource integrity service 210 can utilize a platform state change listener 327 that monitors and listens for various events specified in a list of system or driver events. The list of events can increase and grow over time. In one aspect, the platform state change listener 327 monitors and listens for various required events that must be constantly registered in the platform resource library 312. Such required events include, for example, alternating current / direct current (AC / DC) switch events, addition or removal of platform resources, changes to the power envelope based on user request via the power source (e.g., battery / performance slider), or changes to the control panel settings. Changes to the control panel settings can include, for example, changes to AC and DC modes. These monitored events provide real-time data to the platform resource integrity service 210 so that it can better inform the identification 720 of platform resource candidates.
[0146] Also in the method of FIG. 8, identifying platform resource candidates step 720 includes referencing a platform resource library to determine non-discoverable performance capabilities, performance limitations, and historical performance data for each of a plurality of platform resources based on a request from a workload initiator for platform resource recommendations step 830. The platform resource integrity service 210 populates a platform resource library 312 that includes a set of records, such as record 340. Record 340 may be a resource platform record that has a comprehensive resource platform data set that includes a complete list of platform resource capabilities (including capabilities not discoverable by the operating system), limitations, performance metrics, and historical data. Record 340 may be used by the platform resource library 312 as read-only. Record 340 may be provided in the platform resource library 312 from an original equipment manufacturer (OEM) and platform supplemental information.
[0147] After consulting the platform resource library 830, the method of Figure 8 continues by identifying platform resource candidates 840 based on non-performance capabilities and performance limitations of a plurality of platform resources. That is, in addition to performance capabilities, resource candidate identification may depend on non-performance capabilities and performance limitations.
[0148] For further explanation, Figure 9 depicts a flow diagram illustrating another example method for providing platform resource candidates to a workload initiator in accordance with some implementations of the present disclosure. The method of Figure 9 is similar to the method of Figure 7, except that it includes step 910 of ranking each of a plurality of platform resources based on performance capabilities, utilization metrics, undiscoverable performance capabilities, and performance limitations. In some examples, the step 910 of ranking each of the plurality of platform resources based on performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations is performed by the platform resource integrity service 210 by ranking the capabilities, performance capabilities, utilization metrics, non-discoverable performance capabilities, and performance limitations of the APU 102 or the following dGPU based on 1) delivering the maximum frame rate and / or highest quality possible under the maximum platform capacity allowed by the APU 102 or dGPU, 2) memory bandwidth, 3) computational bandwidth, 4) ability or capacity to maintain frame rates for various types of real-time use cases, 5) ability to run workloads based on, for example, the lowest power option or the highest performance option, ability to minimize memory transfers between the APU 102 or dGPU, and 6) ability to minimize memory. It should be noted that user preferences may also be used to rank the capacities.
[0149] During operation of the system, resource utilization and capabilities change. To that end, FIG. 10 illustrates a flow diagram illustrating an exemplary method in which platform resource candidates are updated during runtime, according to an embodiment of the present disclosure. The method of FIG. 10 is similar to the method of FIG. 7, except that it also includes step 1010 of dynamically providing updated platform resource candidates based on adjusted performance capabilities and adjusted utilization metrics of the plurality of platform resources during runtime of the workload. In some examples, step 1010 of dynamically providing updated platform resource candidates is performed by providing an updated recommendation to the workload initiator for reallocating platform resources. For example, if a change is detected in a platform resource provided in a previously provided set of resource candidates, the platform resource candidates may be re-identified based on the detected change, and an updated recommendation of resource candidates may be provided to the workload initiator. Such changes may include, for example, a change in performance, a number of active processes, a number of active threads, a loss or gain in power consumption, or a combination thereof.
[0150] For further explanation, Figure 11 shows a flow diagram illustrating an example method of composite processing of upscaling operations of rendered frames using a platform resource recommendation service, according to some embodiments of the present disclosure. As described herein, it should be noted that a scaling operation or "upscaling" can also include downscaling, such as when a frame is rendered at a higher resolution than is presented to an end user. Thus, in general, a scaling operation can include image processing (e.g., image sharpening) without scaling, in a cross-device manner, together with or independent of the scaling operation.
[0151] 11 includes identifying 1110 a plurality of platform resources available for performing an upscaling operation (of the rendered frame), the resources including (at least) one or more GPUs and one or more APUs. In some examples, identifying 1110 a plurality of platform resources available for performing the upscaling operation by dynamically identifying the availability of dGPU 134 and APU 102 to upscale the data.
[0152] The exemplary method of FIG. 11 includes dynamically allocating 1120 a workload of the upscaling operation to one or more of a plurality of platform resources based on at least a modality of the upscaling operation. In some examples, dynamically allocating 1120 a workload to one or more of the platform resources is performed by a platform resource integrity service 210 that spreads the rasterization and upscaling workload between the APU and the dGPU. That is, the platform resource integrity service 210 can distribute the rasterization and upscaling workload between the APU and the dGPU based on capabilities and utilization metrics of the integrated GPU compute engine (e.g., the integrated GPU compute engine 110 of FIG. 1 ) and the discrete GPU compute engine (e.g., the discrete GPU compute engine 140 of FIG. 1 ).
[0153] 11 includes processing 1130 a workload of the upscaling operations by one or more of the plurality of platform resources based on dynamically allocating the workload. In some examples, processing 1130 a workload of the upscaling operations by one or more of the plurality of platform resources based on dynamically allocating the workload is performed by indicating to a particular platform resource that the upscaling operations are assigned to the APU 102, the dGPU 134, or both. Based on the indication, the APU 102, the dGPU 134, or both can execute a process.
[0154] For further explanation, FIG. 12 shows a flow diagram illustrating another exemplary method of composite processing of an upscaling operation of a rendered frame using a platform resource recommendation service according to some embodiments of the present disclosure. The method of FIG. 12 is similar to the method of FIG. 11, except that it shows an alternative embodiment of identifying (1110) available platform resources for performing the upscaling operation. In one embodiment, the method includes a step 1210 of selecting a modality of the upscaling operation based on a user preference. In some examples, the step 1210 of selecting a modality of the upscaling operation based on a user preference is performed (via a machine learning operation) by identifying or learning a user preference for upscaling and the selection of the modality of the upscaling operation. For example, the modality of the upscaling operation can be nearest neighbor interpolation, bilinear (basic interpolation), and bicubic algorithm (complex interpolation) based on the user preference or a learned user profile.
[0155] In another embodiment, identifying 1110 platform resources available for performing the upscaling operation includes selecting 1220 a modality for the upscaling operation based on performance capabilities of one or more of the plurality of platform resources. In some examples, selecting 1210 a modality for the upscaling operation based on performance capabilities of one or more of the plurality of platform resources is performed via a machine learning operation by identifying or learning the performance capabilities of one or more of the plurality of platform resources for upscaling and selecting a modality for the upscaling operation.
[0156] Similar to identifying platform resources 1110, which may be performed in a variety of ways, the allocation of workload may also be performed. To that end, Figure 13 illustrates a flow diagram illustrating another exemplary method of composite processing of an upscaling operation in which the allocation of workload is performed in a number of different ways, in accordance with some embodiments of the present disclosure. More specifically, the exemplary method of Figure 13 includes dynamically allocating workload 1310 based on user preferences, including:
[0157] In some examples, dynamically allocating 1310 the workload of upscaling operations (of rendered frames) is performed by selecting rendering, upscaling, and display operations on the APU 102, the dGPU 134, or both depending on user preferences. For example, to continue playing a game while in a user-preferred low power mode that specifies execution of a gaming application at the lowest power, the platform resource integrity service 210 provides a recommendation to perform all operations on the APU 102 and ignore the dGPU 143. In another example, if the user preference is to maximize the frame rate using ray tracing, the platform resource integrity service 210 can utilize the dGPU 134 to render the image at a lower spatial unit while assigning workflow tasks to the APU 102 to restore the lower resolution rendering to a higher resolution. Such restoration can include filtering, such as edge enhancement, to provide flexibility for upscaling by selecting an appropriate upscaling algorithm based on user preferences and platform capabilities.
[0158] The exemplary method of FIG. 13 includes dynamically allocating 1320 workload based on the performance capabilities of platform resources. In some examples, allocating 1320 workload based on the performance capabilities of platform resources is performed by selecting rendering, upscaling, and display operations on the APU 102, the dGPU 134, or both, depending on the platform capabilities of the APU 102 and the dGPU 134. For example, the APU 102, the dGPU 134, or both, may be selected to perform rasterization or upscaling by determining that the workload assigned to the resource will not result in oversubscription of the resource based on one or more policies. As an example, a policy may state that rendering and display may be assigned to an APU with added workload unless either or both of the APU 102, the dGPU 134, are oversubscribed, while the dGPU may be recommended to upscale workloads placed on the dGPU, if possible, due to its ability to maximize frame rate. For example, such policies may specify preferences regarding where an upscaling workload or components of an upscaling workload should be placed, enumerated priorities regarding aspects of the workload (e.g., speed, power consumption, image quality, etc.), basic requirements for the workload (e.g., frame rate, latency, output resolution), critical resources for the workload (e.g., which resources are heavily utilized by the workload), security and protection policies, etc.
[0159] The policy may require that the workload of upscaling operations be allocated to the APU 102, dGPU 134, or both based on the policy: 1) deliver the maximum frame rate and / or highest quality possible under the maximum platform capacity allowed by the APU 102 or dGPU; 2) allocate based on memory bandwidth; 3) prioritize based on computational bandwidth; 4) allocate based on ability or capability to maintain frame rate for various types of real-time use cases; 5) allocate based on ability to conserve energy, e.g., ability to run the workload based on lowest power option or highest performance option, ability to minimize memory transfers between the APU 102 or dGPU, etc.; 6) allocate based on ability to minimize memory footprint.
[0160] Additionally, allocating the rendering, upscaling, and display operations of a workload among one or more of the platform resources may be based on a power state of one or more of the platform resources (e.g., a change from AC power to DC power, or a change from DC power to AC power) and a performance capability of one or more of the platform resources.
[0161] In view of the above, the skilled reader will appreciate that some embodiments according to the present disclosure provide several advantages. The embodiments provide an application intending to initialize a workload on a multi-GPU system with visibility into the system's runtime behavior so that the application does not place the workload on over-utilized resources. Furthermore, policies for a feature / workload type provide definitions that enable the resource manager's policy engine to make optimal workload allocation recommendations for that feature / workload type. Thus, the system can ensure that the workload will perform as expected, or the application is notified that performance cannot be guaranteed prior to initializing the workload. In this manner, the user experience is improved.
[0162] Some embodiments enable memory-local computing to be used efficiently for atomic operations, which can improve performance for a range of important workloads (e.g., graph analysis, sparse matrix algebra, machine learning, etc.). Such applications can exploit cache locality when available and dynamically identify coalescing opportunities to enable more efficient multi-module memory-local processing operations.
[0163] Some embodiments may be systems, devices, methods, and / or logic circuits. The computer-readable program instructions of the present disclosure may be either assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, such as object-oriented programming languages such as Smalltalk, C++, and traditional procedural programming languages such as the "C" programming language or similar programming languages. In some embodiments, an electronic circuit, including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), executes the computer-readable program instructions by utilizing the state information of the computer-readable program instructions.
[0164] Aspects of the present disclosure are described herein with reference to flow diagrams and / or block diagrams of methods, apparatus (systems) and logic circuitry according to some embodiments of the present disclosure. It will be understood that each block of the flow diagrams and / or block diagrams, and combinations of blocks in the flow diagrams and / or block diagrams, can be implemented by logic circuitry.
[0165] Also, logic circuitry may be implemented in a processor, other programmable data processing apparatus, or other device to cause a sequence of operational steps executed on the processor, other programmable apparatus, or other device to produce a computer-implemented process, such that the instructions executed on the computer, other programmable apparatus, or other device perform the functions / acts specified in the flow diagrams and / or block diagram blocks.
[0166] The flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and logic circuits according to various embodiments of the present disclosure. In this regard, each block in the flow chart or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative embodiments, the functions described in the blocks may occur out of the order described in the figures. For example, two blocks shown in succession may in fact be executed substantially simultaneously, or the blocks may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block of the block diagrams and / or flow diagrams, as well as combinations of blocks in the block diagrams and / or flow diagrams, may be implemented by a dedicated hardware-based system that performs the specified functions or acts, or a combination of dedicated hardware and computer instructions.
[0167] Although the present disclosure has been specifically shown and described with reference to embodiments thereof, it should be understood that various changes in form and details may be made therein without departing from the spirit and scope of the following claims. Accordingly, the embodiments described herein are merely illustrative and not limiting of the present invention. The present disclosure is defined by the appended claims, not the detailed description, and all differences within the scope thereof should be construed as being included in the present invention.
Claims
1. 1. A method for composite processing using platform resources, comprising: identifying a plurality of platform resources available for performing an upscaling operation, the plurality of platform resources including one or more graphics processing units (GPUs) and one or more acceleration processing units (APUs); dynamically allocating a workload of the upscaling operation to one or more of the platform resources based on a modality of the upscaling operation; and processing the workload of the upscaling operation by platform resources to which the workload is assigned. method.
2. selecting a modality for said upscaling operation based on a user preference; 2. The method of claim 1.
3. selecting a modality of the upscaling operation based on performance capabilities of the platform resources.
2. The method of claim 1.
4. dynamically allocating a workload of the upscaling operation includes dynamically allocating the workload based on performance capabilities of the platform resources.
2. The method of claim 1.
5. dynamically allocating the workload of the upscaling operations to the one or more platform resources based on user preferences.
2. The method of claim 1.
6. dynamically allocating a workload of the upscaling operations between the first platform resource and the second platform resource based on a modality of the upscaling operations, a user preference, and performance capabilities of the first platform resource and the second platform resource.
2. The method of claim 1.
7. dynamically allocating a workload of the upscaling operations includes dynamically allocating rendering, upscaling and display operations of the workload among one or more of the plurality of platform resources based on a modality of the upscaling operations, a user preference, a power state of one or more of the plurality of platform resources, and a performance capability of one or more of the plurality of platform resources.
2. The method of claim 1.
8. An apparatus for complex processing using platform resources, comprising: The apparatus comprises a computer processor and a computer memory operably coupled to the computer processor; the computer memory comprises computer program instructions; The computer program instructions, when executed by the computer processor, identifying a plurality of platform resources available for performing an upscaling operation, the plurality of platform resources including one or more graphics processing units (GPUs) and one or more acceleration processing units (APUs); dynamically allocating a workload of the upscaling operation to one or more of the platform resources based on at least a modality of the upscaling operation; processing the workload of the upscaling operation by platform resources to which the workload is assigned; causing the device to perform Device.
9. comprising computer program instructions that, when executed, cause the device to perform a step of selecting a modality for the upscaling operation based on a user preference.
9. The apparatus of claim 8.
10. and computer program instructions that, when executed, cause the device to select a modality for the upscaling operation based on performance capabilities of the platform resources.
9. The apparatus of claim 8.
11. dynamically allocating a workload of the upscaling operation includes dynamically allocating the workload based on performance capabilities of the platform resources.
9. The apparatus of claim 8.
12. dynamically allocating the workload of the upscaling operations to the one or more platform resources based on user preferences.
9. The apparatus of claim 8.
13. dynamically allocating a workload of the upscaling operations between the first platform resource and the second platform resource based on a modality of the upscaling operations, a user preference, and performance capabilities of the first platform resource and the second platform resource.
9. The apparatus of claim 8.
14. dynamically allocating a workload of the upscaling operations includes dynamically allocating rendering, upscaling and display operations of the workload among one or more of the plurality of platform resources based on a modality of the upscaling operations, a user preference, a power state of one or more of the plurality of platform resources, and a performance capability of one or more of the plurality of platform resources.
9. The apparatus of claim 8.
15. 1. A computer program product for complex processing using platform resources, comprising: The computer program product is disposed on a computer-readable storage medium and comprises computer program instructions: The computer program instructions, when executed, identifying a plurality of platform resources available for performing an upscaling operation, the plurality of platform resources including one or more graphics processing units (GPUs) and one or more acceleration processing units (APUs); dynamically allocating a workload of the upscaling operation to one or more of the platform resources based on a modality of the upscaling operation; processing the workload of the upscaling operation by platform resources to which the workload is assigned; Have a computer do this. Computer program products.
16. When executed, selecting a modality for said upscaling operation based on a user preference; selecting a modality for the upscaling operation based on performance capabilities of one or more of the plurality of platform resources; comprising computer program instructions for causing said computer to 16. The computer program product of claim 15.
17. dynamically allocating a workload of the upscaling operation includes dynamically allocating the workload based on performance capabilities of the platform resources.
16. The computer program product of claim 15.
18. dynamically allocating the workload of the upscaling operations to the one or more platform resources based on user preferences.
16. The computer program product of claim 15.
19. dynamically allocating a workload of the upscaling operations between the first platform resource and the second platform resource based on a modality of the upscaling operations, a user preference, and performance capabilities of the first platform resource and the second platform resource.
16. The computer program product of claim 15.
20. dynamically allocating a workload of the upscaling operations includes dynamically allocating rendering, upscaling and display operations of the workload among one or more of the plurality of platform resources based on a modality of the upscaling operations, a user preference, a power state of one or more of the plurality of platform resources, and a performance capability of one or more of the plurality of platform resources.
16. The computer program product of claim 15.
