Application programming interface for storing memory dependency information
By using application programming interfaces on processors and graphics processors to manage memory operation dependencies, the problem of memory operation dependency management in the prior art is solved, and the execution efficiency and resource utilization of computing programs are improved.
Patent Information
- Application Number
- CN202410204232.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-27
- Filing Date
- 2024-02-23
- Publication Date
- 2024-08-27
AI Technical Summary
Existing technologies are difficult to effectively manage and optimize the dependencies of memory operations, resulting in computational program execution delays and resource waste.
Manage memory operation dependencies by using application programming interfaces (APIs) on processors and graphics processors, including creating, setting, getting, and updating context flags to perform memory operations synchronously or asynchronously, ensuring the order of operations and dependencies. Reasonable arrangements.
It improves the efficiency of memory operations, reduces resource consumption, optimizes the execution sequence and dependencies of computing programs, and reduces delay risks.
Smart Images

Figure CN118550685A
Abstract
Description
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application incorporates by reference the entire disclosures of the following patent applications for all purposes: co-pending U.S. patent application No. 18 / 114,628, filed on February 27, 2023, entitled “APPLICATION PROGRAMMING INTERFACE TO STORE MEMORY OPERATION DEPENDECY INFORMATION IN A DATA STRUCTURE”; co-pending U.S. patent application No. 18 / 114,637, filed on February 27, 2023, entitled “APPLICATION PROGRAMMING INTERFACE TO READ MEMORY OPERATION DEPENDECY INFORMATION”; and co-pending U.S. patent application No. 18 / 114,637, filed on February 27, 2023, entitled “APPLICATION PROGRAMMING INTERFACE TO READ MEMORY OPERATION DEPENDECY INFORMATION FROM A DATA STRUCTURE.” and co-pending U.S. patent application No. 18 / 114,671, filed on February 27, 2023, entitled “APPLICATION PROGRAMMING INTERFACE TO UPDATE MEMORY OPERATION DEPENDECY INFORMATION.” Technical Field
[0003] At least one embodiment relates to processing resources for executing one or more CUDA programs.For example, at least one embodiment relates to managing properties of the state of a device to be used to execute a CUDA program. Background Art
[0004] Performing computing operations may use a large amount of memory, time, or computing resources. The amount of memory, time, and / or resources (e.g., computing resources) can be improved. Computer programs can be organized so that various components can be executed in different ways, in different orders, and with different dependencies. Although computer hardware has made progress in accelerating or otherwise assisting the execution of various components of computer programs, these advances generally fail to take into account all the various ways in which computer programs can be structured and the various orders and dependencies in which the operations of various components can be performed. Generating a computing program to perform computing operations (some of which are dependent on other operations) can result in delays in the execution of the software program while the operations are completed. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] Figure 1 is a block diagram illustrating management of memory operation dependencies according to at least one embodiment;
[0006] Figure 2 is a block diagram illustrating synchronous memory operation according to at least one embodiment;
[0007] Figure 3 is a block diagram illustrating asynchronous memory operation according to at least one embodiment;
[0008] Figure 4 is a block diagram illustrating synchronous and asynchronous memory operations according to at least one embodiment;
[0009] Figure 5 is a block diagram illustrating a process for managing memory operation dependencies according to at least one embodiment;
[0010] Figure 6 is a block diagram illustrating kernel node parameters according to at least one embodiment;
[0011] Figure 7 is a block diagram illustrating a device context flag according to at least one embodiment;
[0012] Figure 8 is a block diagram illustrating a software program to be executed by one or more processors according to at least one embodiment;
[0013] Figure 9 is a block diagram illustrating an application programming interface (API) for creating a context according to at least one embodiment;
[0014] Figure 10 is a block diagram illustrating an application programming interface (API) for setting a flag for a device context according to at least one embodiment;
[0015] Figure 11is a block diagram illustrating an application programming interface (API) for obtaining a tag of a current context according to at least one embodiment;
[0016] Figure 12 is a block diagram illustrating an application programming interface (API) for obtaining a token of a device context according to at least one embodiment;
[0017] Figure 13 is a block diagram illustrating an application programming interface (API) for setting a flag for a current context according to at least one embodiment;
[0018] Figure 14 is a block diagram illustrating a process for executing one or more application programming interfaces (APIs) according to at least one embodiment;
[0019] Figure 15 is a block diagram illustrating an example software stack in which an application programming interface (API) is processed according to at least one embodiment;
[0020] Figure 16 is a block diagram illustrating an application to be executed using a CUDA library and driver according to at least one embodiment;
[0021] Figure 17 An exemplary data center is shown in accordance with at least one embodiment;
[0022] Figure 18 A processing system according to at least one embodiment is shown;
[0023] Figure 19 A computer system according to at least one embodiment is shown;
[0024] Figure 20 A system according to at least one embodiment is shown;
[0025] Figure 21 An exemplary integrated circuit according to at least one embodiment is shown;
[0026] Figure 22 A computing system according to at least one embodiment is shown;
[0027] Figure 23 An APU is shown according to at least one embodiment;
[0028] Figure 24 A CPU according to at least one embodiment is shown;
[0029] Figure 25 An exemplary accelerator integrated slice is shown in accordance with at least one embodiment;
[0030] Figure 26A and Figure 26B An exemplary graphics processor is shown in accordance with at least one embodiment;
[0031] Figure 27A A graphics core according to at least one embodiment is shown;
[0032] Figure 27B GPGPU according to at least one embodiment is shown;
[0033] Figure 28A A parallel processor according to at least one embodiment is shown;
[0034] Figure 28B illustrates a processing cluster according to at least one embodiment;
[0035] Figure 28C A graphics multiprocessor is shown in accordance with at least one embodiment;
[0036] Figure 29 A graphics processor according to at least one embodiment is shown;
[0037] Figure 30 A processor according to at least one embodiment is shown;
[0038] Figure 31 A processor according to at least one embodiment is shown;
[0039] Figure 32 illustrates a graphics processor core according to at least one embodiment;
[0040] Figure 33 illustrates a PPU according to at least one embodiment;
[0041] Figure 34 shows a GPC according to at least one embodiment;
[0042] Figure 35 A streaming multiprocessor is shown in accordance with at least one embodiment;
[0043] Figure 36 illustrates a software stack for a programming platform according to at least one embodiment;
[0044] Figure 37 According to at least one embodiment, Figure 36 CUDA implementation of the software stack;
[0045] Figure 38 According to at least one embodiment, Figure 36 ROCm implementation of the software stack;
[0046] Figure 39According to at least one embodiment, Figure 36 OpenCL implementation of the software stack;
[0047] Figure 40 illustrates software supported by a programming platform according to at least one embodiment;
[0048] Figure 41 According to at least one embodiment, Figures 36-39 Compiled code executed on the programming platform;
[0049] Figure 42 According to at least one embodiment, Figures 36-39 More detailed compiled code executed on the programming platform;
[0050] Figure 43 Transforming source code before compiling it according to at least one embodiment is shown;
[0051] Figure 44A A system configured to compile and execute CUDA source code using different types of processing units is shown in accordance with at least one embodiment;
[0052] Figure 44B A system configured to compile and execute CUDA source code for graphics 44A using a CPU and a CUDA-enabled GPU is shown in accordance with at least one embodiment;
[0053] Figure 44C A system configured to compile and execute CUDA source code for graphics 44A using a CPU and a non-CUDA enabled GPU is shown in accordance with at least one embodiment;
[0054] Figure 45 According to at least one embodiment, Figure 44C An example kernel converted by the CUDA to HIP conversion tool;
[0055] Figure 46 More details are shown according to at least one embodiment. Figure 44C a non-CUDA-enabled GPU; and
[0056] Figure 47 shows how threads of an exemplary CUDA grid are mapped to Figure 46 different computational units; and
[0057] Figure 48 It shows how to migrate existing CUDA code to data-parallel C++ code according to at least one embodiment. DETAILED DESCRIPTION
[0058] Figure 1 is a block diagram 100 illustrating management of memory operation dependencies according to at least one embodiment. In at least one embodiment, processor 102 executes one or more commands to manage a context for graphics processor 104 and launch kernels using the context, as described herein. In at least one embodiment, the commands to manage the context for graphics processor 104 include one or more commands for managing memory operation dependencies for kernels that are executing using the context on graphics processor 104. In at least one embodiment, the commands for managing memory operation dependencies for kernels that are executing using the context on graphics processor 104 include, but are not limited to, using one or more application programming interfaces (APIs) such as those described herein in conjunction with at least one embodiment. Figure 9-13 described above), a command for creating a context, a command for setting a flag of a device context, a command for obtaining a flag of a current context, a command for obtaining a flag of a device context, and / or a command for setting a flag of a current context, etc.
[0059] In at least one embodiment, the processor 102 is a single-core processor, a multi-core processor, a graphics processor, a parallel processor, a general-purpose graphics processor, and / or some other processor (such as those described herein). In at least one embodiment, the processor 102 is a central processing unit (CPU), such as described below in conjunction with Figure 8 In at least one embodiment ( Figure 1 ), one or more additional processors are used in conjunction with processor 102 to execute one or more commands to manage the context of graphics processor 104 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 104 using techniques such as those described herein.
[0060] In at least one embodiment, the graphics processor 104 is a single-core processor, a multi-core processor, a graphics processor, a parallel processor, a general-purpose graphics processor, and / or some other graphics processor (such as those described herein). In at least one embodiment, the graphics processor 104 is a graphics processing unit (GPU), such as the one described below in conjunction with Figure 8 In at least one embodiment ( Figure 1 ), one or more additional graphics processors are used in conjunction with processor 102 and / or graphics processor 104 to execute one or more commands to manage the context of graphics processor 104 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 104 using techniques such as those described herein.
[0061] In at least one embodiment ( Figure 1 ), the processor 102 and / or the graphics processor 104 uses an accelerator (such as the following in combination with Figure 8 The accelerator 814 within the heterogeneous processor described herein executes one or more commands to use one or more application programming interfaces (APIs) such as the following in conjunction with Figure 9-13 those described herein) to manage the context of graphics processor 104 and to manage memory operation dependencies of kernels that are executing using that context on graphics processor 104.
[0062] In at least one embodiment, kernels such as those described herein are launched using streams 108 of the graphics processor 104. In at least one embodiment, a stream 108 is a list of operations (e.g., kernels) to be executed by the graphics processor 104. In at least one embodiment, operations are submitted to a stream for execution and are stored in a data structure such as a queue. In at least one embodiment, the graphics processor 104 determines the order in which the operations (e.g., kernels) of the stream are to be executed, as described herein. In at least one embodiment, a stream is one of multiple streams of the graphics processor 104 to be executed concurrently, as described herein. In at least one embodiment, a stream 108 is referred to herein and elsewhere as an operation queue. In at least one embodiment, as Figure 1 As shown, a flow 108 (e.g., a list of operations or kernels to be executed using the graphics processor 104 as described herein) is shown as an element of the graphics processor 104. In at least one embodiment ( Figure 1 In at least one embodiment, stream 108 is a component of (e.g., managed by) processor 102 (e.g., a host). In at least one embodiment, stream 108 is a component of (e.g., managed by) processor 102, graphics processor 104, and / or one or more other processors such as those described herein.
[0063] In at least one embodiment, one or more programming models (such as those described herein) utilize kernels to represent individual operations to be performed. In at least one embodiment, one or more programming models include the Compute Unified Device Architecture (CUDA) model, the Heterogeneous Compute Interface for Portability (HIP) model, the oneAPI model, various hardware accelerator programming models, and / or variations thereof. In at least one embodiment, while the techniques described herein may involve kernels, the techniques described herein may be applied to any suitable function, routine, instruction set, computer program, executable code, and / or variations thereof of any suitable programming model.
[0064] In at least one embodiment, a kernel (also referred to herein and elsewhere as a software kernel) is a function, routine, instruction set, computer program, and / or variants thereof that is executed on one or more processing units, such as a central processing unit (CPU), a graphics processing unit (GPU), a general-purpose GPU (GPGPU), a parallel processing unit (PPU), and / or any suitable processing unit or hardware accelerator (such as those described herein). In at least one embodiment, a kernel is executed in conjunction with one or more threads. In at least one embodiment, a thread refers to an abstract entity that represents the execution of a function, routine, instruction set, computer program, and / or variants thereof, such as those of a kernel, where a thread of execution refers to the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., by a processor or other suitable device or system). In at least one embodiment, a thread represents one or more computations of a kernel.
[0065] In at least one embodiment, one or more devices (e.g., processing units) are connected to the system through various programming model application programming interface (API) functions (such as those described herein in conjunction with at least Figure 9-13 those described herein) to launch or otherwise execute the kernel. In at least one embodiment, the kernel is launched to execute in conjunction with one or more attributes, as described herein. In at least one embodiment, an attribute is data including information indicating one or more aspects of the kernel and / or the launch of the kernel. In at least one embodiment, an attribute refers to an aspect of the kernel and / or the launch of the kernel. In at least one embodiment, for a particular kernel launch, one or more attributes may be defined to indicate characteristics or other configuration information of the kernel and / or the kernel launch, including but not limited to the type of kernel, parameters or other configurations of the launch, and / or any suitable information associated with the kernel and / or the kernel launch. In at least one embodiment, as an illustrative example, for a kernel launch (e.g., via an API function), one or more systems define the attribute by at least indicating a value of the attribute of the kernel launch, as described herein.
[0066] In at least one embodiment, as described herein, a data structure encoding attribute values for kernel startup is used to boot the kernel. In at least one embodiment, the data structure is an array or any other suitable data structure. In at least one embodiment, the data structure is any suitable data structure that encodes at least the value of the attribute. In at least one embodiment, the data structure is referred to as an attribute data structure, a data structure encoding attribute values, a data structure indicating one or more attributes of one or more software kernels, and / or variations thereof. In at least one embodiment, for a particular attribute, the data structure encodes an identifier of the particular attribute and one or more values of the particular attribute, wherein the one or more values are used in conjunction with kernel startup (e.g., to configure aspects of the kernel and / or to boot corresponding to the particular attribute). In at least one embodiment, the data structure is extensible, which refers to the attributes of the data structure, wherein any number of additional attribute values for any number of additional attributes can be encoded into the data structure used for kernel startup.
[0067] In at least one embodiment, graphics processor 104 includes a device primary context 106. In at least one embodiment, device primary context 106 is the primary context of the device (e.g., a default context for the device that can be updated or replaced using APIs, systems, methods, operations, and techniques such as those described herein). In at least one embodiment, a context (e.g., device primary context 106) has one or more values that indicate how the context is to be used to define the behavior of a graphics processor (e.g., graphics processor 104) and / or a logical processor of graphics processor 104. In at least one embodiment ( Figure 1 In at least one embodiment, the one or more values indicating how the context is to be used to define the behavior of a graphics processor (e.g., graphics processor 104) and / or a logical processor of graphics processor 104 are flags. Figure 7 Descriptive tags, such as contextual tags 702 .
[0068] In at least one embodiment, a value (e.g., a context tag) indicating how a context is to be used to define the behavior of a graphics processor (e.g., graphics processor 104) and / or a logical processor of graphics processor 104 is defined by, for example, a programmer using an API (such as that described herein in conjunction with at least Figure 9-13In at least one embodiment, the context tags indicating how the context is to be used to define the behavior of the graphics processor (e.g., graphics processor 104) and / or the logical processors of graphics processor 104 include an indication that the attribute is not set (e.g., has a zero or null value). In at least one embodiment, the context tags indicating how the context is to be used to define the behavior of the graphics processor (e.g., graphics processor 104) and / or the logical processors of graphics processor 104 include an indication that the attribute is changeable (e.g., can be changed). In at least one embodiment, the context tags indicating how the context is to be used to define the behavior of the graphics processor (e.g., graphics processor 104) and / or the logical processors of graphics processor 104 are stored in a tag data structure, as described herein in at least conjunction with Figure 7 In at least one embodiment, context flags indicating how a context is to be used to define the behavior of a graphics processor (eg, graphics processor 104 ) and / or logical processors of graphics processor 104 have default values, as described herein.
[0069] In at least one embodiment, processor 102 executes one or more instructions to launch kernel 110. In at least one embodiment ( Figure 1 In at least one embodiment, as described herein in conjunction with at least Figure 4 As described, the kernel launched or instantiated by the launch kernel 110 is launched using a context. In at least one embodiment, the kernel launched or instantiated by the launch kernel 110 is a context-free kernel object, as described herein at least in conjunction with Figure 4 In at least one embodiment, an API is used to launch a kernel launched or instantiated by launch kernel 110.
[0070] In at least one embodiment, processor 102 executes one or more instructions to launch kernel 110 on stream 108 operating on graphics processor 104. In at least one embodiment, the launched kernel (e.g., kernel zero 112) is launched without a specified context, is launched with one or more parameters and attributes, and is executed using device main context 106. In at least one embodiment, processor 102 executes one or more instructions to launch kernel 110 using stream 108 operating on graphics processor 104 using an API, such as those described herein.
[0071] In at least one embodiment, processor 102 executes one or more instructions to create a context with tag 114 and launches a kernel with context 116 using stream 108 operating on graphics processor 104. In at least one embodiment, the context created using create context with tag 114 (which is used to launch a kernel with context 116) becomes current context 118 for graphics processor 104. In at least one embodiment, current context 118 is a context that can replace device primary context 106. In at least one embodiment, current context 118 and device primary context 106 are the same. In at least one embodiment, a context (e.g., current context 118) has one or more values that indicate how the context will be used to define the behavior of a graphics processor (e.g., graphics processor 104) and / or a logical processor of graphics processor 104. In at least one embodiment ( Figure 1 In at least one embodiment, the one or more values indicating how the context is to be used to define the behavior of a graphics processor (e.g., graphics processor 104) and / or a logical processor of graphics processor 104 are flags. Figure 7 Described tags, such as context tags 702. In at least one embodiment ( Figure 1 ), when a context created using a create context with flag 114 (which is used to launch a kernel using context 116) becomes the current context 118 of graphics processor 104, device master context 106 is stored in a data structure maintained by graphics processor 104.
[0072] In at least one embodiment, the launched kernel (e.g., kernel one 120) is launched when processor 102 executes one or more instructions to launch a kernel using context 116 with stream 108 operating on graphics processor 104. In at least one embodiment, kernel one 120 is launched using one or more attributes and parameters and executed using current context 118, as described herein. In at least one embodiment, processor 102 executes one or more instructions to launch a kernel using context 116 with stream 108 operating on graphics processor 104 using an API, such as those described herein.
[0073] In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment ( Figure 1 ), a machine-readable medium having stored thereon a set of instructions that, if executed by one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein), is for performing at least the steps described herein in conjunction with Figure 1-16 Operations are described, such as operations for executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
[0074] In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. Figure 1), a machine-readable medium having stored thereon a set of instructions that, if executed by one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein), is for performing at least the steps described herein in conjunction with Figure 1-16 Operations are described, such as operations that execute an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored within a master context data structure.
[0075] In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment ( Figure 1 ), a machine-readable medium having stored thereon a set of instructions that, if executed by one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein), is for performing at least the steps described herein in conjunction with Figure 1-16 Operations are described, such as operations for executing an application programming interface (API) to enable reading an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
[0076] In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to provide context information of one or more default contexts of one or more other processors to indicate whether one or more operations will be blocked from being performed until one or more memory operations are completed. In at least one embodiment ( Figure 1 ), a machine-readable medium having stored thereon a set of instructions that, if executed by one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein), is for performing at least the steps described herein in conjunction with Figure 1-16 Operations are described, such as operations for executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure.
[0077] In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause updating of context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein) include one or more circuits for performing the operations described herein, such as one or more circuits for executing an application programming interface (API) to cause updating of context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment ( Figure 1), a machine-readable medium having stored thereon a set of instructions that, if executed by one or more processors (e.g., processor 102, graphics processor 104, and / or other processors and / or accelerators such as those described herein), is for performing at least the steps described herein in conjunction with Figure 1-16 Operations are described, such as operations for executing an application programming interface (API) to cause updating of context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations.
[0078] Figure 2 is a block diagram 200 illustrating synchronous memory operations according to at least one embodiment. In at least one embodiment, a CPU thread 202 is as described herein in conjunction with at least Figure 1 In at least one embodiment, a CPU thread 202 represents a thread (e.g., such as those described herein) of a processor (e.g., processor 102) as described herein. In at least one embodiment, a CPU thread 202 is an abstract entity that represents the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., such as those described herein), where a thread of execution refers to the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., by a processor or other suitable device or system). In at least one embodiment, a CPU thread 202 represents one or more computations of a CPU. In at least one embodiment, a CPU thread 202 indicates or otherwise specifies a computation to be executed by a graphics processor 204 (e.g., such as those described herein). Figure 1 1. In at least one embodiment, the synchronized memory operation 206 is performed by a graphics processor (such as graphics processor 104) as described herein, followed by an instruction to perform a next operation 208. In at least one embodiment, the synchronized memory operation 206 is performed synchronously as described herein (e.g., it is performed to completion by graphics processor 204 before any other operations are performed). In at least one embodiment, the next operation 208 is a memory operation or some other operation to be performed by graphics processor 204.
[0079] In at least one embodiment, the graphics processor 204 performs a memory operation 210 (e.g., a memory operation indicated by a synchronized memory operation 206 or otherwise specified) and then waits for the memory operation to complete 212. In at least one embodiment, the graphics processor 204 waits for the memory operation to complete 212 until an indication is received that the memory operation (e.g., memory operation 210) is complete. In at least one embodiment, the indication that the memory operation 210 is complete is received from an external process using, for example, an event, a semaphore, an API, or some other such indication. In at least one embodiment ( Figure 2In at least one embodiment (not shown), while the graphics processor 204 waits for the memory operation to complete 212, the graphics processor 204 performs other tasks, is idle, spins (e.g., spin wait), or blocks. Figure 2 In at least one embodiment (not shown), while graphics processor 204 waits for memory operation 210 to complete, it is determined based at least in part on one or more contextual flags, such as those described herein, whether graphics processor 204 is performing other tasks or is idle, spinning, or blocking. In at least one embodiment, after graphics processor 204 receives an indication that memory operation 210 is complete, graphics processor 204 performs next operation 214 (e.g., an operation indicated or otherwise specified by next operation 208).
[0080] Figure 3 is a block diagram 300 illustrating asynchronous memory operations according to at least one embodiment. In at least one embodiment, a CPU thread 302 is a CPU thread 302 as described herein in conjunction with at least Figure 1 In at least one embodiment, a CPU thread 302 represents a thread (e.g., such as those described herein) of a processor (e.g., processor 102) as described herein. In at least one embodiment, a CPU thread 302 is an abstract entity that represents the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., such as those described herein), where a thread of execution refers to the execution (e.g., by a processor or other suitable device or system) of a function, routine, instruction set, computer program, and / or variants thereof. In at least one embodiment, a CPU thread 302 represents one or more computations of a CPU. In at least one embodiment, a CPU thread 302 indicates or otherwise specifies a computation to be executed by a graphics processor 304 (e.g., as described herein in conjunction with at least one embodiment). Figure 1 3. In at least one embodiment, asynchronous memory operation 306 is performed by a graphics processor (such as graphics processor 104) as described herein, followed by an instruction to perform a next operation 308. In at least one embodiment, asynchronous memory operation 306 is performed asynchronously as described herein (e.g., at a time and in an order determined by graphics processor 304). In at least one embodiment, next operation 308 is a memory operation or some other operation to be performed by graphics processor 304.
[0081] In at least one embodiment, the graphics processor 304 performs a memory operation 310 (e.g., a memory operation indicated by or otherwise specified by asynchronous memory operation 306), and upon receiving an indication to perform next operation 308, the graphics processor 304 performs next operation 312. In at least one embodiment, upon receiving the indication to perform asynchronous memory operation 306, the graphics processor 304 performs memory operation 310. In at least one embodiment, the graphics processor 304 performs memory operation 310 at a later time (e.g., after receiving the indication to perform asynchronous memory operation 306). In at least one embodiment, the graphics processor 304 performs memory operations such as memory operation 310 in batches (e.g., performing several asynchronous memory operations at once). In at least one embodiment, the graphics processor 304 performs next operation 312 while performing memory operation 310. In at least one embodiment, the graphics processor 304 performs next operation 312 before performing memory operation 310.
[0082] In at least one embodiment ( Figure 3 In at least one embodiment (not shown), the order in which graphics processor 304 performs asynchronous memory operations (such as memory operation 310) and other operations (such as next operation 312) is determined based at least in part on one or more context tags (such as those described herein). Figure 3 ), before or during execution of the memory operation 310, a plurality of other operations, such as a next operation 312, are performed.
[0083] Figure 4 is a block diagram 400 illustrating synchronous and asynchronous memory operations according to at least one embodiment. In at least one embodiment, a CPU thread 402 is a CPU thread 402 as described herein in conjunction with at least Figure 1 In at least one embodiment, a CPU thread 402 represents a thread (e.g., such as those described herein) of a processor (e.g., processor 102) as described herein. In at least one embodiment, a CPU thread 402 is an abstract entity that represents the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., such as those described herein), where a thread of execution refers to the execution of a function, routine, instruction set, computer program, and / or variants thereof (e.g., by a processor or other suitable device or system). In at least one embodiment, a CPU thread 402 represents one or more computations of a CPU. In at least one embodiment, a CPU thread 402 indicates or otherwise specifies a computation to be executed by a graphics processor 404 (e.g., such as those described herein). Figure 14. The memory operation 406 is performed by a graphics processor (such as graphics processor 104) as described herein, followed by an instruction to perform the next operation 408. In at least one embodiment, the memory operation 406 is neither explicitly synchronous nor explicitly asynchronous, as it can be performed synchronously (e.g., as described herein at least in conjunction with Figure 2 described) or asynchronously (e.g., as described herein at least in conjunction with Figure 3 In at least one embodiment, the CUDA driver determines whether the memory operation 406 is to be performed synchronously or asynchronously using systems, methods, operations, and techniques such as those described herein. In at least one embodiment, the next operation 408 is a memory operation or some other operation to be performed by the graphics processor 404.
[0084] In at least one embodiment, graphics processor 404 performs memory operation 410 (e.g., a memory operation indicated or otherwise specified by memory operation 406). In at least one embodiment, CPU thread 402 determines 420 whether memory operation 406 is synchronous or asynchronous, as described herein. In at least one embodiment, if it is determined 412 that memory operation 410 is a synchronous memory operation ("yes" branch), then as described above in conjunction with at least Figure 2 As described, the memory operation 410 is performed synchronously. In at least one embodiment, if it is determined 412 that the memory operation 410 is an asynchronous memory operation ("No" branch), then as described above in conjunction with Figure 3 As depicted, memory operations 410 are performed asynchronously.
[0085] In at least one embodiment, a determination 412 is made as to whether the memory operation can be performed synchronously or asynchronously. In at least one embodiment, if it is determined 412 that the memory operation 410 can be performed as an asynchronous memory operation or a synchronous memory operation, the graphics processor 404 performs the memory operation 410 synchronously or asynchronously based at least in part on one or more determinations of scheduling behavior, as described herein. In at least one embodiment, if it is determined 412 that the memory operation 410 can be performed as an asynchronous memory operation or a synchronous memory operation, the graphics processor 404 performs the memory operation 410 synchronously or asynchronously based at least in part on a context 418 (e.g., a context tag of the context 418), as described herein.
[0086] In at least one embodiment ( Figure 4 In at least one embodiment (not shown), the order in which graphics processor 404 performs memory operations (such as memory operation 410) and other operations (such as next operation 416) is determined based at least in part on one or more context tags (e.g., tags of context 418) (such as those described herein). Figure 4 ), when the memory operation 410 is performed asynchronously, multiple other operations, such as the next operation 416, are performed before or during the execution of the memory operation 410.
[0087] Figure 5 is a block diagram 500 illustrating a process for managing memory operation dependencies according to at least one embodiment. Figure 1 The described processor (such as processor 102 and / or graphics processor 104) performs one or more operations of the process for managing memory operation dependencies shown in block diagram 500. In at least one embodiment, the processor (such as the one described herein in conjunction with Figure 17-48 5. One or more processors described herein perform one or more operations of the process for managing memory operation dependencies illustrated in block diagram 500.
[0088] In at least one embodiment, at step 502, a memory operation is received by a processor executing a process for managing memory operation dependencies. In at least one embodiment, at step 502, the received memory operation is as described herein in at least Figure 2 The memory operation described, such as the synchronous memory operation 206. In at least one embodiment, at step 502, the received memory operation is as described herein in at least conjunction with Figure 3 The memory operation described, such as asynchronous memory operation 306. In at least one embodiment, at step 502, the received memory operation is as described herein in at least conjunction with Figure 4 Memory operations are described, such as memory operation 406. In at least one embodiment, after step 502, the process for managing memory operation dependencies shown in block diagram 500 continues at step 504.
[0089] In at least one embodiment, at step 504, a determination is made by the processor executing the process for managing memory operation dependencies shown in block diagram 500 whether the memory operation received at step 502 is a synchronous memory operation (e.g., an explicitly synchronous memory operation). In at least one embodiment, at step 504, if it is determined that the memory operation received at step 502 is a synchronous memory operation (“yes” branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 514. In at least one embodiment, at step 504, if it is determined that the memory operation received at step 502 is not a synchronous memory operation (“no” branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 506.
[0090] In at least one embodiment, at step 506, a determination is made by the processor executing the process for managing memory operation dependencies shown in block diagram 500 whether the memory operation received at step 502 is an asynchronous memory operation (e.g., an explicitly asynchronous memory operation). In at least one embodiment, at step 506, if it is determined that the memory operation received at step 502 is an asynchronous memory operation ("yes" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 518. In at least one embodiment, at step 506, if it is determined that the memory operation received at step 502 is not an asynchronous memory operation ("no" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 508.
[0091] In at least one embodiment, at step 508, a processor executing the process for managing memory operation dependencies shown in block diagram 500 determines whether a flag is set that requires that memory operations that are neither explicitly synchronous (e.g., "No" at step 504) nor explicitly asynchronous (e.g., "No" at step 506) be performed synchronously, as described herein. In at least one embodiment, at step 508, a flag that requires that memory operations that are neither explicitly synchronous nor explicitly asynchronous be performed synchronously is set as described herein in at least conjunction with Figure 7 Context flags described herein are provided, such as a flag to force synchronous memory operations 714. In at least one embodiment, at step 508, if it is determined that the flag requiring memory operations that are neither explicitly synchronous nor explicitly asynchronous are to be performed synchronously is set (the "yes" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 514. In at least one embodiment, at step 508, if it is determined that the flag requiring memory operations that are neither explicitly synchronous nor explicitly asynchronous are to be performed synchronously is not set (the "no" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 510.
[0092] In at least one embodiment, at step 510, if the flag requiring that the memory operation that is neither explicitly synchronous nor explicitly asynchronous be performed synchronously is not set (e.g., the "No" branch at step 508), a device driver (such as the device driver of the device that performs the process for managing memory operation dependencies shown in block diagram 500) uses systems, methods, techniques, and operations such as those described herein to determine whether to perform the memory operation received at step 502 synchronously or asynchronously. In at least one embodiment, the device driver that determines whether to perform the memory operation received at step 502 synchronously or asynchronously is such as described herein in conjunction with at least one embodiment. Figure 15and Figure 16 In at least one embodiment, after step 510 , the process for managing memory operation dependencies shown in block diagram 500 continues at step 512 .
[0093] In at least one embodiment, at step 512, as a result of determining (at step 510) whether to perform the memory operation received at step 502 synchronously or asynchronously, a determination is made as to whether to perform the operation synchronously. In at least one embodiment, at step 512, if it is determined that the memory operation received at step 502 is to be performed synchronously ("yes" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 514. In at least one embodiment, at step 512, if it is determined that the memory operation received at step 502 is to be performed asynchronously ("no" branch), the process for managing memory operation dependencies shown in block diagram 500 continues at step 518.
[0094] In at least one embodiment, at step 514, the memory operations received at step 502 by the processor executing the process for managing memory operation dependencies shown in block diagram 500 are performed synchronously, as described herein in at least conjunction with Figure 2 In at least one embodiment, after step 514 , the process for managing memory operation dependencies shown in block diagram 500 continues at step 516 .
[0095] In at least one embodiment, at step 516, as described herein at least in conjunction with Figure 2 As described, the process for managing memory operation dependencies shown in block diagram 500 waits for completion of the memory operation received at step 502 (e.g., the memory operation performed at step 514). In at least one embodiment, after step 516, the process for managing memory operation dependencies shown in block diagram 500 continues at step 520.
[0096] In at least one embodiment, at step 518, as described herein at least in conjunction with Figure 3 As described, the memory operation received at step 502 is asynchronously executed by a processor executing the process for managing memory operation dependencies shown in block diagram 500. In at least one embodiment, the memory operation received at step 502 is scheduled to be executed at a later time, as described herein in at least conjunction with Figure 3 In at least one embodiment, after step 518 , the process for managing memory operation dependencies shown in block diagram 500 continues at step 520 .
[0097] In at least one embodiment, at step 520, the next operation is performed by the processor executing the process for managing memory operation dependencies shown in block diagram 500, as described herein in at least conjunction with Figure 2-4 As described. In at least one embodiment, at step 520, after the synchronous memory operation is completed (e.g., at step 516), the next operation is performed. In at least one embodiment, at step 520, after the asynchronous memory operation is scheduled to be performed (e.g., at step 518), the next operation is performed. In at least one embodiment, after step 520, the process for managing memory operation dependencies shown in block diagram 500 terminates. In at least one embodiment ( Figure 5 ), after step 520, the process for managing memory operation dependencies shown in block diagram 500 continues at step 502 to receive another memory operation.
[0098] In at least one embodiment, the steps of the process for managing memory operation dependencies shown in block diagram 500 are performed in conjunction with Figure 5 In at least one embodiment, the steps of the process for managing memory operation dependencies shown in block diagram 500 are performed in a different order than that shown in block diagram 500. In at least one embodiment, the steps of the process for managing memory operation dependencies shown in block diagram 500 are performed in parallel. In at least one embodiment, the steps of the process for managing memory operation dependencies shown in block diagram 500 are performed by multiple threads executing on one or more processors, such as those described herein.
[0099] Figure 6 6 is a block diagram 600 illustrating management of kernel node parameters according to at least one embodiment. In at least one embodiment, kernel node parameters 602 include function pointers 604. In at least one embodiment, function pointers 604 are pointers to function objects 606 (e.g., including the address of a memory location containing the function object). In at least one embodiment, function objects 606 include kernel objects 608 and context 610. In at least one embodiment, Figure 6 In at least one embodiment (not shown), function object 606 includes a pointer to a kernel object such as kernel object 608 (e.g., including the address of a memory location containing the kernel object). Figure 6 In at least one embodiment, function object 606 includes a pointer to a context (such as context 610) (e.g., including the address of a memory location containing the context). In at least one embodiment, function object 606 includes a pointer to a context (such as processor 102) and / or a graphics processor (such as graphics processor 104) (each of which is at least partially incorporated herein). Figure 1610) is used to instantiate one or more other data elements of the kernel, such as parameters, tags, identifiers, etc., using a context (such as context 610) with the kernel object 608. In at least one embodiment, the context 610 includes one or more context tags 622, such as those described herein in conjunction with at least Figure 7 Contextual tags such as contextual tag 702 are described.
[0100] In at least one embodiment, kernel node parameters 602 include a kernel pointer 612. In at least one embodiment, kernel pointer 612 is a pointer to a kernel object such as those described herein (e.g., including the address of a memory location containing the kernel object). In at least one embodiment, kernel pointer 612 is a pointer to a context-free kernel object 614 (e.g., including the address of a memory location containing the context-free kernel object), which is a context-free (e.g., without context) kernel object.
[0101] In at least one embodiment, the kernel node parameters 602 include a context pointer 616. In at least one embodiment, the context pointer 616 is a pointer to a context 618 (e.g., including the address of a memory location containing the context 618). In at least one embodiment, the context 618 is a context such as those described herein. In at least one embodiment, the context pointer 616 is a pointer to a context (e.g., including the address of a memory location containing the context) that can be used to instantiate a context-free kernel object as described herein. In at least one embodiment, the context 618 includes one or more context tags 624, such as those described herein in conjunction with at least one embodiment. Figure 7 Contextual tags such as contextual tag 702 are described.
[0102] In at least one embodiment, kernel node parameters 602 comprises one or more other parameters 620. In at least one embodiment, other parameters 620 comprise the parameter that can be used for utilizing those technical uses function object 606 as described herein to instantiate kernel, including those parameters described herein. In at least one embodiment, other parameters 620 comprise the parameter that can be used for utilizing technical uses such as those described herein without context kernel object 614 (for example, there is no kernel object of context) and / or context 618 instantiate kernels, including those parameters described herein. In at least one embodiment, for example, if function pointer 604 is invalid (for example, be empty or do not point to effective function object 606), then other parameters 620 can be used to generate effective function object 606 and the address of described function object is stored in function pointer 604, and other parameters 620 can also be used to use function object 606 instantiate kernels. In at least one embodiment, for example, if function pointer 604 is invalid (e.g., is null or does not point to a valid function object 606), other parameters 620 may be used to instantiate a kernel using a contextless kernel object 614 (e.g., a kernel object without a context) and / or context 618. In at least one embodiment, for example, if function pointer 604 is valid (e.g., is not null and points to a valid function object 606), other parameters 620 may be used to instantiate a kernel using function object 606.
[0103] Figure 7 7 is a block diagram illustrating device context flags according to at least one embodiment. In at least one embodiment, context flags 702 include a flag indicating whether a kernel executed using the context spins while waiting 704. In at least one embodiment, the flag indicating whether a kernel executed using the context spins while waiting 704 is a true or false value (e.g., if true, the kernel executed using the context spins while waiting, and if false, the kernel executed using the context does not spin while waiting). In at least one embodiment, the flag indicating whether a kernel executed using the context spins while waiting 704 is a flag indicating that CUDA actively spins while waiting for a result from the GPU (e.g., threads for other processes will not be spawned).
[0104] In at least one embodiment, context flags 702 include a flag for indicating whether a kernel executed using the context yields while waiting 706. In at least one embodiment, the flag for indicating whether a kernel executed using the context yields while waiting 706 is a true or false value (e.g., if true, the kernel executed using the context yields while waiting, and if false, the kernel executed using the context does not yield while waiting). In at least one embodiment, the flag for indicating whether a kernel executed using the context yields while waiting 706 is a flag for instructing CUDA to yield its thread while waiting for a result from the GPU (e.g., to make the thread available to other processes).
[0105] In at least one embodiment, the context flags 702 include a flag for indicating whether a kernel executed using the context blocks while waiting 708. In at least one embodiment, the flag for indicating whether a kernel executed using the context blocks while waiting 708 is a true value or a false value (e.g., if true, the kernel executed using the context blocks while waiting, and if false, the kernel executed using the context does not block while waiting). In at least one embodiment, the flag for indicating whether a kernel executed using the context blocks while waiting 708 is a flag for instructing CUDA to block the CPU thread on a synchronization primitive while waiting for the GPU to complete work (e.g., to stall the CPU while the GPU completes work).
[0106] In at least one embodiment, context flags 702 include a flag for indicating whether a kernel executed using the context will be executed using automatic scheduling 710. In at least one embodiment, the flag for indicating whether a kernel executed using the context will be executed using automatic scheduling is a true value or a false value (e.g., if true, the kernel executed using the context will be executed using automatic scheduling, and if false, the kernel executed using the context will not be executed using automatic scheduling). In at least one embodiment, the flag for indicating whether a kernel executed using the context will be executed using automatic scheduling 710 is a flag for performing automatic scheduling based on one or more parameters. In at least one embodiment, the flag indicating whether the kernel executed using the context will be executed using automatic scheduling 710 has a default value (e.g., 0 or false), but if the flag indicating whether the kernel executed using the context will be executed using automatic scheduling 710 is set (e.g., set to 1 or true), then if the number of active contexts in the process is greater than the number of logical processors in the GPU, CUDA can yield its thread (e.g., as in the flag indicating whether the kernel executed using the context will yield while waiting 706), otherwise it can spin (e.g., as in the flag indicating whether the kernel executed using the context will spin while waiting 704). In at least one embodiment, the flag indicating whether the kernel executed using the context will be executed using automatic scheduling 710 determines the automatic scheduling behavior at least in part based on one or more other factors (such as the type of GPU, the power mode of the GPU, etc.).
[0107] In at least one embodiment, the context flags 702 include a flag for indicating whether a kernel executed using the context maps page-locked memory 712. In at least one embodiment, the flag for indicating that a kernel executed using the context maps page-locked memory 712 is a true or false value (e.g., if true, the kernel executed using the context maps page-locked memory, and if false, the kernel executed using the context does not map page-locked memory). In at least one embodiment, the flag for indicating whether a kernel executed using the context maps page-locked memory 712 is a flag for indicating that CUDA supports mapped page-locked allocations. In at least one embodiment, the flag for indicating whether a kernel executed using the context maps page-locked memory 712 must be set (e.g., set to 1 or true) in order to allocate page-locked host memory accessible to the GPU.
[0108] In at least one embodiment, context flags 702 include a flag for indicating whether a kernel executing using the context forces synchronous memory operations 714, as described herein in at least conjunction with Figure 1-5In at least one embodiment, the flag indicating whether a kernel executing using the context forces synchronous memory operations 714 is a true value or a false value (e.g., if true, the kernel executing using the context forces synchronous memory operations, and if false, the kernel executing using the context does not force synchronous memory operations). In at least one embodiment, the flag indicating whether a kernel executing using the context forces synchronous memory operations 714 is a flag for requiring that memory operations that can be executed synchronously must be executed synchronously, as described herein.
[0109] In at least one embodiment, context tags 702 include one or more other tags 716 for indicating other behaviors of a kernel executing using the context. In at least one embodiment, other tags 716 include unspecified tags, abuse tags, future tags, non-standard tags, and the like. In at least one embodiment, one or more tags in context tags 702 are mutually exclusive. In at least one embodiment, for example, context tags 702 cannot specify a true value for both a tag indicating whether a kernel executing using the context spins while waiting on 704 and a tag indicating whether a kernel executing using the context yields while waiting on 706. In at least one embodiment, when a context has context tags 702 that specify mutually exclusive behaviors, context tags 702 are modified based on one or more policies associated with the context.
[0110] In at least one embodiment, context tags 702 are stored as an array of values. In at least one embodiment, context tags 702 are stored as a single value, where, for example, a flag indicating whether a kernel executing using the context spins while waiting 704 is stored in a first binary digit, a flag indicating whether a kernel executing using the context generates while waiting 706 is stored in a second binary digit, and so on. In at least one embodiment, context tags 702 are stored as unsigned integer representations of the binary digits. In at least one embodiment, context tags 702 are stored as unsigned 8-bit values (e.g., with a range of 0-255), or unsigned 16-bit values (e.g., with a range of 0-65,535), or 32-bit values (e.g., with a range of 0-4,294,967,295), etc. In at least one embodiment, a flag in context tags 702 has more than two values (e.g., more than true / false) and is therefore represented as multiple binary digits. In at least one embodiment, for example, a flag with four states is stored as two binary digits in context tags 702.
[0111] Figure 8800 is a block diagram illustrating a software program to be executed by one or more processors according to at least one embodiment. In at least one embodiment, the block diagram 800 illustrates a software program 804 to be executed by a processor within a heterogeneous processor, such as a CPU 802, as well as a graphics processing unit (GPU) 810 and an accelerator 814. In at least one embodiment, the CPU 802 is a processor such as a graphics processing unit (GPU) 810 and an accelerator 814. Figure 1 In at least one embodiment, the CPU 802 is a processor such as the processor 102 described herein. Figure 1 In at least one embodiment, the CPU 802 is any processor having any architecture further described herein. In at least one embodiment, the CPU 802 is any general-purpose processor having any architecture further described herein. In at least one embodiment, a processor (such as the CPU 802) includes circuitry for performing one or more computing operations. In at least one embodiment, a processor (such as the CPU 802) includes any configuration of circuitry for performing one or more computing operations further described herein.
[0112] In at least one embodiment, a processor (such as a central processing unit (CPU) 802) executes a parallel computing environment 808. In at least one embodiment, the processor (such as a CPU 802) is. In at least one embodiment, the processor (such as a CPU) executes a parallel computing environment 808 such as a Compute Unified Device Architecture (CUDA). In at least one embodiment, the parallel computing environment 808 includes instructions that, if executed by one or more processors such as the CPU 802, facilitate execution of one or more software programs by one or more CPUs 802, one or more parallel processing units (PPUs) such as a GPU 810, and / or one or more accelerators 814 within a heterogeneous processor.
[0113] In at least one embodiment, one or more PPUs are processors that include one or more circuits for performing parallel computing operations, such as GPU 810 and any other parallel processors further described herein. In at least one embodiment, GPU 810 is hardware that includes circuits for performing one or more computing operations, as further described below in conjunction with various embodiments. In at least one embodiment, GPU 810 includes one or more processing cores that each perform one or more computing operations. In at least one embodiment, GPU 810 includes one or more processing cores for performing one or more parallel computing operations. In at least one embodiment, GPU 810 is packaged together with CPU 802 or other processors as a system on a chip (SoC). In at least one embodiment, GPU 810 is packaged together with CPU 802 or other processors as a system on a chip (SoC) on a shared die or other substrate. In at least one embodiment, one or more accelerators 814 within a heterogeneous processor are hardware that includes one or more circuits for performing specific computing operations, such as a deep learning accelerator (DLA), a programmable vision accelerator (PVA), a field programmable gate array (FPGA), or any other accelerator further described herein. In at least one embodiment, the accelerator 814 within the heterogeneous processor is packaged with the CPU 802 or other processor as a system on chip (SoC). In at least one embodiment, the accelerator 814 within the heterogeneous processor is packaged with the CPU 802 or other processor as a system on chip (SoC) on a shared die or other substrate. In at least one embodiment, one or more CPUs 802, one or more GPUs 810 or other PPUs, and / or accelerators 814 within the heterogeneous processor are packaged as a system on chip (SoC). In at least one embodiment, one or more CPUs 802, one or more GPUs 810 or other PPUs, and / or accelerators 814 within the heterogeneous processor are packaged as a system on chip (SoC) on a shared die or other substrate.
[0114] In at least one embodiment, the parallel computing environment 808 (such as CUDA) includes libraries and other software programs for using one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform one or more computing operations. In at least one embodiment, the parallel computing environment 808 includes libraries and other software programs that, if executed by one or more processors (such as one or more CPUs 802), enable one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform one or more computing operations. In at least one embodiment, the parallel computing environment 808 includes libraries that, if executed, enable one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform mathematical operations. In at least one embodiment, the parallel computing environment 808 includes libraries that, if executed, enable one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform any other operations further described herein.
[0115] In at least one embodiment, one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor perform one or more computing operations in response to one or more application programming interfaces (APIs). In at least one embodiment, an API is a set of software instructions that, if executed by one or more processors (such as CPU 802), causes one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform one or more computing operations. In at least one embodiment, the parallel computing environment 808 includes one or more APIs 806 that, if executed by one or more processors (such as CPU 802), causes one or more PPUs (such as GPU 810) and / or one or more accelerators 814 within a heterogeneous processor to perform one or more computing operations. In at least one embodiment, the one or more APIs 806 include one or more functions that, if executed, cause one or more processors (such as CPU 802) to perform one or more operations, such as computational operations, error reporting, scheduling of other operations to be performed by GPU 810 and / or accelerator 814 within a heterogeneous processor, or any other operations further described herein. In at least one embodiment, the one or more APIs 806 include one or more functions that, if executed, cause one or more PPUs (such as GPU 810) to perform one or more operations, such as computational operations, error reporting, or any other operations further described herein. In at least one embodiment, the one or more APIs 806 include one or more functions, such as the following in combination: Figure 9-13 The one or more functions, if executed, cause the one or more accelerators 814 within the heterogeneous processor to perform one or more operations, such as computational operations, error reporting, or any other operations further described herein. In at least one embodiment, the one or more APIs 806 include one or more functions for causing the CPU 802 to perform one or more computational operations in response to information or events generated by one or more PPUs (such as the GPU 810) and / or one or more accelerators 814 within the heterogeneous processor. In at least one embodiment, the one or more APIs 806 include one or more functions that, if called, cause the CPU 802 to perform one or more computational operations in response to information or events generated by one or more PPUs (such as the GPU 810) and / or one or more accelerators 814 within the heterogeneous processor.
[0116] In at least one embodiment, a processor (such as CPU 802) executes one or more software programs 804. In at least one embodiment, the one or more software programs are sets of instructions that, if executed, cause one or more of the heterogeneous processors (such as CPU 802), PPUs (such as GPU 810), and / or accelerators 814 to perform computing operations. In at least one embodiment, the software programs 804 include instructions and / or operations to be executed by one or more PPUs (e.g., GPU 810). In at least one embodiment, the one or more software programs 804 include GPU-specific code 812 and / or accelerator-specific code 816. In at least one embodiment, the instructions and / or operations to be executed by one or more PPUs (e.g., GPU 810) are PPU-specific code or GPU-specific code 812. In at least one embodiment, the GPU-specific code 812 is a set of software instructions and / or other operations to be executed by one or more GPUs 810, as further described herein. In at least one embodiment, the software program 804 includes instructions and / or operations to be executed by one or more accelerators 814 in a heterogeneous processor. In at least one embodiment, the instructions and / or operations to be executed by one or more accelerators 814 in a heterogeneous processor are accelerator-specific code 816. In at least one embodiment, the accelerator-specific code 816 is a set of software instructions and / or other operations to be executed by one or more accelerators 814, as further described herein. In at least one embodiment, the PPU-specific code or GPU-specific code 812 and / or accelerator-specific code 816 is executed in response to one or more APIs 806, as described below in conjunction with Figure 9-13 described.
[0117] Figure 9 9 is a block diagram illustrating an application programming interface (API) for creating a context according to at least one embodiment. In at least one embodiment, one or more circuits of a processor are configured to execute a create context API 902 to create a context having a flag indicating whether memory operations are to be performed synchronously, as described herein. In at least one embodiment ( Figure 9 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a create context API 902 to execute an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. Figure 9In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a create context API 902 to execute an application programming interface (API) to generate context information that prevents one or more operations from being performed until one or more memory operations have completed. Figure 9 90), one or more circuits of a processor (such as those described herein) execute one or more instructions to perform a create context API 902 to execute an application programming interface (API) such that, in response to receiving a second API (such as those described herein), an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored.
[0118] In at least one embodiment, the create context API 902, when called, receives one or more arguments indicating information about an operation to be performed using techniques such as those described herein. In at least one embodiment, the create context API 902, when called, receives one or more arguments indicating information about an instruction to be performed using techniques such as those described herein.
[0119] In at least one embodiment, the create context API 902 receives as input one or more arguments including a context store 904. In at least one embodiment, the context store 904 is a data value that includes information that can be used to identify, indicate, or otherwise specify a location to store a newly created context using the create context API 902. In at least one embodiment, the location identified, indicated, or otherwise specified by the context store 904 is one of a plurality of parameters that can be used by the create context API 902 to create a context. In at least one embodiment, as described herein, the context store 904 is a data value that is used to identify, indicate, or otherwise specify to an API (such as the create context API 902) a set of operations or instructions to be executed by one or more PPUs (such as GPUs) and / or one or more accelerators within a heterogeneous processor.
[0120] In at least one embodiment, the create context API 902 receives as input one or more arguments including tags 906. In at least one embodiment, the tags 906 are data values including information that can be used to identify, indicate, or otherwise specify one or more tags for a context to be created using the create context API 902. In at least one embodiment, the tags 906 include context tags, such as those described herein in conjunction with at least one embodiment. Figure 7Context tags 702 are described. In at least one embodiment, the tag identified, indicated, or otherwise specified by tags 906 is one of a plurality of parameters that can be used by create context API 902 to create a context. In at least one embodiment, tags 906 are data values used to identify, indicate, or otherwise specify to an API (such as create context API 902) a set of operations or instructions to be performed by one or more PPUs (such as GPUs) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0121] In at least one embodiment, the create context API 902 receives as input one or more arguments including a device 908. In at least one embodiment, the device 908 is a data value that includes information that can be used to identify, indicate, or otherwise specify an available device for which a context is to be created using the create context API 902. In at least one embodiment, the device identified, indicated, or otherwise specified by the device 908 is one of a plurality of parameters that can be used by the create context API 902 to create a context. In at least one embodiment, the device 908 is a data value that is used to identify, indicate, or otherwise specify to an API (such as the create context API 902) a set of operations or instructions to be performed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0122] In at least one embodiment, create context API 902 receives as input one or more arguments including one or more other arguments 910. In at least one embodiment, other arguments 910 are data including information indicating any other information available when executing create context API 902 to create a context.
[0123] In at least one embodiment ( Figure 9 In at least one embodiment (not shown), the processor executes one or more instructions to execute one or more APIs (such as create context API 902) to execute an application programming interface (API) to store an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations using one or more parameters (including but not limited to context storage 904, tags 906, devices 908, and / or other parameters 910). Figure 9), the processor executes one or more instructions to execute one or more APIs (such as a create context API 902) to execute an application programming interface (API) to generate context information using one or more parameters (including but not limited to context storage 904, tags 906, devices 908 and / or other parameters 910) that prevents one or more operations from being performed until the one or more memory operations have completed.
[0124] In at least one embodiment, the create context API 902, if called, causes one or more APIs (such as those described herein in conjunction with at least Figure 8 The one or more APIs 806 described herein add one or more operations or instructions to be added, inserted, or otherwise included in a flow or instruction set to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the create context API 902, if called, causes one or more APIs (such as the one or more APIs 806) to be executed in a parallel computing environment (such as, at least in conjunction with, the present invention). Figure 8 The invention also provides a method for adding one or more operations or instructions to be added, inserted, or otherwise included in a stream or instruction set to be executed by one or more accelerators within a heterogeneous processor in a parallel computing environment 808 described herein.
[0125] In at least one embodiment, in response to create context API 902, one or more APIs 806, if executed, cause one or more processors to execute create context API return 920. In at least one embodiment, create context API return 920 is a set of instructions that, if executed, generates and / or indicates one or more data values in response to create context API 902. In at least one embodiment, create context API return 920 indicates a success indicator 922. In at least one embodiment, success indicator 922 is data including any value indicating the success of create context API 902. In at least one embodiment, success indicator 922 includes information indicating one or more specific types of success generated as a result of executing create context API 902. In at least one embodiment, success indicator 922 includes information indicating one or more other data values generated as a result of create context API 902.
[0126] In at least one embodiment, the create context API return 920 indicates an error indicator 924. In at least one embodiment, the error indicator 924 is data including any value indicating a failure of the create context API 902. In at least one embodiment, the error indicator 924 includes information indicating one or more specific types of errors generated as a result of executing the create context API 902. In at least one embodiment, the error indicator 924 includes information indicating one or more other data values generated as a result of the create context API 902. In at least one embodiment, the error indicator 924 includes one or more errors including, but not limited to, an error indicating that the context of the device has been de-initialized, an error indicating that the context of the device has not been initialized, an error indicating that the context is invalid, an error indicating that the device is invalid, an error indicating that one or more values provided to the create context API 902 are invalid, an error indicating that the device is out of memory, an unknown error, or some other such error.
[0127] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a create context API 902) adds various types of individual operations to a stream to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, a stream operation includes an acquire semaphore operation. In at least one embodiment, a stream operation includes a release semaphore operation. In at least one embodiment, a stream operation includes one or more operations for refreshing and / or invalidating cache memory (such as, L2 cache memory of a PPU (such as a GPU) within a heterogeneous processor and / or cache memory of one or more accelerators). In at least one embodiment, a stream operation includes one or more operations for indicating that an operation is to be submitted to an external device (such as one or more accelerators within a heterogeneous processor). In at least one embodiment, example software code indicating a stream operation type is as follows:
[0128]
[0129]
[0130] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a create context API 902) includes one or more function signatures that can be used to indicate one or more callback functions of an operation to be performed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the one or more operations cause the one or more callback functions to be executed. In at least one embodiment, example software code indicating a function signature of a callback function is as follows:
[0131]
[0132] In at least one embodiment, to specify one or more accelerators within a heterogeneous processor to perform one or more operations indicated by the create context API 902 to the one or more APIs 806, one or more data structures of the one or more APIs 806 may be used to specify one or more external devices to which the one or more APIs 806 will submit the one or more operations. In at least one embodiment, example software code indicating a data structure representing a device node for one or more accelerators within a heterogeneous processor is as follows:
[0133]
[0134] In at least one embodiment, to specify the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor, one or more data structures of one or more APIs 806 are used. In at least one embodiment, example software code indicating a data structure for specifying the type and data of one or more operations to be performed by one or more accelerators within a heterogeneous processor is as follows:
[0135]
[0136] In at least one embodiment, one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be added to a stream or other instruction set to be executed by one or more accelerators within the heterogeneous processor. In at least one embodiment, in response to the create context API 902, the instructions that cause one or more operations or instructions to be added to the stream or other instruction set are executed, as described above. In at least one embodiment, example software code that indicates a stream operation API call in a parallel computing environment 808 (such as CUDA) is as follows:
[0137]
[0138]
[0139] In at least one embodiment, the one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within a heterogeneous processor to be added to one or more executable graphs, similar to how one or more operations or instructions to be performed by one or more accelerators within a heterogeneous processor are added to one or more flows or instruction sets in response to the create context API 902. In at least one embodiment, example software code that instructs one or more APIs 806 of a parallel computing environment 808 to add one or more operations or instructions to one or more executable graphs is as follows:
[0140]
[0141] Figure 10 1 is a block diagram illustrating an application programming interface (API) for setting a flag for a device context according to at least one embodiment. In at least one embodiment, one or more circuits of a processor are configured to execute a set device context flag API 1002 to set a flag for a device context indicating whether memory operations are to be performed synchronously, as described herein. In at least one embodiment ( Figure 10 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a set device context flags API 1002 to execute an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. Figure 10 (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a set device context flags API 1002 to execute an application programming interface (API) to store context information of one or more default contexts of one or more other processors that prevents one or more operations from being performed until one or more memory operations have completed. In at least one embodiment ( Figure 10 ), one or more circuits of a processor such as those described herein execute one or more instructions to perform a set device context flags API 1002 to execute an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure in response to receiving a second API such as those described herein.
[0142] In at least one embodiment, the set device context flags API 1002, when called, receives one or more arguments indicating information about an operation to be performed using techniques such as those described herein. In at least one embodiment, the set device context flags API 1002, when called, receives one or more arguments indicating information about an instruction to be performed using techniques such as those described herein.
[0143] In at least one embodiment, the set device context flags API 1002 receives as input one or more arguments including a device 1004. In at least one embodiment, the device 1004 is a data value that includes information that can be used to identify, indicate, or otherwise specify a device for which the flags of a device context are to be set using the set device context flags API 1002. In at least one embodiment, the device identified, indicated, or otherwise specified by the device 1004 is one of a plurality of parameters that can be used by the set device context flags API 1002 to set the flags of a device context. In at least one embodiment, the device 1004 is a data value that is used to identify, indicate, or otherwise specify to an API (such as the set device context flags API 1002) a set of operations or instructions to be performed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0144] In at least one embodiment, the set device context flags API 1002 receives as input one or more arguments including flags 1006. In at least one embodiment, the flags 1006 are data values that include information that can be used to identify, indicate, or otherwise specify one or more flags for the context of the device specified by the set device context flags API 1002. In at least one embodiment, the flags 1006 include context flags, such as those described herein in conjunction with at least one embodiment. Figure 7 Context tags 702 described herein. In at least one embodiment, one or more tags identified, indicated, or otherwise specified by tags 1006 are one of a plurality of parameters that can be used by set device context tags API 1002 to set tags for a device context. In at least one embodiment, tags 1006 are data values used to identify, indicate, or otherwise specify to an API (such as set device context tags API 1002) a set of operations or instructions to be performed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0145] In at least one embodiment, the set device context flags API 1002 receives as input one or more arguments including one or more other arguments 1008. In at least one embodiment, the other arguments 1008 are data including information indicating any other information that may be useful when executing the set device context flags API 1002 to set flags for a device context.
[0146] In at least one embodiment ( Figure 10 In at least one embodiment (not shown), the processor executes one or more instructions to execute one or more APIs (such as the set device context flag API 1002) to execute an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored in a master context data structure using one or more parameters (including but not limited to device 1004, flag 1006, and / or other parameters 1008). Figure 10 100), the processor executes one or more instructions to execute one or more APIs (such as a set device context flag API 1002) to execute an application programming interface (API) to store context information of one or more default contexts of one or more other processors using one or more parameters (including but not limited to device 1004, flag 1006 and / or other parameters 1008) for preventing one or more operations from being performed until one or more memory operations have completed.
[0147] In at least one embodiment, the Set Device Context Flags API 1002, if called, causes one or more APIs (such as those described herein in conjunction with at least Figure 8 The one or more APIs 806 described herein add one or more operations or instructions to be added, inserted, or otherwise included in a flow or instruction set to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the set device context flags API 1002, if called, causes one or more APIs (such as one or more APIs 806) to be used in a parallel computing environment (such as, at least in conjunction with, the present invention). Figure 8 The parallel computing environment 808) adds one or more operations or instructions to be added, inserted or otherwise included in a stream or instruction set to be executed by one or more accelerators within the heterogeneous processor.
[0148] In at least one embodiment, in response to the set device context flags API 1002, one or more APIs 806, if executed, cause one or more processors to execute the set device context flags API return 1020. In at least one embodiment, the set device context flags API return 1020 is a set of instructions that, if executed, generates and / or indicates one or more data values in response to the set device context flags API 1002. In at least one embodiment, the set device context flags API return 1020 indicates a success indicator 1022. In at least one embodiment, the success indicator 1022 is data including any value indicating the success of the set device context flags API 1002. In at least one embodiment, the success indicator 1022 includes information indicating one or more specific types of success generated as a result of executing the set device context flags API 1002. In at least one embodiment, the success indicator 1022 includes information indicating one or more other data values generated as a result of the set device context flags API 1002.
[0149] In at least one embodiment, the Set Device Context Flags API returns 1020 an error indicator 1024. In at least one embodiment, the error indicator 1024 is data including any value indicating a failure of the Set Device Context Flags API 1002. In at least one embodiment, the error indicator 1024 includes information indicating one or more specific types of errors generated as a result of executing the Set Device Context Flags API 1002. In at least one embodiment, the error indicator 1024 includes information indicating one or more other data values generated as a result of the Set Device Context Flags API 1002. In at least one embodiment, the error indicator 1024 includes one or more errors, including but not limited to an error indicating that the context of the device has been deinitialized, an error indicating that the context of the device has not been initialized, an error indicating that the device is invalid, an error indicating that one or more values provided to the Set Device Context Flags API 1002 are invalid, or some other such error.
[0150] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a set device context flags API 1002) adds various operations of various types to a stream to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the stream operation includes an acquire semaphore operation. In at least one embodiment, the stream operation includes a release semaphore operation. In at least one embodiment, the stream operation includes one or more operations for flushing and / or invalidating cache memory (such as, L2 cache memory of a PPU (such as a GPU) within a heterogeneous processor and / or cache memory of one or more accelerators). In at least one embodiment, the stream operation includes one or more operations for indicating submission of an operation to an external device (such as, one or more accelerators within a heterogeneous processor). In at least one embodiment, the one or more operations for indicating submission of an operation to an external device use software code, such as indicating as described in at least conjunction with Figure 9 Example software code for the described stream operations.
[0151] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a set device context flags API 1002) includes one or more function signatures that can be used to indicate one or more callback functions for operations to be performed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the one or more operations cause the one or more callback functions to be executed. In at least one embodiment, the one or more operations for causing the one or more callback functions to be executed use software code, such as indicating at least one embodiment of the present invention in conjunction with Figure 9 Example software code with the function signature of the described callback function.
[0152] In at least one embodiment, in order to designate one or more accelerators within a heterogeneous processor to perform one or more operations indicated by the set device context flags API 1002 to the one or more APIs 806, one or more data structures of the one or more APIs 806 may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations. In at least one embodiment, the one or more data structures of the one or more APIs 806 that may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations may use software code, such as an indication indicating at least one embodiment of the present invention in conjunction with the present invention. Figure 9 Example software code for a data structure for a device node of one or more accelerators within a described heterogeneous processor.
[0153] In at least one embodiment, to specify the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor, one or more data structures of one or more APIs 806 are used. In at least one embodiment, one or more data structures of one or more APIs 806 for specifying the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor use software code, such as example software code indicating a data structure for specifying the type and data of one or more operations to be performed by one or more accelerators within a heterogeneous processor, as described herein in at least conjunction with Figure 9 described.
[0154] In at least one embodiment, one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be added to a stream or other instruction set to be executed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set are executed in response to the set device context flag API 1002, as described above. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set executed in response to the set device context flag API 1002 use software code, such as example software code that directs stream operation API calls in the parallel computing environment 808, such example software code being described herein in conjunction with at least one embodiment. Figure 9 Provide a description.
[0155] In at least one embodiment, the one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs are similar to how one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor are added to one or more instruction streams or instruction sets in response to the set device context flag API 1002, as described herein. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs use software code, such as the example software code that instructs one or more APIs 806 of the parallel computing environment 808 to add one or more operations or instructions to one or more executable graphs, as described herein in conjunction with at least one embodiment. Figure 9 Describes such example software code.
[0156] Figure 11 1 is a block diagram illustrating an application programming interface (API) for obtaining a flag for a current context according to at least one embodiment. In at least one embodiment, one or more circuits of a processor are configured to execute a obtain current context flag API 1102 to obtain a flag for a current context indicating whether memory operations are to be performed synchronously, as described herein. In at least one embodiment ( Figure 11 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a get current context tag API 1102 to execute an application programming interface (API) to enable reading an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. Figure 11 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a get current context flags API 1102 to execute an application programming interface (API) to provide context information indicating whether one or more operations are blocked from execution until one or more memory operations are completed. Figure 11 ), one or more circuits of a processor (such as those described herein) execute one or more instructions to execute a get current context tag API 1102 to execute an application programming interface (API) such that, in response to receiving a second API (such as those described herein), read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
[0157] In at least one embodiment, the get current context tag API 1102, when called, receives one or more arguments indicating information about an operation to be performed using techniques such as those described herein. In at least one embodiment, the get current context tag API 1102, when called, receives one or more arguments indicating information about an instruction to be performed using techniques such as those described herein.
[0158] In at least one embodiment, the get current context tags API 1102 receives as input one or more arguments including a tag store 1104. In at least one embodiment, the tag store 1104 is a data value that includes information that can be used to identify, indicate, or otherwise specify a storage location where one or more tags of the current context are to be stored using the get current context tags API 1102. In at least one embodiment, the tag store 1104 is a context tag (such as, for example, a tag stored in at least one embodiment of the present disclosure) Figure 7 In at least one embodiment, the tag storage location identified, indicated, or otherwise specified by the tag storage 1104 is one of a plurality of parameters that can be used by the get current context tags API 1102 to obtain tags for the current context. In at least one embodiment, the tag storage 1104 is a data value used to identify, indicate, or otherwise specify to an API (such as the get current context tags API 1102) a set of operations or instructions to be executed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0159] In at least one embodiment, the get current context tag API 1102 receives as input one or more arguments including one or more other arguments 1106. In at least one embodiment, the other arguments 1106 are data including information indicating any other information that may be used when executing the get current context tag API 1102 to obtain tags for the current context.
[0160] In at least one embodiment ( Figure 11 In at least one embodiment (not shown), the processor executes one or more instructions to execute one or more APIs (such as the get current context tag API 1102) to execute an application programming interface (API) to read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations using one or more parameters (including but not limited to the tag storage 1104 and / or other parameters 1106). Figure 11 ), the processor executes one or more instructions to execute one or more APIs (such as a get current context tag API 1102) to execute an application programming interface (API) to use one or more actual parameters (including but not limited to a tag storage 1104 and / or other actual parameters 1106) to provide context information indicating whether to prevent execution of one or more operations until one or more memory operations are completed.
[0161] In at least one embodiment, the Get Current Context Tag API 1102, if called, causes one or more APIs (such as those described herein in conjunction with at least Figure 8 The one or more APIs 806 described herein add one or more operations or instructions to be added, inserted, or otherwise included in a flow or instruction set to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the get current context tag API 1102, if called, causes one or more APIs (such as the one or more APIs 806) to be executed in a parallel computing environment (such as, at least in conjunction with, the present invention). Figure 8 The invention also provides a method for adding one or more operations or instructions to be added, inserted, or otherwise included in a stream or instruction set to be executed by one or more accelerators within a heterogeneous processor in a parallel computing environment 808 described herein.
[0162] In at least one embodiment, in response to the get current context tag API 1102, one or more APIs 806, if executed, cause one or more processors to execute the get current context tag API return 1120. In at least one embodiment, the get current context tag API return 1120 is a set of instructions that, if executed, generates and / or indicates one or more data values in response to the get current context tag API 1102. In at least one embodiment, the get current context tag API return 1120 indicates a success indicator 1122. In at least one embodiment, the success indicator 1122 is data including any value indicating the success of the get current context tag API 1102. In at least one embodiment, the success indicator 1122 includes information indicating one or more specific types of success generated as a result of executing the get current context tag API 1102. In at least one embodiment, the success indicator 1122 includes information indicating one or more other data values generated as a result of the get current context tag API 1102.
[0163] In at least one embodiment, the get current context tag API return 1120 indicates an error indicator 1124. In at least one embodiment, the error indicator 1124 is data including any value indicating a failure of the get current context tag API 1102. In at least one embodiment, the error indicator 1124 includes information indicating one or more specific types of errors generated as a result of executing the get current context tag API 1102. In at least one embodiment, the error indicator 1124 includes information indicating one or more other data values generated as a result of the get current context tag API 1102. In at least one embodiment, the error indicator 1124 includes one or more errors, including but not limited to an error indicating that the context of the device has been deinitialized, an error indicating that the context of the device has not been initialized, an error indicating that the device is invalid, an error indicating that one or more values provided to the get current context tag API 1102 are invalid, or some other such error.
[0164] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a get current context tag API 1102) adds various types of individual operations to a stream to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the stream operation includes an acquire semaphore operation. In at least one embodiment, the stream operation includes a release semaphore operation. In at least one embodiment, the stream operation includes one or more operations for flushing and / or invalidating cache memory (such as, L2 cache memory of a PPU (such as a GPU) within a heterogeneous processor and / or cache memory of one or more accelerators). In at least one embodiment, the stream operation includes one or more operations for indicating submission of an operation to an external device (such as one or more accelerators within a heterogeneous processor). In at least one embodiment, the one or more operations for indicating submission of an operation to an external device use software code, such as indicating as described in at least conjunction with Figure 9 Example software code for the described stream operations.
[0165] In at least one embodiment, the parallel computing environment 808 including one or more APIs 806 (including but not limited to the get current context tag API 1102) includes one or more function signatures that can be used to indicate one or more callback functions for operations to be performed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the one or more operations cause the one or more callback functions to be executed. In at least one embodiment, the one or more operations for causing the one or more callback functions to be executed use software code, such as indicating that at least one of the functions described herein is executed in conjunction with Figure 9 Example software code with the function signature of the described callback function.
[0166] In at least one embodiment, in order to designate one or more accelerators within a heterogeneous processor to perform one or more operations indicated by the get current context tag API 1102 to the one or more APIs 806, one or more data structures of the one or more APIs 806 may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations. In at least one embodiment, the one or more data structures of the one or more APIs 806 that may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations may use software code, such as an indication indicating at least one embodiment of the present invention in conjunction with Figure 9 Example software code for a data structure for a device node of one or more accelerators within a described heterogeneous processor.
[0167] In at least one embodiment, to specify the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor, one or more data structures of one or more APIs 806 are used. In at least one embodiment, one or more data structures of one or more APIs 806 for specifying the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor use software code, such as example software code indicating a data structure for specifying the type and data of one or more operations to be performed by one or more accelerators within a heterogeneous processor, as described herein in at least conjunction with Figure 9 described.
[0168] In at least one embodiment, one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be added to a stream or other instruction set to be executed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the instructions that cause one or more operations or instructions to be added to a stream or other instruction set to be executed are executed in response to the Get Current Context Tag API 1102, as described above. In at least one embodiment, the instructions that cause one or more operations or instructions to be added to a stream or other instruction set to be executed are executed in response to the Get Current Context Tag API 1102 using software code, such as example software code that directs stream operation API calls in the parallel computing environment 808, as described herein in conjunction with at least one embodiment. Figure 9 Describes such example software code.
[0169] In at least one embodiment, the one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs are similar to how one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor are added to one or more flows or instruction sets in response to the get current context tag API 1102, as described herein. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs use software code, such as the example software code that instructs one or more APIs 806 of the parallel computing environment 808 to add one or more operations or instructions to one or more executable graphs, as described herein in conjunction with at least one embodiment. Figure 9 Describes such example software code.
[0170] Figure 12 1 is a block diagram illustrating an application programming interface (API) for obtaining a flag for a device context according to at least one embodiment. In at least one embodiment, one or more circuits of a processor are configured to execute a get device context flag API 1202 to obtain a flag for a device context indicating whether memory operations are to be performed synchronously, as described herein. In at least one embodiment ( Figure 12 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a get device context flags API 1202 to execute an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. Figure 12 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a get device context flags API 1202 to execute an application programming interface (API) to provide context information of one or more default contexts of one or more other processors indicating whether one or more operations will be blocked from execution until one or more memory operations are completed. Figure 12), one or more circuits of a processor (such as those described herein) execute one or more instructions to execute a get device context flags API 1202 to execute an application programming interface (API) to read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a primary context data structure in response to receiving a second API such as those described herein.
[0171] In at least one embodiment, the get device context flags API 1202, when called, receives one or more arguments indicating information about an operation to be performed using techniques such as those described herein. In at least one embodiment, the get device context flags API 1202, when called, receives one or more arguments indicating information about an instruction to be performed using techniques such as those described herein.
[0172] In at least one embodiment, the get device context tags API 1202 receives as input one or more arguments including a device 1204. In at least one embodiment, the device 1204 is a data value that includes information that can be used to identify, indicate, or otherwise specify a device from which tags for a device context are to be obtained using the get device context tags API 1202. In at least one embodiment, the device identified, indicated, or otherwise specified by the device 1204 is one of a plurality of parameters that can be used by the get device context tags API 1202 to obtain tags for a device context. In at least one embodiment, the device 1204 is a data value that is used to identify, indicate, or otherwise specify to an API (such as the get device context tags API 1202) a set of operations or instructions to be executed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0173] In at least one embodiment, the get device context tags API 1202 receives as input one or more arguments including a tag store 1206. In at least one embodiment, the tag store 1206 is a data value that includes information that can be used to identify, indicate, or otherwise specify a storage location where one or more tags of a device context are to be stored using the get device context tags API 1202. In at least one embodiment, the tag store 1206 is a context tag (such as, for example, a tag store 1206) that is stored in at least one embodiment in conjunction with the device context. Figure 7In at least one embodiment, the tag storage location identified, indicated, or otherwise specified by the tag store 1206 is one of a plurality of parameters that can be used by the get device context tags API 1202 to obtain tags for a device context. In at least one embodiment, the tag storage 1206 is a data value used to identify, indicate, or otherwise specify to an API (such as the get device context tags API 1202) a set of operations or instructions to be performed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0174] In at least one embodiment, the Get Device Context Tags API 1202 receives as input one or more arguments, including a context state store 1208. In at least one embodiment, the context state store 1208 is a data value that includes information that can be used to identify, indicate, or otherwise specify a location where the state of a device context is to be stored using the Get Device Context Tags API 1202. In at least one embodiment, the state of a device context is an indicator of whether the device context is active or inactive. In at least one embodiment, the context state store location identified, indicated, or otherwise specified by the Context State Store 1208 is one of a plurality of parameters that can be used by the Get Device Context Tags API 1202 to obtain a tag for a device context. In at least one embodiment, as described herein, the context state store 1208 is a data value that is used to identify, indicate, or otherwise specify to an API, such as the Get Device Context Tags API 1202, a set of operations or instructions to be executed by one or more PPUs (such as a GPU) and / or one or more accelerators within a heterogeneous processor.
[0175] In at least one embodiment, the get device context flags API 1202 receives as input one or more arguments including one or more other arguments 1210. In at least one embodiment, the other arguments 1210 are data including information indicating any other information that may be used when executing the get device context flags API 1202 to obtain a flag for a device context.
[0176] In at least one embodiment ( Figure 12In at least one embodiment (not shown), the processor executes one or more instructions to execute one or more APIs (such as, for example, get device context flags API 1202) to execute an application programming interface (API) to read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a master context data structure using one or more parameters (including but not limited to device 1204, flag storage 1206, context state storage 1208, and / or other parameters 1210). Figure 12 ), the processor executes one or more instructions to execute one or more APIs (such as, get device context flags API 1202) to execute an application programming interface (API) to provide context information of one or more default contexts of one or more other processors using one or more parameters (including but not limited to device 1204, flag storage 1206, context state storage 1208 and / or other parameters 1210) to indicate whether to prevent execution of one or more operations until one or more memory operations are completed.
[0177] In at least one embodiment, the get device context flags API 1202, if called, causes one or more APIs (such as those described herein in conjunction with at least Figure 8 The one or more APIs 806 described herein add one or more operations or instructions to be added, inserted, or otherwise included in a flow or instruction set to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the get device context tag API 1202, if called, causes one or more APIs (such as one or more APIs 806) to be executed in a parallel computing environment (such as, at least in conjunction with, the present invention). Figure 8 The invention also provides a method for adding one or more operations or instructions to be added, inserted, or otherwise included in a stream or instruction set to be executed by one or more accelerators within a heterogeneous processor in a parallel computing environment 808 described herein.
[0178] In at least one embodiment, in response to the Get Device Context Tags API 1202, one or more APIs 806, if executed, cause one or more processors to execute the Get Device Context Tags API Return 1220. In at least one embodiment, the Get Device Context Tags API Return 1220 is a set of instructions that, if executed, generates and / or indicates one or more data values in response to the Get Device Context Tags API 1202. In at least one embodiment, the Get Device Context Tags API Return 1220 indicates a success indicator 1222. In at least one embodiment, the success indicator 1222 is data including any value indicating the success of the Get Device Context Tags API 1202. In at least one embodiment, the success indicator 1222 includes information indicating one or more specific types of success generated as a result of executing the Get Device Context Tags API 1202. In at least one embodiment, the success indicator 1222 includes information indicating one or more other data values generated as a result of the Get Device Context Tags API 1202.
[0179] In at least one embodiment, the get device context flags API return 1220 indicates an error indicator 1224. In at least one embodiment, the error indicator 1224 is data including any value indicating a failure of the get device context flags API 1202. In at least one embodiment, the error indicator 1224 includes information indicating one or more specific types of errors generated as a result of executing the get device context flags API 1202. In at least one embodiment, the error indicator 1224 includes information indicating one or more other data values generated as a result of the get device context flags API 1202. In at least one embodiment, the error indicator 1224 includes one or more errors, including but not limited to an error indicating that the context of the device has been deinitialized, an error indicating that the context of the device has not been initialized, an error indicating that the device is invalid, an error indicating that one or more values provided to the get device context flags API 1202 are invalid, or some other such error.
[0180] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a get device context tag API 1202) adds various types of individual operations to a stream to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the stream operation includes an acquire semaphore operation. In at least one embodiment, the stream operation includes a release semaphore operation. In at least one embodiment, the stream operation includes one or more operations for flushing and / or invalidating cache memory (such as, L2 cache memory of a PPU (such as a GPU) within a heterogeneous processor and / or cache memory of one or more accelerators). In at least one embodiment, the stream operation includes one or more operations for indicating submission of an operation to an external device (such as one or more accelerators within a heterogeneous processor). In at least one embodiment, the one or more operations for indicating submission of an operation to an external device use software code, such as indicating as described in at least conjunction with Figure 9 Example software code for the described stream operations.
[0181] In at least one embodiment, the parallel computing environment 808 including one or more APIs 806 (including but not limited to the get device context tag API 1202) includes one or more function signatures that can be used to indicate one or more callback functions of operations to be performed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the one or more operations cause the one or more callback functions to be executed. In at least one embodiment, the one or more operations for causing the one or more callback functions to be executed use software code, such as indicating that at least one of the functions described herein is executed in conjunction with the one or more accelerators. Figure 9 Example software code with the function signature of the described callback function.
[0182] In at least one embodiment, in order to designate one or more accelerators within a heterogeneous processor to perform one or more operations indicated by the get device context tag API 1202 to one or more APIs 806, one or more data structures of the one or more APIs 806 may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations. In at least one embodiment, the one or more data structures of the one or more APIs 806 that may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations may use software code, such as an indication indicating at least one embodiment of the present invention in conjunction with Figure 9 Example software code for a data structure for a device node of one or more accelerators within a described heterogeneous processor.
[0183] In at least one embodiment, to specify the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor, one or more data structures of one or more APIs 806 are used. In at least one embodiment, one or more data structures of one or more APIs 806 for specifying the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor use software code, such as example software code indicating a data structure for specifying the type and data of one or more operations to be performed by one or more accelerators within a heterogeneous processor, as described herein in at least conjunction with Figure 9 described.
[0184] In at least one embodiment, one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be added to a stream or other instruction set to be executed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set are executed in response to the get device context tag API 1202, as described above. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set executed in response to the get device context tag API 1202 use software code, such as example software code that directs stream operation API calls in the parallel computing environment 808, as described herein in at least some embodiments. Figure 9 Describes such example software code.
[0185] In at least one embodiment, the one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs are similar to how one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor are added to one or more flows or instruction sets in response to the get device context tag API 1202, as described herein. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs use software code, such as example software code that instructs one or more APIs 806 of the parallel computing environment 808 to add one or more operations or instructions to one or more executable graphs, as described herein in conjunction with at least Figure 9Describes such example software code.
[0186] Figure 13 1300 is a block diagram illustrating an application programming interface (API) for setting a flag for a current context according to at least one embodiment. In at least one embodiment, one or more circuits of a processor are configured to execute a set current context flag API 1302 to set a flag for a current context indicating whether to perform memory operations synchronously, as described herein. In at least one embodiment ( Figure 13 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a set current context flag API 1302 to execute an application programming interface (API) so that context information is updated to indicate whether one or more memory operations to be performed are dependent on one or more other memory operations. Figure 13 In at least one embodiment (not shown), one or more circuits of a processor such as those described herein execute one or more instructions to execute a set current context flag API 1302 to execute an application programming interface (API) to store context information that prevents one or more operations from being performed until one or more memory operations are completed. Figure 13 ), one or more circuits of a processor (such as those described herein) execute one or more instructions to execute a set current context flag API 1302 to execute an application programming interface (API) so that context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations is updated in response to receiving a second API (such as those described herein).
[0187] In at least one embodiment, the set current context tag API 1302, when called, receives one or more arguments indicating information about an operation to be performed using techniques such as those described herein. In at least one embodiment, the set current context tag API 1302, when called, receives one or more arguments indicating information about an instruction to be performed using techniques such as those described herein.
[0188] In at least one embodiment, the set current context tag API 1302 receives as input one or more arguments including tags 1304. In at least one embodiment, the tags 1304 are data values that include information that can be used to identify, indicate, or otherwise specify one or more tags for the current context specified by the set current context tag API 1302. In at least one embodiment, the tags 1304 include context tags, such as those described herein in conjunction with at least one embodiment. Figure 7 Context tags 702 are described. In at least one embodiment, one or more tags identified, indicated, or otherwise specified by tags 1304 are one of a plurality of parameters that can be used by set current context tags API 1302 to set tags for the current context. In at least one embodiment, tags 1304 are data values used to identify, indicate, or otherwise specify to an API (such as set current context tags API 1302) a set of operations or instructions to be performed by one or more PPUs (such as GPUs) and / or one or more accelerators within a heterogeneous processor, as described herein.
[0189] In at least one embodiment, the set current context tag API 1302 receives as input one or more arguments including one or more other arguments 1306. In at least one embodiment, the other arguments 1306 are data including information indicating any other information that may be used when executing the set current context tag API 1302 to set a tag for the current context.
[0190] In at least one embodiment ( Figure 13 In at least one embodiment (not shown), the processor executes one or more instructions to execute one or more APIs (such as set current context flag API 1302) to execute an application programming interface (API) so that context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations is updated using one or more parameters (including but not limited to flag 1304 and / or other parameters 1306). Figure 13 ), the processor executes one or more instructions to execute one or more APIs (e.g., set current context flag API 1302) to execute an application programming interface (API) to store context information using one or more parameters (including but not limited to flag 1304 and / or other parameters 1306) for preventing one or more operations from being performed until one or more memory operations are completed.
[0191] In at least one embodiment, the Set Current Context Tag API 1302, if called, causes one or more APIs (such as those described herein in conjunction with at least Figure 8 The one or more APIs 806 described herein add one or more operations or instructions to be added, inserted, or otherwise included in a flow or instruction set to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the set current context flag API 1302, if called, causes one or more APIs (such as the one or more APIs 806) to be used in a parallel computing environment (such as, at least in conjunction with, the present invention). Figure 8 The invention also provides a method for adding one or more operations or instructions to be added, inserted, or otherwise included in a stream or instruction set to be executed by one or more accelerators within a heterogeneous processor in a parallel computing environment 808 described herein.
[0192] In at least one embodiment, in response to the set current context tag API 1302, one or more APIs 806, if executed, cause one or more processors to execute the set current context tag API return 1320. In at least one embodiment, the set current context tag API return 1320 is a set of instructions that, if executed, generates and / or indicates one or more data values in response to the set current context tag API 1302. In at least one embodiment, the set current context tag API return 1320 indicates a success indicator 1322. In at least one embodiment, the success indicator 1322 is data including any value indicating the success of the set current context tag API 1302. In at least one embodiment, the success indicator 1322 includes information indicating one or more specific types of success generated as a result of executing the set current context tag API 1302. In at least one embodiment, the success indicator 1322 includes information indicating one or more other data values generated as a result of the set current context tag API 1302.
[0193] In at least one embodiment, the set current context tag API return 1320 indicates an error indicator 1324. In at least one embodiment, the error indicator 1324 is data including any value indicating a failure of the set current context tag API 1302. In at least one embodiment, the error indicator 1324 includes information indicating one or more specific types of errors generated as a result of executing the set current context tag API 1302. In at least one embodiment, the error indicator 1324 includes information indicating one or more other data values generated as a result of the set current context tag API 1302. In at least one embodiment, the error indicator 1324 includes one or more errors, including but not limited to an error indicating that the context of the device has been deinitialized, an error indicating that the context of the device has not been initialized, an error indicating that the device is invalid, an error indicating that one or more values provided to the set current context tag API 1302 are invalid, or some other such error.
[0194] In at least one embodiment, a parallel computing environment 808 including one or more APIs 806 (including but not limited to a set current context flag API 1302) adds various types of individual operations to a stream to be executed by one or more accelerators within a heterogeneous processor. In at least one embodiment, the stream operation includes an acquire semaphore operation. In at least one embodiment, the stream operation includes a release semaphore operation. In at least one embodiment, the stream operation includes one or more operations for flushing and / or invalidating cache memory (such as, L2 cache memory of a PPU (such as a GPU) within a heterogeneous processor and / or cache memory of one or more accelerators). In at least one embodiment, the stream operation includes one or more operations indicating submission of an operation to an external device (such as one or more accelerators within a heterogeneous processor). In at least one embodiment, the one or more operations indicating submission of an operation to an external device use software code, such as indicating as described in at least conjunction with Figure 9 Example software code for the described stream operations.
[0195] In at least one embodiment, the parallel computing environment 808 including one or more APIs 806 (including but not limited to the set current context flag API 1302) includes one or more function signatures that can be used to indicate one or more callback functions for operations to be performed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the one or more operations cause the one or more callback functions to be executed. In at least one embodiment, the one or more operations for causing the one or more callback functions to be executed use software code, such as indicating that at least one of the functions described herein is executed in conjunction with Figure 9Example software code with the function signature of the described callback function.
[0196] In at least one embodiment, in order to designate one or more accelerators within a heterogeneous processor to perform one or more operations indicated by the set current context flag API 1302 to the one or more APIs 806, one or more data structures of the one or more APIs 806 may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations. In at least one embodiment, the one or more data structures of the one or more APIs 806 that may be used to designate one or more external devices to which the one or more APIs 806 will submit the one or more operations may use software code, such as an indication indicating at least one embodiment of the present invention in conjunction with Figure 9 Example software code for a data structure for a device node of one or more accelerators within a described heterogeneous processor.
[0197] In at least one embodiment, to specify the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor, one or more data structures of one or more APIs 806 are used. In at least one embodiment, one or more data structures of one or more APIs 806 for specifying the type and data of one or more operations indicated by one or more operations to be performed by one or more accelerators within a heterogeneous processor use software code, such as example software code indicating a data structure for specifying the type and data of one or more operations to be performed by one or more accelerators within a heterogeneous processor, as described herein in at least conjunction with Figure 9 described.
[0198] In at least one embodiment, one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be added to a stream or other instruction set to be executed by one or more accelerators within the heterogeneous processor. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set are executed in response to the set current context tag API 1302, as described above. In at least one embodiment, the instructions for causing one or more operations or instructions to be added to a stream or other instruction set executed in response to the set current context tag API 1302 use software code, such as example software code that directs stream operation API calls in the parallel computing environment 808, such example software code being described herein in conjunction with at least one embodiment. Figure 9 Provide a description.
[0199] In at least one embodiment, the one or more APIs 806 include instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs are similar to how one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor are added to one or more flows or instruction sets in response to the set current context flag API 1302, as described herein. In at least one embodiment, the instructions that, if executed, cause one or more operations or instructions to be performed by one or more accelerators within the heterogeneous processor to be added to one or more executable graphs use software code, such as the example software code that instructs one or more APIs 806 of the parallel computing environment 808 to add one or more operations or instructions to one or more executable graphs, as described herein in conjunction with at least one embodiment. Figure 9 Describes such example software code.
[0200] Figure 14 is a block diagram 1400 illustrating a process for executing one or more application programming interfaces (APIs) according to at least one embodiment. In at least one embodiment, the process for executing one or more APIs shown in block diagram 1400 is a process for executing a program executed by a parallel computing environment (such as, for example, a processor or a processor described herein). Figure 8 In at least one embodiment, the process for executing the one or more APIs shown in block diagram 1400 begins 1402 at step 1404, whereby one or more processors execute a software program comprising one or more instructions that, if executed, cause the one or more processors and / or one or more other processors (such as a graphics processing unit (GPU) and / or one or more accelerators within the one or more heterogeneous processors) to perform one or more computing operations. In at least one embodiment, at step 1404, the software program to be executed by the one or more processors comprises one or more instructions that, if executed, cause one or more APIs 806 of the parallel computing environment 808 to be executed, as described above. In at least one embodiment, after step 1404, the process for executing the one or more APIs shown in block diagram 1400 continues at step 1406.
[0201] In at least one embodiment, at step 1406, the processor executing the process for executing one or more APIs shown in block diagram 1400 determines a method such as at least one embodiment of the present invention in conjunction with Figure 9-13 Whether execution of an API such as those described (e.g., create context API 902, set device context tags API 1002, get current context tags API 1102, get device context tags API 1202, and / or set current context tags API 1302) will be executed. In at least one embodiment, at step 1406, if it is determined that the API will not be executed (the "no" branch), the process for executing one or more APIs shown in block diagram 1400 continues at step 1416. In at least one embodiment, at step 1406, if it is determined that the API will be executed (the "yes" branch), the process 1400 continues at step 1408.
[0202] In at least one embodiment, at step 1408, a processor executing a process for executing one or more APIs shown in block diagram 1400 executes an API, such as described herein in conjunction with at least Figure 9-13 In at least one embodiment, at step 1408, one or more processors execute one or more instructions to cause one or more API calls to be performed by the one or more processors and / or one or more other processors (such as a GPU and / or accelerator within a heterogeneous processor), such as those described herein in conjunction with at least one embodiment. Figure 9-13 1402 ), as described above. In at least one embodiment, after step 1408 , the process for executing one or more APIs shown in block diagram 1400 continues at step 1410 .
[0203] In at least one embodiment, at step 1410, a processor executing a process for executing one or more APIs shown in block diagram 1400 determines whether a return value is returned as a result of executing one or more instructions for causing one or more API calls (such as those described herein in conjunction with at least one embodiment) to return a value. Figure 9-13The one or more processors and / or one or more other processors (such as a GPU and / or accelerator within a heterogeneous processor) are executed by the one or more processors and / or one or more other processors (such as a GPU and / or accelerator within a heterogeneous processor) as described above. In at least one embodiment, at step 1410, the processor executing the process for executing one or more APIs shown in block diagram 1400 determines whether a return value will be returned using an API (such as at least one described herein in conjunction with the API). Figure 9-13 In at least one embodiment, if a return value is determined to be returned at step 1410 ("yes" branch), process 1400 continues at step 1412. In at least one embodiment, if a return value is determined not to be returned at step 1410 ("no" branch), process 1400 continues at step 1414.
[0204] In at least one embodiment, at step 1412, a return value is set. In at least one embodiment, at step 1412, the return value is stored in a Figure 9-13 The return value is set in a memory location specified by the APIs described herein (e.g., the create context API 902, the set device context flags API 1002, the get current context flags API 1102, the get device context flags API 1202, and / or the set current context flags API 1302). In at least one embodiment, at step 1412, the return value is stored in a memory location specified by the API return (as described herein in at least conjunction with Figure 9-13 The return value is set in a memory location included in the create context API return 920, set device context tag API return 1020, get current context tag API return 1120, get device context tag API return 1220, and / or set current context tag API return 1320. In at least one embodiment, after step 1412, the process for executing one or more APIs shown in block diagram 1400 continues at step 1414.
[0205] In at least one embodiment, at step 1414, the API is used to return (as described herein in at least Figure 9-131400) to return success or failure (e.g., an error). In at least one embodiment, after step 1414, the process for executing one or more APIs shown in block diagram 1400 continues at step 1416.
[0206] In at least one embodiment, at step 1416, the processor executing the process for executing one or more APIs shown in block diagram 1400 determines whether execution of the software program at step 1404 is complete. In at least one embodiment, at step 1416, the processor executing the process for executing one or more APIs shown in block diagram 1400 determines that execution of the software program at step 1404 is complete based at least in part on whether the one or more processors at step 1404 are executing instructions of the software program. In at least one embodiment, at step 1416, if it is determined that execution of the software program at step 1404 is complete, the process for executing the one or more APIs shown in block diagram 1400 ends 1418. In at least one embodiment, at step 1416, if it is determined that execution of the software program at step 1404 is not complete, the process for executing the one or more APIs shown in block diagram 1400 continues at step 1404 to continue executing one or more instructions of the software program at step 1404.
[0207] In at least one embodiment, the operations of the process for executing one or more APIs shown in block diagram 1400 are to Figure 14 In at least one embodiment, the operations for executing the process of one or more APIs shown in block diagram 1400 are executed simultaneously or in parallel. In at least one embodiment, for example, operations that are not dependent on each other (e.g., order-independent) are executed simultaneously or in parallel. In at least one embodiment, the operations for executing the process of one or more APIs shown in block diagram 1400 are executed by multiple threads (such as those described herein) executing on a processor.
[0208] Figure 15 is a block diagram 1500 illustrating an example software stack for processing an application programming interface (API) according to at least one embodiment. In at least one embodiment, the software stack illustrated in block diagram 1500 is used to process a program such as the one described herein in conjunction with at least one embodiment. Figure 9The API such as the create context API 902 described herein is used to implement an application programming interface (API) to store an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, a software stack such as that shown in block diagram 1500 is used to process at least one embodiment of the present invention. Figure 10 The described APIs such as the set device context flags API 1002 are used to implement an application programming interface (API) such that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. In at least one embodiment, a software stack such as that shown in block diagram 1500 is used to process at least one of the embodiments described herein. Figure 11 The described APIs such as the get current context tag API 1102 are used to implement an application programming interface (API) to read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the software stack shown in block diagram 1500 is used to process the software stack shown in block diagram 1500. Figure 12 The described APIs such as the get device context flags API 1202 are used to implement an application programming interface (API) to read an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a master context data structure. In at least one embodiment, a software stack such as that shown in block diagram 1500 is used to process at least one of the memory operations described herein. Figure 13 The example software stack 1500 is a software stack such as the set current context flag API 1302 described herein to implement an application programming interface (API) to update context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations. Figures 36-39 In at least one embodiment, the application 1502 executes commands to determine whether feature 1504 is supported. In at least one embodiment, the application 1502 executes commands to determine whether feature 1504 is supported to execute an API such as those described herein.
[0209] In at least one embodiment, the application 1502 uses 1506 one or more runtime APIs 1508 to determine whether the feature 1504 is supported. In at least one embodiment, the runtime API 1508 uses 1510 one or more driver APIs 1512 to determine whether the feature 1504 is supported. Figure 15In the example embodiment (not shown), application 1502 uses one or more driver APIs 1512 to determine whether feature 1504 is supported. In at least one embodiment, driver API 1512 queries 1514 computer system hardware 1516 to determine whether feature 1504 is supported.
[0210] In at least one embodiment, computer system hardware 1516 determines whether processor 1534 supports feature 1504 by querying a set of capabilities associated with processor 1534. In at least one embodiment, processor 1534 is a processor such as described herein in conjunction with at least Figure 1 In at least one embodiment, the computer system hardware 1516 uses the operating system of the processor 1534 to determine whether the processor 1534 supports the feature 1504. In at least one embodiment, the computer system hardware 1516 determines whether the graphics processor 1536 supports the feature by querying a set of capabilities associated with the graphics processor 1536. In at least one embodiment, the graphics processor 1536 is a graphics processor such as the one described in at least one embodiment herein. Figure 1 104. In at least one embodiment, computer system hardware 1516 uses an operating system of processor 1534 to determine whether graphics processor 1536 supports feature 1504. In at least one embodiment, computer system hardware 1516 uses an operating system of graphics processor 1536 to determine whether graphics processor 1536 supports feature 1504.
[0211] In at least one embodiment, after the computer system hardware 1516 determines whether feature 1504 is supported, the computer system hardware 1516 returns 1518 the determination using the driver API 1512, which may return 1520 the determination using the runtime API 1508, which may return 1522 the determination to the application 1502. In at least one embodiment, if the application 1502 receives a determination indicating 1524 that feature 1504 is supported, the application 1502 executes the feature 1526 using one or more APIs, such as those described herein. In at least one embodiment, the application 1502 executes the feature 1526 using systems and methods, such as those described herein. In at least one embodiment, the application 1502 executes the feature 1526 using 1528 the runtime API 1508, which includes, but is not limited to, a runtime version of the API, such as described herein in conjunction with at least one embodiment. Figure 6-10 Those described.
[0212] In at least one embodiment, the runtime API 1508 uses 1530 a driver API 1512, including but not limited to a driver version of an API such as those described herein, to perform feature 1526. Figure 15 15), the application 1502 uses 1530 the driver API 1512 to perform the feature 1526. In at least one embodiment, the driver API 1512 uses 1532 the computer system hardware 1516 to perform the feature 1526.
[0213] Figure 16 is a block diagram 1600 illustrating an application to be executed using the CUDA library and driver according to at least one embodiment. In at least one embodiment, processor 1602 executes one or more commands to execute application 1606 to manage the context of graphics processor 1604 and manage memory operation dependencies of kernels executing using the context on graphics processor 1604 using techniques such as those described herein. In at least one embodiment, processor 1602 is a single-core processor, a multi-core processor, a graphics processor, a parallel processor, a general-purpose graphics processor, and / or some other processor such as those described herein. In at least one embodiment, processor 1602 is a central processing unit (CPU), such as described above in conjunction with Figure 8 In at least one embodiment ( Figure 16 ), one or more additional processors are used in conjunction with processor 1602 to execute one or more commands to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 1604 using techniques such as those described herein.
[0214] In at least one embodiment, the graphics processor 1604 is a single core processor, a multi-core processor, a graphics processor, a parallel processor, a general purpose graphics processor, and / or some other graphics processor, such as those described herein. In at least one embodiment, the graphics processor 1604 is a graphics processor, such as described above in conjunction with Figure 8 In at least one embodiment ( Figure 16 ), one or more additional graphics processors are used in conjunction with processor 1602 and / or graphics processor 1604 to execute one or more commands to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels being executed using said context on graphics processor 1604 using techniques such as those described herein.
[0215] In at least one embodiment, application 1606 is a program such as that described herein in conjunction with at least Figure 15 In at least one embodiment, application 1606 specifies one or more commands to be executed by processor 1602 to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels that are executing using the context on graphics processor 1604, as described herein. In at least one embodiment, application 1606 executes one or more APIs, including but not limited to create context API 902, set device context flags API 1002, get current context flags API 1102, get device context flags API 1202, and / or set current context flags API 1302, to execute one or more commands to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels that are executing using the context on graphics processor 1604, as described herein.
[0216] In at least one embodiment, application 1606 specifies one or more commands to be executed by processor 1602 to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 1604 for execution by CUDA library 1608. In at least one embodiment, CUDA library 1608 is a library such as described herein in conjunction with at least Figure 36 Libraries such as library 3603 described.
[0217] In at least one embodiment, application 1606 specifies one or more commands to be executed by processor 1602 to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 1604 for execution by CUDA runtime 1610. In at least one embodiment, CUDA runtime 1610 is a processor such as described herein in conjunction with at least one embodiment of the present invention. Figure 36 In at least one embodiment, the CUDA library 1608 specifies one or more commands to be executed by the CUDA runtime 1610 to manage the context of the graphics processor 1604 and to manage memory operation dependencies of kernels that are being executed using the context on the graphics processor 1604. In at least one embodiment, the CUDA library 1608 specifies one or more commands to be executed by the CUDA runtime 1610 to use one or more runtime APIs (such as those described herein in conjunction with at least Figure 15The runtime API 1508 described herein manages the context of the graphics processor 1604 and one or more commands that manage memory operation dependencies of kernels that are executing using the context on the graphics processor 1604.
[0218] In at least one embodiment, application 1606 specifies one or more commands to be executed by processor 1602 to manage the context of graphics processor 1604 and to manage memory operation dependencies of kernels being executed using the context on graphics processor 1604 for execution by CUDA driver 1612. In at least one embodiment, CUDA driver 1612 is a processor such as described herein in conjunction with at least one embodiment of the present invention. Figure 36 In at least one embodiment, the CUDA runtime 1610 specifies one or more commands to be executed by the CUDA driver 1612 to manage the context of the graphics processor 1604 and to manage memory operation dependencies of kernels being executed using the context on the graphics processor 1604. In at least one embodiment, the CUDA runtime 1610 specifies one or more commands to be executed by the CUDA driver 1612 to use one or more driver APIs (such as those described in at least one embodiment in conjunction with Figure 15 The driver API 1512 described herein manages the context of the graphics processor 1604 and one or more commands that manage memory operation dependencies of kernels that are executing using the context on the graphics processor 1604.
[0219] In at least one embodiment, CUDA driver 1612 specifies one or more commands to be executed by graphics processor 1604 to manage the context of graphics processor 1604 and manage memory operation dependencies of kernels being executed using the context on graphics processor 1604, as described herein.
[0220] In the following description, numerous specific details are set forth in order to provide a more thorough understanding of at least one embodiment. However, it will be apparent to one skilled in the art that the present invention can be practiced without one or more of these specific details.
[0221] Data Center
[0222] Figure 17 An example data center 1700 is shown in accordance with at least one embodiment. In at least one embodiment, the data center 1700 includes, but is not limited to, a data center infrastructure layer 1710, a framework layer 1720, a software layer 1730, and an application layer 1740.
[0223] In at least one embodiment, Figure 17As shown, the data center infrastructure layer 1710 may include a resource coordinator 1712, grouped computing resources 1714, and node computing resources ("node CRs") 1716(1)-1716(N), where "N" represents any complete positive integer. In at least one embodiment, the node CRs 1716(1)-1716(N) may include, but are not limited to, any number of central processing units ("CPUs") or other processors (including accelerators, field programmable gate arrays ("FPGAs"), data processing units ("DPUs") in network devices, graphics processors, etc.), memory devices (e.g., dynamic read-only memories), storage devices (e.g., solid-state drives or disk drives), network input / output ("NW I / O") devices, network switches, virtual machines ("VMs"), power modules and cooling modules, etc. In at least one embodiment, one or more of the node CRs 1716(1)-1716(N) may be servers having one or more of the above-mentioned computing resources.
[0224] In at least one embodiment, the grouped computing resources 1714 may include separate groups of node CRs housed in one or more racks (not shown), or many racks (also not shown) housed in data centers at various geographic locations. The separate groups of node CRs within the grouped computing resources 1714 may include computing, network, memory, or storage resources that can be configured or allocated to support groupings of one or more workloads. In at least one embodiment, several node CRs including CPUs or processors may be grouped in one or more racks to provide computing resources to support one or more workloads. In at least one embodiment, one or more racks may also include any number of power modules, cooling modules, and network switches, in any combination.
[0225] In at least one embodiment, resource coordinator 1712 may configure or otherwise control one or more nodes CR 1716(1)-1716(N) and / or grouped computing resources 1714. In at least one embodiment, resource coordinator 1712 may comprise a software design infrastructure ("SDI") management entity for data center 1700. In at least one embodiment, resource coordinator 1712 may comprise hardware, software, or some combination thereof.
[0226] In at least one embodiment, Figure 17As shown, framework layer 1720 includes, but is not limited to, a job scheduler 1732, a configuration manager 1734, a resource manager 1736, and a distributed file system 1738. In at least one embodiment, framework layer 1720 may include a framework that supports software 1752 of software layer 1730 and / or one or more applications 1742 of application layer 1740. In at least one embodiment, software 1752 or applications 1742 may respectively include web-based service software or applications, such as those provided by Amazon Web Services, Google Cloud, and Microsoft Azure. In at least one embodiment, framework layer 1720 may include, but is not limited to, a free and open source software web application framework, such as Apache Spark™ (hereinafter referred to as "Spark"), which may utilize distributed file system 1738 for large-scale data processing (e.g., "big data"). In at least one embodiment, job scheduler 1732 may include a Spark driver to facilitate scheduling of workloads supported by the various layers of data center 1700. In at least one embodiment, a configuration manager 1734 can be capable of configuring different layers, such as a software layer 1730 and a framework layer 1720 including Spark and a distributed file system 1738 for supporting large-scale data processing. In at least one embodiment, a resource manager 1736 can manage clustered or grouped computing resources mapped to or allocated to support the distributed file system 1738 and the job scheduler 1732. In at least one embodiment, the clustered or grouped computing resources can include grouped computing resources 1714 on the data center infrastructure layer 1710. In at least one embodiment, the resource manager 1736 can coordinate with the resource coordinator 1712 to manage these mapped or allocated computing resources.
[0227] In at least one embodiment, the software 1752 included in the software layer 1730 may include software used by at least a portion of the node CRs 1716(1)-1716(N), the grouped computing resources 1714, and / or the distributed file system 1738 of the framework layer 1720. The one or more types of software may include, but are not limited to, Internet web page search software, email virus scanning software, database software, and streaming video content software.
[0228] In at least one embodiment, the one or more applications 1742 included in the application layer 1740 may include one or more types of applications used by at least a portion of the node CRs 1716(1)-1716(N), the grouped computing resources 1714, and / or the distributed file system 1738 of the framework layer 1720. The one or more types of applications may include, but are not limited to, CUDA applications.
[0229] In at least one embodiment, any of configuration manager 1734, resource manager 1736, and resource coordinator 1712 can implement any number and type of self-modification actions based on any number and type of data obtained in any technically feasible manner. In at least one embodiment, the self-modification actions can relieve the data center operator of data center 1700 from making potentially poor configuration decisions and can avoid underutilized and / or poorly performing portions of the data center.
[0230] In at least one embodiment, Figure 17 At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, at least one of the grouped computing resources 1714 and node CRs 1716(1-N) is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored. In at least one embodiment, at least one of the grouped computing resources 1714 and node CRs 1716(1-N) is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. In at least one embodiment, at least one of the grouped computing resources 1714 and node CRs 1716(1-N) is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is read. In at least one embodiment, at least one of the grouped computing resources 1714 and the node CRs 1716(1-N) is configured to perform operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, at least one of the grouped computing resources 1714 and the node CRs 1716(1-N) is configured to perform operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the grouped computing resources 1714 and at least one of the node CRs 1716(1-N) are used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0231] Computer-based systems
[0232] The following figures set forth, but are not limiting of, exemplary computer-based systems that can be used to implement at least one embodiment.
[0233] Figure 18A processing system 1800 is shown according to at least one embodiment. In at least one embodiment, system 1800 includes one or more processors 1802 and one or more graphics processors 1808, and can be a single-processor desktop system, a multi-processor workstation system, or a server system with a large number of processors 1802 or processor cores 1807. In at least one embodiment, processing system 1800 is a processing platform incorporated within a system-on-chip (SoC) integrated circuit for use in mobile, handheld, or embedded devices. In at least one embodiment, processor core 1807 is referred to as a computational unit or an arithmetic unit.
[0234] In at least one embodiment, the processing system 1800 may include or be incorporated into a server-based gaming platform, including a gaming console, a mobile gaming console, a handheld gaming console, or an online gaming console, including a gaming and media console. In at least one embodiment, the processing system 1800 is a mobile phone, a smart phone, a tablet computing device, or a mobile internet device. In at least one embodiment, the processing system 1800 may also include a device coupled to or integrated into a wearable device, such as a smartwatch wearable device, a smart glasses device, an augmented reality device, or a virtual reality device. In at least one embodiment, the processing system 1800 is a television or set-top box device having one or more processors 1802 and a graphical interface generated by one or more graphics processors 1808.
[0235] In at least one embodiment, one or more processors 1802 each include one or more processor cores 1807 to process instructions that, when executed, perform operations for system and user software. In at least one embodiment, each of the one or more processor cores 1807 is configured to process a specific instruction set 1809. In at least one embodiment, the instruction set 1809 can facilitate complex instruction set computing (CISC), reduced instruction set computing (RISC), or computing via very long instruction words (VLIW). In at least one embodiment, multiple processor cores 1807 can each process a different instruction set 1809, which can include instructions that facilitate emulating other instruction sets. In at least one embodiment, the processor cores 1807 can also include other processing devices, such as a digital signal processor (DSP).
[0236] In at least one embodiment, processor 1802 includes cache memory 1804. In at least one embodiment, processor 1802 can have a single internal cache or multiple levels of internal cache. In at least one embodiment, cache memory is shared among various components of processor 1802. In at least one embodiment, processor 1802 also uses an external cache (e.g., a level 3 (L3) cache or a last level cache (LLC)) (not shown), which can share this logic among processor cores 1807 using known cache coherence techniques. In at least one embodiment, processor 1802 also includes a register file 1806. Processor 1802 can include different types of registers (e.g., integer registers, floating point registers, status registers, and instruction pointer registers) for storing different types of data. In at least one embodiment, register file 1806 can include general purpose registers or other registers.
[0237] In at least one embodiment, one or more processors 1802 are coupled to one or more interface buses 1810 to transmit communication signals, such as address, data, or control signals, between the processors 1802 and other components in the system 1800. In at least one embodiment, the interface bus 1810 may be a processor bus, such as a version of a Direct Media Interface (DMI) bus. In at least one embodiment, the interface bus 1810 is not limited to a DMI bus and may include one or more peripheral component interconnect buses (e.g., "PCI," PCI Express), a memory bus, or other types of interface buses. In at least one embodiment, the processor 1802 includes an integrated memory controller 1816 and a platform controller hub 1830. In at least one embodiment, the memory controller 1816 facilitates communication between storage devices and other components of the processing system 1800, while the platform controller hub ("PCH") 1830 provides connections to input / output ("I / O") devices via a local I / O bus.
[0238] In at least one embodiment, storage device 1820 may be a dynamic random access memory (DRAM) device, a static random access memory (SRAM) device, a flash memory device, a phase change memory device, or other suitable memory device for use as processor memory. In at least one embodiment, storage device 1820 may be used as system memory for processing system 1800 to store data 1822 and instructions 1821 for use when one or more processors 1802 execute applications or processes. In at least one embodiment, memory controller 1816 is also coupled to an optional external graphics processor 1812, which may communicate with one or more graphics processors 1808 in processor 1802 to perform graphics and media operations. In at least one embodiment, display device 1811 may be connected to processor 1802. In at least one embodiment, display device 1811 may include one or more internal display devices, such as in a mobile electronic device or portable computer device, or an external display device connected via a display interface (e.g., DisplayPort). In at least one embodiment, the display device 1811 may include a head-mounted display (“HMD”), such as a stereoscopic display device used in virtual reality (“VR”) applications or augmented reality (“AR”) applications.
[0239] In at least one embodiment, the platform controller hub 1830 enables peripheral devices to connect to the storage device 1820 and the processor 1802 via a high-speed I / O bus. In at least one embodiment, the I / O peripherals include, but are not limited to, an audio controller 1846, a network controller 1834, a firmware interface 1828, a wireless transceiver 1826, a touch sensor 1825, and a data storage device 1824 (e.g., a hard drive, flash memory, etc.). In at least one embodiment, the data storage device 1824 can be connected via a memory interface (e.g., SATA) or via a peripheral bus, such as a peripheral component interconnect bus (e.g., PCI, PCIe). In at least one embodiment, the touch sensor 1825 can include a touch screen sensor, a pressure sensor, or a fingerprint sensor. In at least one embodiment, the wireless transceiver 1826 can be a Wi-Fi transceiver, a Bluetooth transceiver, or a mobile network transceiver, such as a 3G, 4G, or Long Term Evolution (LTE) transceiver. In at least one embodiment, the firmware interface 1828 enables communication with the system firmware and can be, for example, a unified extensible firmware interface (UEFI). In at least one embodiment, a network controller 1834 can enable network connectivity to a wired network. In at least one embodiment, a high-performance network controller (not shown) is coupled to the interface bus 1810. In at least one embodiment, the audio controller 1846 is a multi-channel high-definition audio controller. In at least one embodiment, the processing system 1800 includes an optional legacy I / O controller 1840 for coupling legacy (e.g., Personal System 2 (PS / 2)) devices to the processing system 1800. In at least one embodiment, the platform controller hub 1830 can also be connected to one or more universal serial bus (USB) controllers 1842 that connect input devices such as a keyboard and mouse 1843 combination, a camera 1844, or other USB input devices.
[0240] In at least one embodiment, instances of memory controller 1816 and platform controller hub 1830 may be integrated into a discrete external graphics processor, such as external graphics processor 1812. In at least one embodiment, platform controller hub 1830 and / or memory controller 1816 may be external to one or more processors 1802. For example, in at least one embodiment, processing system 1800 may include external memory controller 1816 and platform controller hub 1830, which may be configured as a memory controller hub and a peripheral controller hub in a system chipset that communicates with processor 1802.
[0241] In at least one embodiment, Figure 18 At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be executed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be executed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one of the one or more processors 1802 or the external graphics processor 1812 is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0242] Figure 19A computer system 1900 is shown in accordance with at least one embodiment. In at least one embodiment, the computer system 1900 can be a system of interconnected devices and components, a SOC, or some combination thereof. In at least one embodiment, the computer system 1900 is formed by a processor 1902, which can include an execution unit for executing instructions. In at least one embodiment, the computer system 1900 can include, but is not limited to, components such as the processor 1902, which employs an execution unit including logic to execute algorithms for processing data. In at least one embodiment, the computer system 1900 can include a processor such as the Intel® processor available from Intel Corporation of Santa Clara, California. Processor family, XeonTM, XScaleTM and / or StrongARMTM, Core TM or Nervana TM microprocessor, although other systems (including PCs with other microprocessors, engineering workstations, set-top boxes, etc.) may also be used. In at least one embodiment, computer system 1900 may execute a version of the WINDOWS operating system available from Microsoft Corporation of Redmond, Wash., although other operating systems (e.g., UNIX and Linux), embedded software, and / or graphical user interfaces may also be used.
[0243] In at least one embodiment, computer system 1900 can be used in other devices, such as handheld devices and embedded applications. Some examples of handheld devices include cellular phones, Internet Protocol (IP) devices, digital cameras, personal digital assistants ("PDAs"), and handheld PCs. In at least one embodiment, embedded applications can include microcontrollers, digital signal processors ("DSPs"), SoCs, network computers ("NetPCs"), set-top boxes, network hubs, wide area network ("WAN") switches, or any other system that can execute one or more instructions according to at least one embodiment.
[0244] In at least one embodiment, computer system 1900 may include, but is not limited to, a processor 1902, which may include, but is not limited to, one or more execution units 1908, which may be configured to execute Compute Unified Device Architecture ("CUDA") ( Developed by NVIDIA Corporation of Santa Clara, California) program. In at least one embodiment, a CUDA program is at least a portion of a software application written in the CUDA programming language. In at least one embodiment, computer system 1900 is a single-processor desktop or server system. In at least one embodiment, computer system 1900 may be a multi-processor system. In at least one embodiment, processor 1902 may include, but is not limited to, a CISC microprocessor, a RISC microprocessor, a VLIW microprocessor, a processor implementing a combination of instruction sets, or any other processor device, such as a digital signal processor. In at least one embodiment, processor 1902 may be coupled to a processor bus 1910 that may transmit data signals between processor 1902 and other components in computer system 1900.
[0245] In at least one embodiment, processor 1902 may include, but is not limited to, level 1 ("L1") internal cache memory ("cache") 1904. In at least one embodiment, processor 1902 may have a single internal cache or multiple levels of internal cache. In at least one embodiment, cache memory may reside external to processor 1902. In at least one embodiment, processor 1902 may include a combination of internal and external caches. In at least one embodiment, register file 1906 may store different types of data in various registers, including, but not limited to, integer registers, floating point registers, status registers, and an instruction pointer register.
[0246] In at least one embodiment, an execution unit 1908, including but not limited to logic for performing integer and floating-point operations, is also located in processor 1902. Processor 1902 may also include a microcode ("ucode") read-only memory ("ROM") for storing microcode for certain macroinstructions. In at least one embodiment, execution unit 1908 may include logic for processing a packed instruction set 1909. In at least one embodiment, by including the packed instruction set 1909 in the instruction set of the general-purpose processor 1902, along with associated circuitry to execute the instructions, operations used by many multimedia applications may be performed using packed data in the general-purpose processor 1902. In at least one embodiment, many multimedia applications may be executed faster and more efficiently by using the full width of the processor's data bus to perform operations on the packed data, which may eliminate the need to transfer smaller units of data across the processor's data bus to perform one or more operations on one data element at a time.
[0247] In at least one embodiment, execution unit 1908 may also be used in a microcontroller, embedded processor, graphics device, DSP, or other types of logic circuits. In at least one embodiment, computer system 1900 may include, but is not limited to, memory 1920. In at least one embodiment, memory 1920 may be implemented as a DRAM device, an SRAM device, a flash memory device, or other storage device. Memory 1920 may store instructions 1919 and / or data 1921 represented by data signals that may be executed by processor 1902.
[0248] In at least one embodiment, a system logic chip can be coupled to the processor bus 1910 and the memory 1920. In at least one embodiment, the system logic chip can include, but is not limited to, a memory controller hub ("MCH") 1916, and the processor 1902 can communicate with the MCH 1916 via the processor bus 1910. In at least one embodiment, the MCH 1916 can provide a high-bandwidth memory path 1918 to the memory 1920 for instruction and data storage, as well as for storage of graphics commands, data, and textures. In at least one embodiment, the MCH 1916 can initiate data signals between the processor 1902, the memory 1920, and other components in the computer system 1900, and bridge data signals between the processor bus 1910, the memory 1920, and the system I / O 1922. In at least one embodiment, the system logic chip can provide a graphics port for coupling to a graphics controller. In at least one embodiment, the MCH 1916 may be coupled to the memory 1920 via a high-bandwidth memory path 1918 , and the graphics / video card 1912 may be coupled to the MCH 1916 via an Accelerated Graphics Port (“AGP”) interconnect 1914 .
[0249] In at least one embodiment, the computer system 1900 may use the system I / O 1922 as a proprietary hub interface bus to couple the MCH 1916 to the I / O controller hub ("ICH") 1930. In at least one embodiment, the ICH 1930 may provide direct connectivity to certain I / O devices via a local I / O bus. In at least one embodiment, the local I / O bus may include, but is not limited to, a high-speed I / O bus used to connect peripheral devices to the memory 1920, chipset, and processor 1902. Examples may include, but are not limited to, an audio controller 1929, a firmware hub ("Flash BIOS") 1928, a wireless transceiver 1926, data storage 1924, a legacy I / O controller 1823 including user input 1925 and a keyboard interface, a serial expansion port 1927 (e.g., USB), and a network controller 1934. The data storage 1924 may include a hard drive, a floppy disk drive, a CD-ROM device, a flash memory device, or other mass storage device.
[0250] In at least one embodiment, Figure 19 A system comprising interconnected hardware devices or "chips" is shown. In at least one embodiment, Figure 19 An exemplary SoC may be shown. In at least one embodiment, Figure 19 The devices shown in can be interconnected with a proprietary interconnect, a standardized interconnect (e.g., PCIe), or some combination thereof. In at least one embodiment, one or more components of system 1900 are interconnected using a Compute Express Link (CXL) interconnect.
[0251] In at least one embodiment, Figure 19 At least one component shown or described is used to implement the combination Figures 1 to 16The techniques and / or functions described herein. In at least one embodiment, the processor 1902 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the processor 1902 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored in a master context data structure. In at least one embodiment, the processor 1902 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the processor 1902 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the processor 1902 is used to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, processor 1902 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0252] Figure 20 A system 2000 is shown in accordance with at least one embodiment. In at least one embodiment, the system 2000 is an electronic device that utilizes a processor 2010. In at least one embodiment, the system 2000 can be, for example, but not limited to, a notebook computer, a tower server, a rack server, a blade server, an edge device communicatively coupled to one or more on-premises or cloud service providers, a laptop computer, a desktop computer, a tablet computer, a mobile device, a phone, an embedded computer, or any other suitable electronic device.
[0253] In at least one embodiment, system 2000 may include, but is not limited to, a processor 2010 communicatively coupled to any suitable number or kind of components, peripherals, modules, or devices. In at least one embodiment, processor 2010 is coupled using a bus or interface, such as an I 2C bus, System Management Bus ("SMBus"), Low Pin Count (LPC) bus, Serial Peripheral Interface ("SPI"), High Definition Audio ("HDA") bus, Serial Advanced Technology Attachment ("SATA") bus, USB (Revisions 1, 2, 3), or Universal Asynchronous Receiver / Transmitter ("UART") bus. In at least one embodiment, Figure 20 A system is shown that includes interconnected hardware devices or "chips". In at least one embodiment, Figure 20 An exemplary SoC may be shown. In at least one embodiment, Figure 20 The devices shown in can be interconnected with proprietary interconnects, standardized interconnects (e.g., PCIe), or some combination thereof. In at least one embodiment, Figure 20 One or more components of the system are interconnected using Compute Express Link (CXL) interconnect lines.
[0254] In at least one embodiment, Figure 20 The components may include a display 2024, a touch screen 2025, a touchpad 2030, a near field communication unit ("NFC") 2045, a sensor hub 2040, a thermal sensor 2046, an express chipset ("EC") 2035, a trusted platform module ("TPM") 2038, a BIOS / firmware / flash memory ("BIOS, FW Flash") 2022, a DSP 2060, a solid-state disk ("SSD") or a hard disk drive ("HDD") 2020, a wireless local area network unit ("WLAN") 2050, a Bluetooth unit 2052, a wireless wide area network unit ("WWAN") 2056, a global positioning system (GPS) 2055, a camera ("USB 3.0 camera") 2054 (e.g., a USB 3.0 camera), or a low-power double data rate ("LPDDR") memory unit ("LPDDR3") 2015 implemented in, for example, the LPDDR3 standard. Each of these components may be implemented in any suitable manner.
[0255] In at least one embodiment, other components may be communicatively coupled to processor 2010 through the components discussed above. In at least one embodiment, accelerometer 2041, ambient light sensor (“ALS”) 2042, compass 2043, and gyroscope 2044 may be communicatively coupled to sensor hub 2040. In at least one embodiment, thermal sensor 2039, fan 2037, keyboard 2036, and touchpad 2030 may be communicatively coupled to EC 2035. In at least one embodiment, speaker 2063, earphone 2064, and microphone (“mic”) 2065 may be communicatively coupled to audio unit (“audio codec and class-D amplifier”) 2062, which in turn may be communicatively coupled to DSP 2060. In at least one embodiment, audio unit 2062 may include, for example, but not limited to, an audio codec / decoder (“codec”) and a class-D amplifier. In at least one embodiment, SIM card (“SIM”) 2057 may be communicatively coupled to WWAN unit 2056. In at least one embodiment, components such as the WLAN unit 2050 and the Bluetooth unit 2052 and the WWAN unit 2056 may be implemented as a next generation form factor (NGFF).
[0256] In at least one embodiment, Figure 20 At least one component shown or described is used to implement the combination Figures 1 to 16The techniques and / or functions described herein. In at least one embodiment, the processor 2010 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the processor 2010 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored in a master context data structure. In at least one embodiment, the processor 2010 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the processor 2010 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the processor 2010 is used to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, processor 2010 is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0257] Figure 21 An exemplary integrated circuit 2100 is shown in accordance with at least one embodiment. In at least one embodiment, the exemplary integrated circuit 2100 is a SoC, which may be manufactured using one or more IP cores. In at least one embodiment, the integrated circuit 2100 includes one or more application processors 2105 (e.g., CPU, DPU), at least one graphics processor 2110, and may additionally include an image processor 2115 and / or a video processor 2120, any of which may be modular IP cores. In at least one embodiment, the integrated circuit 2100 includes peripheral or bus logic including a USB controller 2125, a UART controller 2130, an SPI / SDIO controller 2135, and an I / O controller. 2 S / I 2C controller 2140. In at least one embodiment, the integrated circuit 2100 may include a display device 2145 coupled to one or more of a High Definition Multimedia Interface (HDMI) controller 2150 and a Mobile Industry Processor Interface (MIPI) display interface 2155. In at least one embodiment, storage may be provided by a flash memory subsystem 2160, including flash memory and a flash memory controller. In at least one embodiment, a memory interface may be provided via a memory controller 2165 for accessing SDRAM or SRAM memory devices. In at least one embodiment, some integrated circuits also include an embedded security engine 2170.
[0258] In at least one embodiment, Figure 21 At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, at least one of the application processor 2105, graphics processor 2110, image processor 2115, or video processor 2120 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the application processor 2105, graphics processor 2110, image processor 2115, or video processor 2120 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, at least one of the application processor 2105, graphics processor 2110, image processor 2115, or video processor 2120 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the application processor 2105, the graphics processor 2110, the image processor 2115, or the video processor 2120 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, at least one of the application processor 2105, the graphics processor 2110, the image processor 2115, or the video processor 2120 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one of the application processor 2105, the graphics processor 2110, the image processor 2115, or the video processor 2120 is operable to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0259] Figure 22A computing system 2200 is shown in accordance with at least one embodiment. In at least one embodiment, computing system 2200 includes a processing subsystem 2201 having one or more processors 2202 and system memory 2204 communicating via an interconnect path that may include a memory hub 2205. In at least one embodiment, memory hub 2205 may be a separate component within a chipset assembly or integrated within one or more processors 2202. In at least one embodiment, memory hub 2205 is coupled to an I / O subsystem 2211 via a communication link 2206. In at least one embodiment, I / O subsystem 2211 includes an I / O hub 2207, which enables computing system 2200 to receive input from one or more input devices 2208. In at least one embodiment, I / O hub 2207 may enable a display controller, included in one or more processors 2202, to provide output to one or more display devices 2210A. In at least one embodiment, the one or more display devices 2210A coupled to the I / O hub 2207 may include local, internal, or embedded display devices.
[0260] In at least one embodiment, the processing subsystem 2201 includes one or more parallel processors 2212 coupled to the memory hub 2205 via a bus or other communication link 2213. In at least one embodiment, the communication link 2213 can be one of many standard-based communication link technologies or protocols, such as, but not limited to, PCIe, or can be a vendor-specific communication interface or communication structure. In at least one embodiment, the one or more parallel processors 2212 form a parallel or vector processing system in a computational cluster that can include a large number of processing cores and / or processing clusters, such as multi-core processors or compute units. In at least one embodiment, the one or more parallel processors 2212 form a graphics processing subsystem that can output pixels to one of one or more display devices 2210A coupled via the I / O hub 2207. In at least one embodiment, the one or more parallel processors 2212 can also include a display controller and display interface (not shown) to enable direct connection to the one or more display devices 2210B.
[0261] In at least one embodiment, a system storage unit 2214 can be connected to the I / O hub 2207 to provide a storage mechanism for the computing system 2200. In at least one embodiment, an I / O switch 2216 can be used to provide an interface mechanism to enable connections between the I / O hub 2207 and other components, such as a network adapter 2218 and / or a wireless network adapter 2219 that can be integrated into the platform, as well as various other devices that can be added via one or more add-on devices 2220. In at least one embodiment, the network adapter 2218 can be an Ethernet adapter or another wired network adapter. In at least one embodiment, the wireless network adapter 2219 can include one or more of Wi-Fi, Bluetooth, NFC, or other network devices including one or more radios.
[0262] In at least one embodiment, computing system 2200 may include other components not explicitly shown, including USB or other port connections, optical storage drives, video capture devices, etc., which may also be connected to I / O hub 2207. Figure 22 The communication paths that interconnect the various components in the system can be implemented using any suitable protocol, such as a PCI (Peripheral Component Interconnect)-based protocol (e.g., PCIe), or other bus or point-to-point communication interfaces and / or protocols (e.g., NVLink high-speed interconnect or interconnect protocol).
[0263] In at least one embodiment, one or more parallel processors 2212 include circuits optimized for graphics and video processing (including, for example, video output circuitry) and constitute a graphics processing unit (GPU). In at least one embodiment, one or more parallel processors 2212 include circuits optimized for general-purpose processing. In at least one embodiment, the components of computing system 2200 can be integrated with one or more other system elements on a single integrated circuit. For example, in at least one embodiment, one or more parallel processors 2212, memory hub 2205, processor 2202, and I / O hub 2207 can be integrated into a system-on-chip (SoC) integrated circuit. In at least one embodiment, the components of computing system 2200 can be integrated into a single package to form a system-in-package (SIP) configuration. In at least one embodiment, at least a portion of the components of computing system 2200 can be integrated into a multi-chip module (MCM), which can be interconnected with other multi-chip modules to form a modular computing system. In at least one embodiment, the I / O subsystem 2211 and display device 2210B are omitted from computing system 2200.
[0264] In at least one embodiment, Figure 22 At least one component shown or described is used to implement the combination Figures 1 to 16 Techniques and / or functionality described herein. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one of the one or more processors 2202 or the one or more parallel processors 2212 is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0265] Processing system
[0266] The following figures illustrate, but are not limited to, exemplary processing systems that can be used to implement at least one embodiment.
[0267] Figure 23An accelerated processing unit ("APU") 2300 is shown in accordance with at least one embodiment. In at least one embodiment, the APU 2300 was developed by Advanced Micro Devices, Inc. of Santa Clara, California. In at least one embodiment, the APU 2300 can be configured to execute applications, such as CUDA programs. In at least one embodiment, the APU 2300 includes, but is not limited to, a core complex 2310, a graphics complex 2340, a fabric 2360, an I / O interface 2370, a memory controller 2380, a display controller 2392, and a multimedia engine 2394. In at least one embodiment, the APU 2300 can include, but is not limited to, any combination of any number of core complexes 2310, any number of graphics complexes 2340, any number of display controllers 2392, and any number of multimedia engines 2394. For purposes of illustration, multiple instances of similar objects are referred to herein by reference numerals, where the reference numeral identifies the object and a number in parentheses identifies the desired instance.
[0268] In at least one embodiment, core complex 2310 is a CPU, graphics complex 2340 is a GPU, and APU 2300 is a processing unit that is not limited to integrating 2310 and 2340 onto a single chip. In at least one embodiment, some tasks may be assigned to core complex 2310, while other tasks may be assigned to graphics complex 2340. In at least one embodiment, core complex 2310 is configured to execute primary control software associated with APU 2300, such as an operating system. In at least one embodiment, core complex 2310 is the main processor of APU 2300, controlling and coordinating the operations of the other processors. In at least one embodiment, core complex 2310 issues commands that control the operations of graphics complex 2340. In at least one embodiment, core complex 2310 may be configured to execute host executable code derived from CUDA source code, and graphics complex 2340 may be configured to execute device executable code derived from CUDA source code.
[0269] In at least one embodiment, core complex 2310 includes, but is not limited to, cores 2320(1)-2320(4) and L3 cache 2330. In at least one embodiment, core complex 2310 may include, but is not limited to, any number of cores 2320 and any combination of any number and type of caches. In at least one embodiment, cores 2320 are configured to execute instructions of a particular instruction set architecture ("ISA"). In at least one embodiment, each core 2320 is a CPU core. In at least one embodiment, cores 2320 are referred to as computational units or arithmetic units.
[0270] In at least one embodiment, each core 2320 includes, but is not limited to, a fetch / decode unit 2322, an integer execution engine 2324, a floating-point execution engine 2326, and an L2 cache 2328. In at least one embodiment, the fetch / decode unit 2322 fetches instructions, decodes these instructions, generates micro-ops, and dispatches individual micro-ops to the integer execution engine 2324 and the floating-point execution engine 2326. In at least one embodiment, the fetch / decode unit 2322 can simultaneously dispatch one micro-op to the integer execution engine 2324 and another micro-op to the floating-point execution engine 2326. In at least one embodiment, the integer execution engine 2324 performs, but is not limited to, integer and memory operations. In at least one embodiment, the floating-point engine 2326 performs, but is not limited to, floating-point and vector operations. In at least one embodiment, the fetch-decode unit 2322 dispatches micro-ops to a single execution engine that replaces both the integer execution engine 2324 and the floating-point execution engine 2326.
[0271] In at least one embodiment, each core 2320(i) can access an L2 cache 2328(i) included in the core 2320(i), where i is an integer representing a specific instance of the core 2320. In at least one embodiment, each core 2320 included in a core complex 2310(j) is connected to the other cores 2320 included in the core complex 2310(j) via an L3 cache 2330(j) included in the core complex 2310(j), where j is an integer representing a specific instance of the core complex 2310. In at least one embodiment, a core 2320 included in a core complex 2310(j) can access all L3 caches 2330(j) included in the core complex 2310(j), where j is an integer representing a specific instance of the core complex 2310. In at least one embodiment, the L3 cache 2330 can include, but is not limited to, any number of slices.
[0272] In at least one embodiment, graphics complex 2340 can be configured to perform computational operations in a highly parallel manner. In at least one embodiment, graphics complex 2340 is configured to perform graphics pipeline operations, such as draw commands, pixel operations, geometry calculations, and other operations associated with rendering an image to a display. In at least one embodiment, graphics complex 2340 is configured to perform operations that are not graphics-related. In at least one embodiment, graphics complex 2340 is configured to perform both graphics-related operations and graphics-independent operations.
[0273] In at least one embodiment, graphics complex 2340 includes, but is not limited to, any number of compute units 2350 and L2 cache 2342. In at least one embodiment, compute units 2350 share L2 cache 2342. In at least one embodiment, L2 cache 2342 is partitioned. In at least one embodiment, graphics complex 2340 includes, but is not limited to, any number of compute units 2350 and any number (including zero) and type of cache. In at least one embodiment, graphics complex 2340 includes, but is not limited to, any amount of dedicated graphics hardware.
[0274] In at least one embodiment, each compute unit 2350 includes, but is not limited to, any number of SIMD units 2352 and shared memory 2354. In at least one embodiment, each SIMD unit 2352 implements a SIMD architecture and is configured to execute operations in parallel. In at least one embodiment, each compute unit 2350 can execute any number of thread blocks, but each thread block executes on a single compute unit 2350. In at least one embodiment, a thread block includes, but is not limited to, any number of threads of execution. In at least one embodiment, a workgroup is a thread block. In at least one embodiment, each SIMD unit 2352 executes a different warp. In at least one embodiment, a warp is a group of threads (e.g., 16 threads), where each thread in a warp belongs to a single thread block and is configured to process different data sets based on a single instruction set. In at least one embodiment, predication can be used to disable one or more threads in a warp. In at least one embodiment, a channel is a thread. In at least one embodiment, a work item is a thread. In at least one embodiment, a wavefront is a warp. In at least one embodiment, different wavefronts in a thread block can be synchronized and communicated via shared memory 2354.
[0275] In at least one embodiment, fabric 2360 is a system interconnect that facilitates data and control transfers across core complex 2310, graphics complex 2340, I / O interface 2370, memory controller 2380, display controller 2392, and multimedia engine 2394. In at least one embodiment, APU 2300 may include, in addition to or in lieu of fabric 2360, but is not limited to, any number and type of system interconnects that facilitate data and control transfers across any number and type of directly or indirectly linked components that may be internal or external to APU 2300. In at least one embodiment, I / O interface 2370 represents any number and type of I / O interfaces (e.g., PCI, PCI-Extended ("PCI-X"), PCIe, Gigabit Ethernet ("GBE"), USB, etc.). In at least one embodiment, various types of peripheral devices are coupled to I / O interface 2370. In at least one embodiment, peripheral devices coupled to I / O interface 2370 may include, but are not limited to, a keyboard, a mouse, a printer, a scanner, a joystick or other type of game controller, a media recording device, an external storage device, a network interface card, etc.
[0276] In at least one embodiment, display controller AMD92 displays images on one or more display devices, such as liquid crystal display (LCD) devices. In at least one embodiment, multimedia engine 2394 includes, but is not limited to, any number and type of multimedia-related circuits, such as video decoders, video encoders, image signal processors, and the like. In at least one embodiment, memory controller 2380 facilitates data transfer between APU 2300 and unified system memory 2390. In at least one embodiment, core complex 2310 and graphics complex 2340 share unified system memory 2390.
[0277] In at least one embodiment, the APU 2300 implements a memory subsystem, including, but not limited to, any number and type of memory controllers 2380 and memory devices that can be dedicated to a component or shared among multiple components (e.g., shared memory 2354). In at least one embodiment, the APU 2300 implements a cache subsystem, including, but not limited to, one or more cache memories (e.g., L2 cache 2328, L3 cache 2330, and L2 cache 2342), each of which can be private to a component or shared among any number of components (e.g., core 2320, core complex 2310, SIMD units 2352, compute units 2350, and graphics complex 2340).
[0278] In at least one embodiment, Figure 23At least one component shown or described is used to implement the combination Figures 1 to 16 Techniques and / or functionality described herein. In at least one embodiment, at least one element in core complex 2310 or graphics complex 2340 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one element in core complex 2310 or graphics complex 2340 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, at least one element in core complex 2310 or graphics complex 2340 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one element in core complex 2310 or graphics complex 2340 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, at least one element in core complex 2310 or graphics complex 2340 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one element of core complex 2310 or graphics complex 2340 is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0279] Figure 24A CPU 2400 is shown according to at least one embodiment. In at least one embodiment, the CPU 2400 is developed by Advanced Micro Devices, Inc. of Santa Clara, California. In at least one embodiment, the CPU 2400 can be configured to execute application programs. In at least one embodiment, the CPU 2400 is configured to execute host control software, such as an operating system. In at least one embodiment, the CPU 2400 issues commands to control the operation of an external GPU (not shown). In at least one embodiment, the CPU 2400 can be configured to execute host executable code derived from CUDA source code, and the external GPU can be configured to execute device executable code derived from such CUDA source code. In at least one embodiment, the CPU 2400 includes, but is not limited to, any number of core complexes 2410, fabric 2460, I / O interfaces 2470, and memory controllers 2480.
[0280] In at least one embodiment, core complex 2410 includes, but is not limited to, cores 2420(1)-2420(4) and L3 cache 2430. In at least one embodiment, core complex 2410 may include, but is not limited to, any number of cores 2420 and any combination of any number and type of caches. In at least one embodiment, cores 2420 are configured to execute instructions of a specific ISA. In at least one embodiment, each core 2420 is a CPU core.
[0281] In at least one embodiment, each core 2420 includes, but is not limited to, a fetch / decode unit 2422, an integer execution engine 2424, a floating-point execution engine 2426, and an L2 cache 2428. In at least one embodiment, the fetch / decode unit 2422 fetches instructions, decodes these instructions, generates micro-ops, and dispatches individual micro-ops to the integer execution engine 2424 and the floating-point execution engine 2426. In at least one embodiment, the fetch / decode unit 2422 can simultaneously dispatch one micro-op to the integer execution engine 2424 and another micro-op to the floating-point execution engine 2426. In at least one embodiment, the integer execution engine 2424 performs, but is not limited to, integer and memory operations. In at least one embodiment, the floating-point engine 2426 performs, but is not limited to, floating-point and vector operations. In at least one embodiment, the fetch-decode unit 2422 dispatches micro-ops to a single execution engine that replaces both the integer execution engine 2424 and the floating-point execution engine 2426.
[0282] In at least one embodiment, each core 2420(i) can access an L2 cache 2428(i) included in the core 2420(i), where i is an integer representing a specific instance of the core 2420. In at least one embodiment, each core 2420 included in a core complex 2410(j) is connected to the other cores 2420 in the core complex 2410(j) via an L3 cache 2430(j) included in the core complex 2410(j), where j is an integer representing a specific instance of the core complex 2410. In at least one embodiment, a core 2420 included in a core complex 2410(j) can access all L3 caches 2430(j) included in the core complex 2410(j), where j is an integer representing a specific instance of the core complex 2410. In at least one embodiment, the L3 cache 2430 can include, but is not limited to, any number of slices.
[0283] In at least one embodiment, fabric 2460 is a system interconnect that facilitates data and control transfers across core complexes 2410(1)-2410(N) (where N is an integer greater than zero), I / O interfaces 2470, and memory controller 2480. In at least one embodiment, CPU 2400 may include, in addition to or in lieu of fabric 2460, but is not limited to, any number and type of system interconnects that facilitate data and control transfers across any number and type of directly or indirectly linked components that may be internal or external to CPU 2400. In at least one embodiment, I / O interfaces 2470 represent any number and type of I / O interfaces (e.g., PCI, PCI-X, PCIe, GBE, USB, etc.). In at least one embodiment, various types of peripherals are coupled to I / O interfaces 2470. In at least one embodiment, peripherals coupled to I / O interfaces 2470 may include, but are not limited to, a display, a keyboard, a mouse, a printer, a scanner, a joystick or other type of game controller, a media recording device, an external storage device, a network interface card, and the like.
[0284] In at least one embodiment, a memory controller 2480 facilitates data transfers between the CPU 2400 and system memory 2490. In at least one embodiment, the core complex 2410 and the graphics complex 2440 share system memory 2490. In at least one embodiment, the CPU 2400 implements a memory subsystem that includes, but is not limited to, any number and type of memory controllers 2480 and memory devices that can be dedicated to a component or shared among multiple components. In at least one embodiment, the CPU 2400 implements a cache subsystem that includes, but is not limited to, one or more cache memories (e.g., an L2 cache 2428 and an L3 cache 2430), each of which can be private to a component or shared among any number of components (e.g., a core 2420 and a core complex 2410).
[0285] In at least one embodiment, Figure 24 At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, at least one element of the core complex 2410(1)-2410(N) is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one element of the core complex 2410(1)-2410(N) is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, at least one element of the core complex 2410(1)-2410(N) is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one element of core complexes 2410(1)-2410(N) is operable to perform operations described herein, such as executing an application programming interface (API) to cause reading from a master context data structure an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one element of core complexes 2410(1)-2410(N) is operable to perform operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one element of core complexes 2410(1)-2410(N) is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0286] Figure 25An exemplary accelerator integrated slice 2590 according to at least one embodiment is shown. As used herein, a "slice" includes a specified portion of the processing resources of an accelerator integrated circuit. In at least one embodiment, the accelerator integrated circuit provides cache management, memory access, environment management, and interrupt management services on behalf of multiple graphics processing engines in multiple graphics acceleration modules. The graphics processing engines may each include a separate GPU. Optionally, the graphics processing engines may include different types of graphics processing engines within the GPU, such as a graphics execution unit, a media processing engine (e.g., a video encoder / decoder), a sampler, and a blit engine. In at least one embodiment, the graphics acceleration module may be a GPU having multiple graphics processing engines. In at least one embodiment, the graphics processing engines may be individual GPUs integrated on a common package, line card, or chip.
[0287] The application effective address space 2582 within system memory 2514 stores process elements 2583. In one embodiment, process elements 2583 are stored in response to GPU calls 2581 from application 2580 executing on processor 2507. Process elements 2583 contain the processing state of the corresponding application 2580. A work descriptor (WD) 2584 contained in process element 2583 may be a single job requested by the application or may contain a pointer to a job queue. In at least one embodiment, WD 2584 is a pointer to a job request queue in the application effective address space 2582.
[0288] Graphics acceleration module 2546 and / or each graphics processing engine can be shared by all or part of the processes in the system.In at least one embodiment, an infrastructure for establishing a processing state and sending WD 2584 to graphics acceleration module 2546 to start a job in a virtualized environment can be included.
[0289] In at least one embodiment, a dedicated process programming model is implemented. In this model, a single process owns a graphics acceleration module 2546 or an individual graphics processing engine. Because the graphics acceleration module 2546 is owned by a single process, the hypervisor initializes the accelerator integrated circuit for the owning partition, and the operating system initializes the accelerator integrated circuit for the owning partition when the graphics acceleration module 2546 is allocated.
[0290] In operation, the WD fetch unit 2591 in the accelerator integrated slice 2590 fetches the next WD 2584, which includes an indication of work to be performed by one or more graphics processing engines of the graphics acceleration module 2546. Data from the WD 2584 can be stored in registers 2545 for use by the memory management unit (MMU) 2539, the interrupt management circuit 2547, and / or the context management circuit 2548, as shown. For example, one embodiment of the MMU 2539 includes segment / page roaming circuitry for accessing the segment / page tables 2586 within the OS virtual address space 2585. The interrupt management circuit 2547 can process interrupt events (INT) 2592 received from the graphics acceleration module 2546. When executing graphics operations, the effective address 2593 generated by the graphics processing engine is converted into a real address by the MMU 2539.
[0291] In one embodiment, the same register set 2545 is replicated for each graphics processing engine and / or graphics acceleration module 2546 and can be initialized by the hypervisor or operating system. Each of these replicated registers can be included in the accelerator integration slice 2590. Table 1 shows exemplary registers that can be initialized by the hypervisor.
[0292] Table 1 - Registers initialized by the hypervisor
[0293] 1 Slice Control Register 2 Real address (RA) plan processing area pointer 3 Permission mask override register 4 Interrupt vector table input offset 5 Interrupt vector table entry restriction 6 Status Register 7 Logical partition ID 8 Real Address (RA) Hypervisor Accelerator Utilization Record Pointer 9 Storage Description Register
[0294] Example registers that may be initialized by the operating system are shown in Table 2.
[0295] Table 2 - Operating System Initialization Registers
[0296] 1 Process and thread identification 2 Effective Address (EA) environment save / restore pointer 3 Virtual Address (VA) Accelerator Utilization Record Pointer 4 Virtual Address (VA) stores the segment table pointer 5 Permission blocking 6 Job Descriptor
[0297] In one embodiment, each WD 2584 is specific to a particular graphics acceleration module 2546 and / or a particular graphics processing engine. It contains all the information the graphics processing engine needs to do its work or work, or it can be a pointer to a memory location where the application has set up a command queue for work to be done.
[0298] In at least one embodiment, Figure 25 At least one component shown or described is used to implement the combination Figures 1 to 16The techniques and / or functions described herein. In at least one embodiment, the processor 2507 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the processor 2507 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored in a master context data structure. In at least one embodiment, the processor 2507 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the processor 2507 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the processor 2507 is used to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, processor 2507 is used to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600 and / or other systems, methods, or operations described herein.
[0299] Figure 26A and Figure 26B An exemplary graphics processor according to at least one embodiment of the present disclosure is shown. In at least one embodiment, any exemplary graphics processor can be manufactured using one or more IP cores. In addition to the illustrated diagram, in at least one embodiment, other logic and circuitry can be included, including additional graphics processors / cores, peripheral interface controllers, or general-purpose processor cores. In at least one embodiment, the exemplary graphics processor is used within a SoC.
[0300] Figure 26A An exemplary graphics processor 2610 of a SoC integrated circuit is shown, which may be manufactured using one or more IP cores, in accordance with at least one embodiment. Figure 26BAn additional exemplary graphics processor 2640 of a SoC integrated circuit is shown, which may be manufactured using one or more IP cores, in accordance with at least one embodiment. Figure 26A The graphics processor 2610 is a low power graphics processor core. In at least one embodiment, Figure 26B The graphics processor 2640 is a higher performance graphics processor core. In at least one embodiment, each graphics processor 2610, 2640 can be Figure 21 A variant of the graphics processor 2110.
[0301] In at least one embodiment, the graphics processor 2610 includes a vertex processor 2605 and one or more fragment processors 2615A-2615N (e.g., 2615A, 2615B, 2615C, 2615D through 2615N-1 and 2615N). In at least one embodiment, the graphics processor 2610 can execute different shader programs via separate logic, such that the vertex processor 2605 is optimized to perform operations for the vertex shader program, while one or more fragment processors 2615A-2615N perform fragment (e.g., pixel) shading operations for the fragment or pixel or shader program. In at least one embodiment, the vertex processor 2605 performs the vertex processing stage of the 3D graphics pipeline and generates primitives and vertex data. In at least one embodiment, the fragment processors 2615A-2615N use the primitives and vertex data generated by the vertex processor 2605 to generate a frame buffer for display on a display device. In at least one embodiment, fragment processors 2615A-2615N are optimized to execute fragment shader programs as provided in the OpenGL API, which can be used to perform similar operations as pixel shader programs provided in the Direct 3D API.
[0302] In at least one embodiment, the graphics processor 2610 additionally includes one or more MMUs 2620A-2620B, caches 2625A-2625B, and circuit interconnects 2630A-2630B. In at least one embodiment, the one or more MMUs 2620A-2620B provide a mapping of virtual to physical addresses for the graphics processor 2610, including for the vertex processor 2605 and / or the fragment processors 2615A-2615N, which may reference vertex or image / texture data stored in memory, in addition to vertex or image / texture data stored in the one or more caches 2625A-2625B. In at least one embodiment, the one or more MMUs 2620A-2620B may synchronize with other MMUs within the system, including with Figure 21One or more MMUs associated with one or more application processors 2105, image processor 2115, and / or video processor 2120 enable each processor 2105-2120 to participate in a shared or unified virtual memory system. In at least one embodiment, one or more circuit interconnects 2630A-2630B enable the graphics processor 2610 to connect to other IP cores within the SoC via an internal bus of the SoC or via a direct connection.
[0303] In at least one embodiment, graphics processor 2640 includes Figure 26A One or more MMUs 2620A-2620B, caches 2625A-2625B, and circuit interconnects 2630A-2630B of the graphics processor 2610. In at least one embodiment, the graphics processor 2640 includes one or more shader cores 2655A-2655N (e.g., 2655A, 2655B, 2655C, 2655D, 2655E, 2655F, through 2655N-1 and 2655N) that provide a unified shader core architecture in which a single core or type or core can execute all types of programmable shader code, including shader program code for implementing vertex shaders, fragment shaders, and / or compute shaders. In at least one embodiment, the number of shader cores can vary. In at least one embodiment, the graphics processor 2640 includes an inter-core task manager 2645 that acts as a thread dispatcher to dispatch execution threads to one or more shader cores 2655A-2655N and a tiling unit 2658 to accelerate tile-based rendering operations in which rendering operations of a scene are subdivided in image space, for example, to exploit local spatial coherence within a scene or to optimize the use of internal caches.
[0304] In at least one embodiment, Figure 26A and Figure 26B At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, at least one of graphics processor 2610 or graphics processor 2640 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of graphics processor 2610 or graphics processor 2640 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, at least one of graphics processor 2610 or graphics processor 2640 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, at least one of graphics processor 2610 or graphics processor 2640 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a master context data structure. In at least one embodiment, at least one of the graphics processor 2610 or the graphics processor 2640 is configured to perform operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, at least one of the graphics processor 2610 or the graphics processor 2640 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0305] Figure 27A FIG27 shows a graphics core 2700 according to at least one embodiment. In at least one embodiment, the graphics core 2700 may include Figure 21 In at least one embodiment, the graphics core 2700 may be Figure 26B2655N. In at least one embodiment, the graphics core 2700 includes a shared instruction cache 2702, texture units 2718, and cache / shared memory 2720, which are common to the execution resources within the graphics core 2700. In at least one embodiment, the graphics core 2700 may include multiple slices 2701A-2701N or partitions of each core, and the graphics processor may include multiple instances of the graphics core 2700. The slices 2701A-2701N may include support logic including local instruction caches 2704A-2704N, thread schedulers 2706A-2706N, thread dispatchers 2708A-2708N, and a set of registers 2710A-2710N. In at least one embodiment, slices 2701A-2701N may include a set of additional function units (AFUs) 2712A-2712N, floating point units (FPUs) 2714A-2714N, integer arithmetic logic units (ALUs) 2716A-2716N, address calculation units (ACUs) 2713A-2713N, double precision floating point units (DPFPUs) 2715A-2715N, and matrix processing units (MPUs) 2717A-2717N. In at least one embodiment, graphics core 2700 is referred to as a compute unit or arithmetic unit.
[0306] In one embodiment, the FPUs 2714A-2714N can perform single-precision (32-bit) and half-precision (16-bit) floating-point operations, while the DPFPUs 2715A-2715N can perform double-precision (64-bit) floating-point operations. In at least one embodiment, the ALUs 2716A-2716N can perform variable-precision integer operations with 8-bit, 16-bit, and 32-bit precision, and can be configured for mixed-precision operations. In at least one embodiment, the MPUs 2717A-2717N can also be configured for mixed-precision matrix operations, including half-precision floating-point operations and 8-bit integer operations. In at least one embodiment, the MPUs 2717A-2717N can perform various matrix operations to accelerate CUDA programs, including enabling support for accelerated general matrix-to-matrix multiplication (GEMM). In at least one embodiment, the AFUs 2712A-2712N can perform additional logical operations not supported by the floating-point or integer units, including trigonometric operations (e.g., Sine, Cosine, etc.).
[0307] In at least one embodiment, Figure 27A At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, the graphics core 2700 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the graphics core 2700 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored within a master context data structure. In at least one embodiment, the graphics core 2700 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the graphics core 2700 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the graphics core 2700 is configured to perform the operations described herein, such as executing an application programming interface (API) to update context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the graphics core 2700 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0308] Figure 27BA general purpose graphics processing unit (GPGPU) 2730 is shown in at least one embodiment. In at least one embodiment, GPGPU 2730 is highly parallel and suitable for deployment on a multi-chip module. In at least one embodiment, GPGPU 2730 can be configured to enable highly parallel computational operations to be performed by an array of GPUs. In at least one embodiment, GPGPU 2730 can be directly linked to other instances of GPGPU 2730 to create a multi-GPU cluster to improve execution time for CUDA programs. In at least one embodiment, GPGPU 2730 includes a host interface 2732 to enable connection to a host processor. In at least one embodiment, host interface 2732 is a PCIe interface. In at least one embodiment, host interface 2732 can be a vendor-specific communication interface or communication structure. In at least one embodiment, GPGPU 2730 receives commands from the host processor and dispatches execution threads associated with those commands to a set of compute clusters 2736A-2736H using a global scheduler 2734. In at least one embodiment, the compute clusters 2736A-2736H share a cache memory 2738. In at least one embodiment, the cache memory 2738 can serve as a higher level cache for the cache memories within the compute clusters 2736A-2736H.
[0309] In at least one embodiment, GPGPU 2730 includes memory 2744A-2744B coupled to compute clusters 2736A-2736H via a set of memory controllers 2742A-2742B. In at least one embodiment, memory 2744A-2744B may include various types of memory devices, including dynamic random access memory (DRAM) or graphics random access memory, such as synchronous graphics random access memory (SGRAM), including graphics double data rate (GDDR) memory.
[0310] In at least one embodiment, computing clusters 2736A-2736H each include a set of graphics cores, such as Figure 27A The graphics core 2700, which may include multiple types of integer and floating-point logic units, can perform computational operations at various precisions, including computations suitable for use with CUDA programs. For example, in at least one embodiment, at least a subset of the floating-point units in each compute cluster 2736A-2736H can be configured to perform 16-bit or 32-bit floating-point operations, while a different subset of the floating-point units can be configured to perform 64-bit floating-point operations.
[0311] In at least one embodiment, multiple instances of GPGPU 2730 can be configured to operate as a compute cluster. Compute clusters 2736A-2736H can implement any technically feasible communication technology for synchronization and data exchange. In at least one embodiment, multiple instances of GPGPU 2730 communicate via host interface 2732. In at least one embodiment, GPGPU 2730 includes an I / O hub 2739 that couples GPGPU 2730 to GPU link 2740, enabling direct connection to other instances of GPGPU 2730. In at least one embodiment, GPU link 2740 is coupled to a dedicated GPU-to-GPU bridge that enables communication and synchronization between multiple instances of GPGPU 2730. In at least one embodiment, GPU link 2740 is coupled to a high-speed interconnect to send and receive data to other GPGPUs or parallel processors. In at least one embodiment, multiple instances of GPGPU 2730 are located in separate data processing systems and communicate via a network device accessible via host interface 2732. In at least one embodiment, GPU link 2740 may be configured to connect to a host processor, in addition to or in place of host interface 2732. In at least one embodiment, GPGPU 2730 may be configured to execute CUDA programs.
[0312] In at least one embodiment, Figure 27B At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, the GPGPU 2730 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the GPGPU 2730 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, the GPGPU 2730 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the GPGPU 2730 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a master context data structure. In at least one embodiment, the GPGPU 2730 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the GPGPU 2730 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0313] Figure 28A A parallel processor 2800 in accordance with at least one embodiment is shown. In at least one embodiment, the various components of the parallel processor 2800 may be implemented using one or more integrated circuit devices, such as a programmable processor, an application specific integrated circuit (ASIC), or an FPGA.
[0314] In at least one embodiment, parallel processor 2800 includes a parallel processing unit (PPU) 2802. In at least one embodiment, PPU 2802 includes an I / O unit (I / O) ...
[0315] In at least one embodiment, when host interface 2806 receives command buffers via I / O unit 2804, host interface 2806 can direct work operations to execute those commands to front end 2808. In at least one embodiment, front end 2808 is coupled to scheduler 2810, which is configured to dispatch commands or other work items to processing array 2812. In at least one embodiment, scheduler 2810 ensures that processing array 2812 is properly configured and in a valid state before dispatching tasks to processing array 2812. In at least one embodiment, scheduler 2810 is implemented by firmware logic executing on a microcontroller. In at least one embodiment, a microcontroller-implemented scheduler 2810 can be configured to perform complex scheduling and work dispatch operations at both coarse and fine granularity, thereby enabling fast preemption and context switching of threads executing on processing array 2812. In at least one embodiment, host software can authenticate workloads for scheduling on processing array 2812 through one of multiple graphics processing doorbells. In at least one embodiment, the workload may then be automatically distributed across the processing array 2812 by scheduler 2810 logic within a microcontroller that includes scheduler 2810 .
[0316] In at least one embodiment, the processing array 2812 can include up to "N" processing clusters (e.g., cluster 2814A, cluster 2814B, through cluster 2814N). In at least one embodiment, each cluster 2814A-2814N of the processing array 2812 can execute a large number of concurrent threads. In at least one embodiment, the scheduler 2810 can allocate work to the clusters 2814A-2814N of the processing array 2812 using various scheduling and / or work distribution algorithms, which can vary depending on the workload generated by each program or computation type. In at least one embodiment, scheduling can be handled dynamically by the scheduler 2810 or can be partially assisted by compiler logic during the compilation of program logic configured to be executed by the processing array 2812. In at least one embodiment, different clusters 2814A-2814N of the processing array 2812 can be assigned to process different types of programs or to perform different types of computations.
[0317] In at least one embodiment, the processing array 2812 can be configured to perform various types of parallel processing operations. In at least one embodiment, the processing array 2812 is configured to perform general-purpose parallel computing operations. For example, in at least one embodiment, the processing array 2812 can include logic to perform processing tasks including filtering video and / or audio data, performing modeling operations including physics operations, and performing data transformations.
[0318] In at least one embodiment, the processing array 2812 is configured to perform parallel graphics processing operations. In at least one embodiment, the processing array 2812 may include additional logic to support the execution of such graphics processing operations, including but not limited to texture sampling logic for performing texture operations, as well as tessellation logic and other vertex processing logic. In at least one embodiment, the processing array 2812 may be configured to execute shader programs related to graphics processing, such as but not limited to vertex shaders, tessellation shaders, geometry shaders, and pixel shaders. In at least one embodiment, the parallel processing units 2802 may transfer data from system memory via the I / O units 2804 for processing. In at least one embodiment, during processing, the transferred data may be stored in on-chip memory (e.g., parallel processor memory 2822) during processing and then written back to the system memory.
[0319] In at least one embodiment, when parallel processing unit 2802 is used to perform graphics processing, scheduler 2810 can be configured to divide the processing workload into tasks of approximately equal size to better distribute graphics processing operations to multiple clusters 2814A-2814N of processing array 2812. In at least one embodiment, portions of processing array 2812 can be configured to perform different types of processing. For example, in at least one embodiment, a first portion can be configured to perform vertex shading and topology generation, a second portion can be configured to perform tessellation and geometry shading, and a third portion can be configured to perform pixel shading or other screen-space operations to generate a rendered image for display. In at least one embodiment, intermediate data generated by one or more of clusters 2814A-2814N can be stored in a buffer to allow the intermediate data to be transferred between clusters 2814A-2814N for further processing.
[0320] In at least one embodiment, the processing array 2812 can receive processing tasks to be executed via the scheduler 2810, which receives commands defining the processing tasks from the front end 2808. In at least one embodiment, the processing tasks can include an index of the data to be processed, which can include, for example, surface (patch) data, primitive data, vertex data, and / or pixel data, as well as state parameters and commands defining how to process the data (e.g., what program to execute). In at least one embodiment, the scheduler 2810 can be configured to obtain the index corresponding to the task, or can receive the index from the front end 2808. In at least one embodiment, the front end 2808 can be configured to ensure that the processing array 2812 is configured in a valid state before starting the workload specified by the incoming command buffer (e.g., batch buffer, push buffer, etc.).
[0321] In at least one embodiment, each of one or more instances of parallel processing unit 2802 can be coupled to parallel processor memory 2822. In at least one embodiment, parallel processor memory 2822 can be accessed via memory crossbar 2816, which can receive memory requests from processing array 2812 and I / O unit 2804. In at least one embodiment, memory crossbar 2816 can access parallel processor memory 2822 via memory interface 2818. In at least one embodiment, memory interface 2818 can include multiple partition units (e.g., partition unit 2820A, partition unit 2820B, through partition unit 2820N), which can each be coupled to a portion of parallel processor memory 2822 (e.g., a memory unit). In at least one embodiment, the plurality of partition units 2820A-2820N are configured to be equal to the number of memory cells, such that the first partition unit 2820A has a corresponding first memory cell 2824A, the second partition unit 2820B has a corresponding memory cell 2824B, and the Nth partition unit 2820N has a corresponding Nth memory cell 2824N. In at least one embodiment, the number of partition units 2820A-2820N may not be equal to the number of memory devices.
[0322] In at least one embodiment, memory units 2824A-2824N may include various types of memory devices, including dynamic random access memory (DRAM) or graphics random access memory, such as synchronous graphics random access memory (SGRAM), including graphics double data rate (GDDR) memory. In at least one embodiment, memory units 2824A-2824N may also include 3D stacked memory, including but not limited to high bandwidth memory (HBM). In at least one embodiment, render targets such as frame buffers or texture maps may be stored across memory units 2824A-2824N, allowing partition units 2820A-2820N to write portions of each render target in parallel to efficiently use the available bandwidth of parallel processor memory 2822. In at least one embodiment, local instances of parallel processor memory 2822 may be eliminated in favor of a unified memory design utilizing system memory in combination with local cache memory.
[0323] In at least one embodiment, any of the clusters 2814A-2814N of the processing array 2812 can process data to be written to any memory unit 2824A-2824N within the parallel processor memory 2822. In at least one embodiment, the memory crossbar 2816 can be configured to transmit the output of each cluster 2814A-2814N to any partition unit 2820A-2820N or another cluster 2814A-2814N, which can perform other processing operations on the output. In at least one embodiment, each cluster 2814A-2814N can communicate with a memory interface 2818 via the memory crossbar 2816 to read from or write to various external storage devices. In at least one embodiment, memory crossbar 2816 has connections to memory interface 2818 for communicating with I / O unit 2804, and connections to local instances of parallel processor memory 2822, thereby enabling processing units within different processing clusters 2814A-2814N to communicate with system memory or other memory that is not local to parallel processing unit 2802. In at least one embodiment, memory crossbar 2816 can use virtual channels to separate traffic flows between clusters 2814A-2814N and partition units 2820A-2820N.
[0324] In at least one embodiment, multiple instances of parallel processing unit 2802 can be provided on a single plug-in card, or multiple plug-in cards can be interconnected. In at least one embodiment, different instances of parallel processing unit 2802 can be configured to interoperate with each other, even if the different instances have different numbers of processing cores, different amounts of local parallel processor memory, and / or other configuration differences. For example, in at least one embodiment, some instances of parallel processing unit 2802 can include higher precision floating point units relative to other instances. In at least one embodiment, a system incorporating one or more instances of parallel processing unit 2802 or parallel processor 2800 can be implemented in a variety of configurations and form factors, including but not limited to desktop, laptop, or handheld personal computers, servers, workstations, game consoles, and / or embedded systems.
[0325] In at least one embodiment, Figure 28A At least one component shown or described is used to implement the combination Figures 1 to 16The techniques and / or functionality described herein. In at least one embodiment, the parallel processor 2800 is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored. In at least one embodiment, the parallel processor 2800 is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is stored within a master context data structure. In at least one embodiment, the parallel processor 2800 is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is read. In at least one embodiment, the parallel processor 2800 is used to perform the operations described herein, such as executing an application programming interface (API) so that an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations is read from a master context data structure. In at least one embodiment, the parallel processor 2800 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the parallel processor 2800 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0326] Figure 28B FIG2 shows a processing cluster 2894 according to at least one embodiment. In at least one embodiment, the processing cluster 2894 is included within a parallel processing unit. In at least one embodiment, the processing cluster 2894 is Figure 28A One of processing clusters 2814A-2814N. In at least one embodiment, processing cluster 2894 can be configured to execute many threads in parallel, where the term "thread" refers to an instance of a particular program executed on a particular set of input data. In at least one embodiment, single instruction multiple data (SIMD) instruction issuance technology is used to support the parallel execution of a large number of threads without providing multiple independent instruction units. In at least one embodiment, single instruction multiple thread (SIMT) technology is used to support the parallel execution of a large number of generally synchronized threads, which uses a common instruction unit that is configured to issue instructions to a group of processing engines within each processing cluster 2894.
[0327] In at least one embodiment, the operation of the processing cluster 2894 can be controlled by a pipeline manager 2832 that assigns processing tasks to SIMT parallel processors. In at least one embodiment, the pipeline manager 2832 Figure 28A Scheduler 2810 receives instructions and manages the execution of these instructions via graphics multiprocessor 2834 and / or texture unit 2836. In at least one embodiment, graphics multiprocessor 2834 is an exemplary instance of a SIMT parallel processor. However, in at least one embodiment, various types of SIMT parallel processors with different architectures may be included within processing cluster 2894. In at least one embodiment, one or more instances of graphics multiprocessor 2834 may be included within processing cluster 2894. In at least one embodiment, graphics multiprocessor 2834 may process data, and data crossbar 2840 may be used to distribute the processed data to one of multiple possible destinations (including other shader units). In at least one embodiment, pipeline manager 2832 may facilitate the distribution of processed data by specifying the destination of the processed data to be distributed via data crossbar 2840.
[0328] In at least one embodiment, each graphics multiprocessor 2834 within a processing cluster 2894 may include the same set of function execution logic (e.g., arithmetic logic unit, load store unit (LSU), etc.). In at least one embodiment, the function execution logic may be configured in a pipelined manner, where new instructions may be issued before previous instructions have completed. In at least one embodiment, the function execution logic supports a variety of operations, including integer and floating point arithmetic, comparison operations, Boolean operations, shifts, and calculations of various algebraic functions. In at least one embodiment, the same functional unit hardware may be utilized to perform different operations, and any combination of functional units may be present.
[0329] In at least one embodiment, instructions transmitted to the processing cluster 2894 constitute threads. In at least one embodiment, a group of threads executed across a set of parallel processing engines is a thread group. In at least one embodiment, a thread group executes a program on different input data. In at least one embodiment, each thread within a thread group can be assigned to a different processing engine within the graphics multiprocessor 2834. In at least one embodiment, a thread group can include fewer threads than the number of processing engines within the graphics multiprocessor 2834. In at least one embodiment, when a thread group includes fewer threads than the number of processing engines, one or more processing engines may be idle during the cycle being processed by the thread group. In at least one embodiment, a thread group can also include more threads than the number of processing engines within the graphics multiprocessor 2834. In at least one embodiment, when a thread group includes more threads than the number of processing engines within the graphics multiprocessor 2834, processing can be performed in consecutive clock cycles. In at least one embodiment, multiple thread groups can be executed simultaneously on the graphics multiprocessor 2834.
[0330] In at least one embodiment, the graphics multiprocessor 2834 includes internal cache memory to perform load and store operations. In at least one embodiment, the graphics multiprocessor 2834 can abandon the internal cache and use cache memory within the processing cluster 2894 (e.g., L1 cache 2848). In at least one embodiment, each graphics multiprocessor 2834 can also access partition units (e.g., Figure 28A L2 cache within partition units 2820A-2820N) of the graphics multiprocessor 2834 is shared across all processing clusters 2894 and can be used to transfer data between threads. In at least one embodiment, graphics multiprocessor 2834 can also access off-chip global memory, which can include one or more of local parallel processor memory and / or system memory. In at least one embodiment, any memory external to parallel processing unit 2802 can be used as global memory. In at least one embodiment, processing cluster 2894 includes multiple instances of graphics multiprocessor 2834, which can share common instructions and data, which can be stored in L1 cache 2848.
[0331] In at least one embodiment, each processing cluster 2894 may include an MMU 2845 configured to map virtual addresses to physical addresses. In at least one embodiment, one or more instances of the MMU 2845 may reside in Figure 28A2818. In at least one embodiment, the MMU 2845 includes a set of page table entries (PTEs) that are used to map virtual addresses to physical addresses of tiles (more on tiles below) and optionally to cache line indices. In at least one embodiment, the MMU 2845 may include a translation lookaside buffer (TLB) or cache that may reside within the graphics multiprocessor 2834 or L1 cache 2848 or processing cluster 2894. In at least one embodiment, the physical addresses are processed to assign surface data access locality for efficient request interleaving between partition units. In at least one embodiment, the cache line index may be used to determine whether a request for a cache line is a hit or a miss.
[0332] In at least one embodiment, the processing clusters 2894 can be configured such that each graphics multiprocessor 2834 is coupled to a texture unit 2836 to perform texture mapping operations, which may involve, for example, determining texture sample locations, reading texture data, and filtering the texture data. In at least one embodiment, texture data is read from an internal texture L1 cache (not shown) or from an L1 cache within the graphics multiprocessor 2834, and texture data is retrieved from an L2 cache, local parallel processor memory, or system memory as needed. In at least one embodiment, each graphics multiprocessor 2834 outputs processed tasks to a data crossbar 2840 to provide the processed tasks to another processing cluster 2894 for further processing or to store the processed tasks in an L2 cache, local parallel processor memory, or system memory via a memory crossbar 2816. In at least one embodiment, a pre-raster operations unit (preROP) 2842 is configured to receive data from the graphics multiprocessor 2834 and direct the data to a ROP unit, which may communicate with a partitioning unit (e.g., a partitioning unit) as described herein. Figure 28A In at least one embodiment, the PreROP 2842 unit can perform optimizations for color blending, organize pixel color data, and perform address translation.
[0333] In at least one embodiment, Figure 28B At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, the graphics multiprocessor 2834 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the graphics multiprocessor 2834 is used to perform the operations described herein, such as executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations within a master context data structure. In at least one embodiment, the graphics multiprocessor 2834 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations. In at least one embodiment, the graphics multiprocessor 2834 is used to perform the operations described herein, such as executing an application programming interface (API) to cause reading of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations from a master context data structure. In at least one embodiment, the graphics multiprocessor 2834 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the graphics multiprocessor 2834 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0334] Figure 28C A graphics multiprocessor 2896 is shown in accordance with at least one embodiment. In at least one embodiment, the graphics multiprocessor 2896 is Figure 28B 2834. In at least one embodiment, the graphics multiprocessor 2896 is coupled to the pipeline manager 2832 of the processing cluster 2894. In at least one embodiment, the graphics multiprocessor 2896 has an execution pipeline that includes, but is not limited to, an instruction cache 2852, an instruction unit 2854, an address mapping unit 2856, a register file 2858, one or more GPGPU cores 2862, and one or more LSUs 2866. The GPGPU cores 2862 and the LSUs 2866 are coupled to cache memory 2872 and shared memory 2870 via a memory and cache interconnect 2868.
[0335] In at least one embodiment, the instruction cache 2852 receives a stream of instructions to be executed from the pipeline manager 2832. In at least one embodiment, the instructions are cached in the instruction cache 2852 and dispatched for execution by the instruction unit 2854. In one embodiment, the instruction unit 2854 can dispatch instructions as thread groups (e.g., warps), assigning each thread of the thread group to a different execution unit within the GPGPU core 2862. In at least one embodiment, the instructions can access any local, shared, or global address space by specifying an address within the unified address space. In at least one embodiment, the address mapping unit 2856 can be used to convert addresses in the unified address space into different memory addresses that can be accessed by the LSU 2866.
[0336] In at least one embodiment, register file 2858 provides a set of registers for the functional units of graphics multiprocessor 2896. In at least one embodiment, register file 2858 provides temporary storage for operands for the data paths of the functional units (e.g., GPGPU core 2862, LSU 2866) connected to graphics multiprocessor 2896. In at least one embodiment, register file 2858 is divided between each functional unit such that a dedicated portion of register file 2858 is allocated to each functional unit. In at least one embodiment, register file 2858 is divided between the different thread groups being executed by graphics multiprocessor 2896.
[0337] In at least one embodiment, the GPGPU cores 2862 may each include an FPU and / or ALU for executing instructions for the graphics multiprocessor 2896. The GPGPU cores 2862 may be architecturally similar or may differ in architecture. In at least one embodiment, a first portion of the GPGPU core 2862 includes a single-precision FPU and integer ALU, while a second portion of the GPGPU core includes a double-precision FPU. In at least one embodiment, the FPU may implement the IEEE 754-2008 standard for floating-point arithmetic or enable variable-precision floating-point arithmetic. In at least one embodiment, the graphics multiprocessor 2896 may additionally include one or more fixed-function or special-function units to perform specific functions, such as copying rectangles or pixel blending operations. In at least one embodiment, one or more of the GPGPU cores 2862 may also include fixed-function or special-function logic.
[0338] In at least one embodiment, the GPGPU core 2862 includes SIMD logic capable of executing a single instruction on multiple sets of data. In at least one embodiment, the GPGPU core 2862 can physically execute SIMD4, SIMD8, and SIMD16 instructions, and logically execute SIMD1, SIMD2, and SIMD32 instructions. In at least one embodiment, the SIMD instructions for the GPGPU core can be generated by a shader compiler at compile time, or automatically generated when executing a program written and compiled for a single program multiple data (SPMD) or SIMT architecture. In at least one embodiment, multiple threads of a program configured for a SIMT execution model can be executed by a single SIMD instruction. For example, in at least one embodiment, eight SIMT threads performing the same or similar operations can be executed in parallel by a single SIMD8 logic unit.
[0339] In at least one embodiment, the memory and cache interconnect 2868 is an interconnect network that connects each functional unit of the graphics multiprocessor 2896 to the register file 2858 and shared memory 2870. In at least one embodiment, the memory and cache interconnect 2868 is a crossbar interconnect that allows the LSU 2866 to implement load and store operations between the shared memory 2870 and the register file 2858. In at least one embodiment, the register file 2858 can operate at the same frequency as the GPGPU core 2862, resulting in very low latency for data transfers between the GPGPU core 2862 and the register file 2858. In at least one embodiment, the shared memory 2870 can be used to enable communication between threads executing on the functional units within the graphics multiprocessor 2896. In at least one embodiment, the cache memory 2872 can be used, for example, as a data cache to cache texture data communicated between the functional units and the texture unit 2836. In at least one embodiment, the shared memory 2870 can also be used as a program-managed cache. In at least one embodiment, in addition to automatically cached data stored in cache memory 2872, threads executing on GPGPU core 2862 may programmatically store data in shared memory.
[0340] In at least one embodiment, a parallel processor or GPGPU as described herein is communicatively coupled to a host / processor core to accelerate graphics operations, machine learning operations, pattern analysis operations, and various general-purpose GPU (GPGPU) functions. In at least one embodiment, the GPU can be communicatively coupled to the host processor / core via a bus or other interconnect (e.g., a high-speed interconnect such as PCIe or NVLink). In at least one embodiment, the GPU can be integrated on the same package or chip as the core and communicatively coupled to the core via an internal processor bus / interconnect (i.e., internal to the package or chip). In at least one embodiment, regardless of the manner in which the GPU is connected, the processor core can assign work to the GPU in the form of a sequence of commands / instructions contained in the WD. In at least one embodiment, the GPU then uses dedicated circuitry / logic to efficiently process these commands / instructions.
[0341] In at least one embodiment, Figure 28C At least one component shown or described is used to implement the combination Figures 1 to 16Techniques and / or functionality described herein. In at least one embodiment, the graphics multiprocessor 2896 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the graphics multiprocessor 2896 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored within a master context data structure. In at least one embodiment, the graphics multiprocessor 2896 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the graphics multiprocessor 2896 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the graphics multiprocessor 2896 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the graphics multiprocessor 2896 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0342] Figure 29 A graphics processor 2900 is shown in accordance with at least one embodiment. In at least one embodiment, graphics processor 2900 includes a ring interconnect 2902, a pipeline front end 2904, a media engine 2937, and graphics cores 2980A-2980N. In at least one embodiment, ring interconnect 2902 couples graphics processor 2900 to other processing units, including other graphics processors or one or more general-purpose processor cores. In at least one embodiment, graphics processor 2900 is one of many processors integrated within a multi-core processing system.
[0343] In at least one embodiment, the graphics processor 2900 receives batches of commands via a ring interconnect 2902. In at least one embodiment, the input commands are interpreted by a command streamer 2903 in a pipeline front end 2904. In at least one embodiment, the graphics processor 2900 includes scalable execution logic to perform 3D geometry processing and media processing via graphics cores 2980A-2980N. In at least one embodiment, for 3D geometry processing commands, the command streamer 2903 provides the commands to a geometry pipeline 2936. In at least one embodiment, for at least some media processing commands, the command streamer 2903 provides the commands to a video front end 2934, which is coupled to a media engine 2937. In at least one embodiment, the media engine 2937 includes a video quality engine (VQE) 2930 for video and image post-processing, and a multi-format encoding / decoding (MFX) 2933 engine for providing hardware-accelerated media data encoding and decoding. In at least one embodiment, the geometry pipeline 2936 and the media engine 2937 each generate execution threads for thread execution resources provided by at least one graphics core 2980A.
[0344] In at least one embodiment, graphics processor 2900 includes scalable thread execution resources featuring modular graphics cores 2980A-2980N (sometimes referred to as core slices), each of which has multiple sub-cores 2950A-2950N, 2960A-2960N (sometimes referred to as core sub-slices). In at least one embodiment, graphics processor 2900 can have any number of graphics cores 2980A-2980N. In at least one embodiment, graphics processor 2900 includes graphics core 2980A having at least a first sub-core 2950A and a second sub-core 2960A. In at least one embodiment, graphics processor 2900 is a low-power processor having a single sub-core (e.g., 2950A). In at least one embodiment, graphics processor 2900 includes multiple graphics cores 2980A-2980N, each of which includes a set of first sub-cores 2950A-2950N and a set of second sub-cores 2960A-2960N. In at least one embodiment, each of the first sub-cores 2950A-2950N includes at least a first set of execution units (EUs) 2952A-2952N and media / texture samplers 2954A-2954N. In at least one embodiment, each of the second sub-cores 2960A-2960N includes at least a second set of execution units 2962A-2962N and samplers 2964A-2964N. In at least one embodiment, each of the sub-cores 2950A-2950N, 2960A-2960N shares a set of shared resources 2970A-2970N. In at least one embodiment, the shared resources include a shared cache and pixel operation logic.
[0345] In at least one embodiment, Figure 29 At least one component shown or described is used to implement the combination Figures 1 to 16 Techniques and / or functionality described herein. In at least one embodiment, the graphics processor 2900 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored. In at least one embodiment, the graphics processor 2900 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be stored within a master context data structure. In at least one embodiment, the graphics processor 2900 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read. In at least one embodiment, the graphics processor 2900 is used to perform the operations described herein, such as executing an application programming interface (API) to cause an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations to be read from a master context data structure. In at least one embodiment, the graphics processor 2900 is configured to perform the operations described herein, such as executing an application programming interface (API) to cause context information indicating whether one or more memory operations to be performed are dependent on one or more other memory operations to be updated. In at least one embodiment, the graphics processor 2900 is configured to perform at least one aspect described with respect to block diagram 100, block diagram 200, block diagram 300, block diagram 400, block diagram 500, block diagram 600, block diagram 700, block diagram 800, block diagram 900, block diagram 1000, block diagram 1100, block diagram 1200, block diagram 1300, block diagram 1400, block diagram 1500, block diagram 1600, and / or other systems, methods, or operations described herein.
[0346] Figure 30A processor 3000 is shown according to at least one embodiment. In at least one embodiment, the processor 3000 may include, but is not limited to, logic circuitry for executing instructions. In at least one embodiment, the processor 3000 may execute instructions including x86 instructions, ARM instructions, specialized instructions for ASICs, and the like. In at least one embodiment, the processor 3010 may include registers for storing packed data, such as the 64-bit wide MMX™ registers in microprocessors enabled with MMX technology from Intel Corporation of Santa Clara, California. In at least one embodiment, the MMX registers, available in integer and floating-point form, may operate with packed data elements associated with SIMD and Streaming SIMD Extensions ("SSE") instructions. In at least one embodiment, the 128-bit wide XMM registers associated with SSE2, SSE3, SSE4, AVX, or later (generally referred to as "SSEx") technology may store such packed data operands. In at least one embodiment, the processor 3010 may execute instructions to accelerate CUAD programs.
[0347] In at least one embodiment, processor 3000 includes an in-order front end ("Front End") 3001 to fetch instructions for execution and prepare them for later use in the processor pipeline. In at least one embodiment, front end 3001 may include several units. In at least one embodiment, instruction prefetcher 3026 retrieves instructions from memory and provides them to instruction decoder 3028, which in turn decodes or interprets the instructions. For example, in at least one embodiment, instruction decoder 3028 decodes received instructions into one or more operations, called "microinstructions" or "micro-operations" (also referred to as "micro-ops" or "micro-instructions"), for execution. In at least one embodiment, instruction decoder 3028 parses instructions into opcodes and corresponding data and control fields, which can be used by the microarchitecture to perform the operations. In at least one embodiment, trace cache 3030 can assemble the decoded microinstructions into a program-ordered sequence or trace in microinstruction queue 3034 for execution. In at least one embodiment, when trace cache 3030 encounters a complex instruction, microcode ROM 3032 provides the microinstructions necessary to complete the operation.
[0348] In at least one embodiment, some instructions may be converted into a single m...
Claims
1. A processor, comprising: One or more circuits for executing an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
2. The processor of claim 1, wherein the indication comprises a context tag of a context to be used by the one or more circuits to perform the one or more memory operations and the one or more other operations.
3. The processor of claim 1, wherein the one or more memory operations are to be performed after the one or more other memory operations are completed. 4 . The processor of claim 1 , wherein the API is to cause the one or more circuits to generate a context based at least in part on the indication.
5. The processor of claim 1, wherein the API is to cause the one or more circuits to receive one or more input values indicating a storage location of a context to be used to perform the one or more memory operations and the one or more other operations.
6. The processor of claim 1, wherein the API is to cause the one or more circuits to receive one or more input values indicative of one or more tags comprising the indication.
7. The processor of claim 1, wherein the API is to cause the one or more circuits to receive one or more input values indicative of devices to be used to perform the one or more memory operations and the one or more other operations.
8. A computer-implemented method comprising: An application programming interface API is executed to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
9. The computer-implemented method of claim 8, wherein the indication includes a context tag of a context to be used to perform the one or more memory operations and the one or more other operations.
10. The computer implemented method of claim 8, wherein the one or more memory operations are to be performed after the one or more other memory operations are completed.
11. The computer-implemented method of claim 8, wherein the API is used to generate a context based at least in part on the indication.
12. The computer-implemented method of claim 8, wherein the API is to receive one or more input values indicating a storage location of a context to be used to perform the one or more memory operations and the one or more other operations.
13. The computer-implemented method of claim 8, wherein the API is to receive one or more input values indicating one or more tags comprising the indication.
14. The computer-implemented method of claim 8, wherein the API is to receive one or more input values indicating a device to be used to perform the one or more memory operations and the one or more other operations.
15. A computer system comprising: One or more processors and a memory storing executable instructions which, when executed by the one or more processors, implement an application programming interface (API) to cause storage of an indication of whether one or more memory operations to be performed are dependent on one or more other memory operations.
16. The computer system of claim 15, wherein the indication comprises a context tag of a context to be used by the one or more processors to perform the one or more memory operations and the one or more other operations.
17. The computer system of claim 15, wherein the one or more memory operations are to be performed after the one or more other memory operations are completed.
18. The computer system of claim 15, wherein the API is to cause the one or more processors to generate a context based at least in part on the indication.
19. The computer system of claim 15, wherein the API is operable to cause the one or more processors to receive one or more input values indicating a storage location of a context to be used to perform the one or more memory operations and the one or more other operations.
20. The computer system of claim 15, wherein the API is configured to cause the one or more processors to receive one or more input values indicative of one or more tags comprising the indication.
