The present invention relates generally to data parallel computing. More particularly, this invention relates to managing subbuffer objects associated with a buffer in a heterogeneous multi-compute unit environment.
As GPUs continue to evolve into high performance parallel computing devices, more and more applications are written to perform data parallel computations in GPUs similar to general purpose computing devices. Today, these applications are designed to run on specific GPUs using vendor specific interfaces. Thus, these applications are not able to leverage processing resources of CPUs even when both GPUs and CPUs are available in a data processing system. Nor can processing resources be leveraged across GPUs from different vendors where such an application is running.
However, as more and more CPUs embrace multiple cores to perform data parallel computations, more and more processing tasks can be supported by either CPUs and/or GPUs whichever are available. Traditionally, GPUs and CPUs are configured through separate programming environments that are not compatible with each other. Most GPUs require dedicated programs that are vendor specific. As a result, it is very difficult for an application to leverage processing resources of both CPUs and GPUs, for example, leveraging processing resources of CPUs with data parallel computing capabilities together with multi-core CPUs.
In addition, CPUs and GPUs use separate memory address spaces. The memory buffer needs to be allocated and copied in GPU memory for the CPU to process data. If an application wants the CPU and one or more CPUs to operate on regions of a data buffer, the application needs to manage allocation and copying of data from appropriate regions of the buffer that is to be shared between CPU and CPU or across CPUs. Therefore, there is a need in modern data processing systems to have a heterogeneous mix of CPUs and GPUs sharing a buffer.
A method and an apparatus for a parallel computing program using subbuffers to perform a data processing task in parallel among heterogeneous compute ants are described. The compute units can include a heterogeneous mix of central processing units (CPUs) and graphic processing units (GPUs). A system creates a subbuffer from a parent buffer for each of a plurality of heterogeneous compute units. If a subbuffer is not associated with the same compute unit as the parent buffer, the system copies data from the subbuffer to memory of that compute unit The system further tracks updates to the data and transfers those updates back to the subbuffer.
Other features of the present invention will be apparent from the accompanying drawings and from the detailed description that follows.
The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements and in which:
A method and an apparatus for data parallel computing on multiple processors using subbuffers created from a parent buffer is described herein. In the following description, numerous specific details are set forth to provide thorough explanation of embodiments of the present invention. It will be apparent, however, to one skilled in the art, that embodiments of the present invention may be practiced without these specific details, hi other instances, well-known components, structures, and techniques have not been shown in detail in order not to obscure the understanding of this description.
Reference in the specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase “in one embodiment” in various places in the specification do not necessarily all refer to the same embodiment.
The processes depicted in the figures that follow, are performed by processing logic that comprises hardware (e.g., circuitry, dedicated logic, etc.), software (such as is run on a general-purpose computer system or a dedicated machine), or a combination of both. Although the processes are described below in terms of some sequential operations, it Should be appreciated that some of the operations described may be performed in different order. Moreover, some operations may be performed in parallel rather than sequentially.
A Graphics Processing Unit (GPU) may be a dedicated graphics processor implementing highly efficient graphics operations, such as 2D, 3D graphics operation and/or digital video related functions. A GPU may include special (programmable) hardware to perform graphics operations, e.g. blitter operations, texture mapping, polygon rendering, pixel shading and vertex shading. GPUs are known to fetch data from a frame buffer and to blend pixels together to render an image back into the frame buffer for display. GPUs may also control the frame buffer and allow the frame buffer to be used to refresh a display, e.g. a CRT or LCD display Either a CRT or an LCD display is a short persistence display that requires refresh at a rate of at least 20 Hz (e.g. every 1/30 of a second, the display is refreshed with data from a frame buffer). Usually, GPUs may take graphics processing tasks from CPUs coupled with the GPUs to output raster graphics images to display devices through display controllers. References in the specification to “GPU” may be a graphics processor or a programmable graphics processor as described in “Method and Apparatus for Multitheraded Processing of Data In a Programmable Graphics Processor”, Lindholdm et al., U.S. Pat. No. 7,015,913, and “Method for Deinterlacing Interlaced Video by A Graphics Processor”, Swan et al., U.S. Pat. No. 6,970,206, which are hereby incorporated by reference
In one embodiment, a plurality of different types of processors, such as CPUs or GPUs may perform data parallel processing tasks for one or more applications concurrently to increase the usage efficiency of available processing resources in a data processing system. Processing resources of a data processing system may be based on a plurality of physical computing devices, such as CPUs or GPUs. A physical computing device may include one or more compute units. In one embodiment, data parallel processing tasks (or data parallel tasks) may be delegated to a plurality types of processors, for example, CPUs or GPUs capable of performing the tasks. A data parallel task may require certain specific processing capabilities from a processor. Processing capabilities may be, for example, dedicated texturing hardware support, double precision floating point arithmetic, dedicated local memory, stream data cache, or synchronization primitives. Separate types of processors may provide different yet overlapping groups of processing capabilities. For example, both CPU and GPU may be capable of performing double precision floating point computation. In one embodiment, an application is capable of leveraging either a CPU or a CPU, whichever is available, to perform a data parallel processing task.
In another embodiment, the system can allocate a parent buffer and further subdivide this parent buffer into multiple subbuffers. If the compute unit for the subbuffer is the same compute unit as the one associated with the parent buffer, that compute unit accesses the subbuffer data using pointers. If the compute unit for the subbuffer is different than the compute unit for the parent buffer, the system copies the data from the subbuffer to memory local to the compute unit for the subbuffer. Furthermore, the system tracks updates to the copied data and transfers the updated data back to the subbuffer.
In one embodiment, the hosting systems 101 may support a software stack. The software stack can include software stack components such as applications 103, a compute platform layer 141, e.g. an OpenCL (Open Computing Language) platform, a compute runtime layer 109, a compute compiler 107 and compute application libraries 105. An application 103 may interface with other stack components through API calls. One or more threads may be running concurrently for the application 103 in the hosting systems 101. The compute platform layer 141 may maintain a data structure, or a computing device data structure, storing processing capabilities for each attached physical computing device. In one embodiment, an application may retrieve information about available processing resources of the hosting systems 101 through the compute platform layer 141. An application may select and specify capability requirements for performing a processing task through the compute platform layer 141. Accordingly, the compute platform layer 141 may determine a configuration for physical computing devices to allocate and initialize processing resources from the attached CPUs 117 and/or CPUs 115 for the processing task. In one embodiment, the compute platform layer 141 may generate one or more logical computing devices for the application corresponding to one or more actual physical computing devices configured.
The compute runtime layer 109 may manage the execution of a processing task according to the configured processing resources for an application 103, for example, based on one or more logical computing devices. In one embodiment, executing a processing task may include creating a compute program object representing the processing task and allocating memory resources, e.g. for holding executables, input/output data etc. An executable loaded for a compute program object may be a compute program executable. A compute program executable may be included in a compute program object to be executed in a compute processor or a compute unit, such as a CPU or a GPU The compute runtime layer 109 may interact with the allocated, physical devices to carry out the actual execution of the processing task. In one embodiment, the compute runtime layer 109 may coordinate executing multiple processing tasks from different applications according to run time states of each processor, such as CPU or CPU configured for the processing tasks. The compute runtime layer 109 may select, based on the run time states, one or more processors from the physical computing devices configured to perform the processing tasks. Performing a processing task may include executing multiple threads of one or more executables in a plurality of physical computing devices concurrently. In one embodiment, the compute runtime layer 109 may track the status of each executed processing task by monitoring the run time execution status of each processor.
The runtime layer may load one or more executables as compute program executables corresponding to a processing task from the application 103, in one embodiment, the compute runtime layer 109 automatically loads additional executables required to perform a processing task from the compute application library 105. The compute runtime layer 109 may load both an executable and its corresponding source program for a compute program object from the application 103 or the compute application library 105. A source program for a compute program object may be a compute program source. A plurality of executables based on a single compute program source may be loaded according to a logical computing device configured to include multiple types and/or different versions of physical computing devices. In one embodiment, the compute runtime layer 109 may activate the compute compiler 107 to online compile a loaded source program into an executable optimized for a target processor, e.g. a CPU or a GPU, configured to execute the executable.
An online compiled executable may be stored for future invocation in addition to existing executables according to a corresponding source program. In addition, the executables may be compiled offline and loaded to the compute runtime 109 using API calls. The compute application library 105 and/or application 103 may load an associated executable in response to library API requests from an application. Newly compiled executables may be dynamically updated for the compute application library 105 or for the application 103. In one embodiment, the compute runtime 109 may replace an existing compute program executable in an application by a new executable online compiled through the compute compiler 107 for a newly upgraded version of computing device. The compute runtime 109 may insert a new executable online compiled to update the compute application library 105. In one embodiment, the compute runtime 109 may invoke the compute compiler 107 when loading an executable for a processing task. In another embodiment, the compute compiler 107 may be invoked offline to build executables for the compute application library 105. The compute compiler 107 may compile and link a compute kernel program to generate a compute program executable. In one embodiment, the compute application library 105 may include a plurality of functions to support, for example, development toolkits and/or image processing. Each library function may correspond to a compute program source and one or more compute program executables stored in the compute application library 105 for a plurality of physical computing devices.
A computing device may include one or more compute processors or compute units such as Processor_1205 and Processor_L 203. A local memory may be coupled with a compute processor. Local memory, shared among threads in a single thread group running in a compute processor, may be supported by the local memory coupled with the compute processor. Multiple threads from across different thread groups, such as thread 1213 and thread N 209, may share a compute memory object, such as a stream, stored in a computing device memory 217 coupled to the computing device 201. A computing device memory 217 may include a global memory and a constant memory. A global memory may be used to allocate compute memory objects, such as streams. A compute memory object may include a collection of data elements that can be operated on by a compute program executable. A compute memory object may represent an image, a texture, a frame-buffer, an array of a scalar data type, an array of a user-defined structure, buffer, subbuffer, or a variable, etc. A constant memory may be read-only memory storing constant variables frequently used by a compute program executable.
In one embodiment, a local memory for a compute processor or compute unit may be used to allocate variables shared by all thread in a thread group or a thread group. A local memory may be implemented as a dedicated local storage, such as local shared memory 219 for Processor_1 and local shared memory 211 for Processor_L. In another embodiment, a local memory for a compute processor may be implemented as a read write cache for a computing device memory for one or more compute processors of a computing device, such as data cache 215 for compute processors 205, 203 in the computing device 201. A dedicated local storage may not be shared by threads across different thread groups. If the local memory of a compute processor, such as Processor_1205 is implemented as a read-write cache, e.g. data cache 215, a variable declared to be in the local memory may be allocated from the computing device memory 217 and cached in the read-write cache, e.g. data cache 215 that implements the local memory. Threads within a thread group may share local variables allocated in the computing device memory 217 when, for example, neither a read-write cache nor dedicated local storage are available for the corresponding computing device. In one embodiment, each thread is associated with a private memory to store thread private variables that are used by functions called in the thread. For example, private memory 1211 may not be seen by threads other than thread 1213.
Furthermore, in one embodiment, compute device memory 217 includes a buffer 223 that is used to store data used by the processor_1205-processor_L 203. Buffer 223 can be a one dimensional buffer, two-dimensional image, three-dimensional image, or other type of buffer as known in the art. In one embodiment, the compute device 201 stores data to be operated on by the processors (e.g., processor_1205-processor_L 203) in buffer 223. For example and in one embodiment, the buffer can store an array of data, a two-dimensional image, a three-dimensional image, etc., and/or other data as known in the art. In one embodiment, data between the buffer 223 and other memory in system 201 (private memory 211, 207, local shared memory 219, 221, data cache 215, etc.) can be transfer using any method known in the art for inter-memory data transfer (direct PCIe transfer, asynchronous direct memory access, etc.)
In one embodiment, each compute unit 402A-D is associated with one of the subbuffers 410A-D of butler 408. In one embodiment, each of these compute units 402A-D use the data for the compute task assigned to each compute unit. Each of the compute units can read and/or write data to the corresponding subbuffer 410A-D. For example and in one embodiment, compute unit 402A uses to subbuffer 410A, compute unit 402B uses to subbuffer 410B, compute unit 402C uses to subbuffer 410C, and compute unit 402D uses to subbuffer 410D. In this embodiment, to access the data in the subbuffers 410A-D, the compute units 402A-D would provide the corresponding pointer 412A-D and an offset to the desired region of the subbuffer 410-D. The offsets can be an array index, two-dimensional reference, three-dimensional reference, etc. Buffer 408 structure is further described in
In one embodiment, each subbuffer is created by a function call and providing a buffer pointer and subbuffer size value. Creating a subbuffer is further described in
In one embodiment, a compute unit 402A-D transfers data from the corresponding subbuffer 410A-D to the private memory 404A-D of that compute unit 402A-D. In one embodiment, the private memory 404A-D is memory that is local to the compute unit (e.g., private memory 1-M 211, private memory 1-N 207, local shared memory 219 and 221, and/or data cache 215 as illustrated in
At block 801, in one embodiment, the processing logic of process 800 may build a data structure (or a computing device data structure) representing multiple physical computing devices associated with one or more corresponding capabilities. Each physical computing device may be attached to the processing system performing the processing logic of process 800. Capabilities or compute capabilities of a physical computing device, such as CPU or GPU, may include whether the physical computing device support a processing feature, a memory accessing mechanism, a named extension or associated limitations. A processing feature may be related to dedicated texturing hardware support, double precision floating point arithmetic or synchronization support (e.g. mutex).
Capabilities of a computing device may include a type indicating processing characteristics or limitations associated with a computing device. An application may specify a type of required computing device or query the type of a specific computing device using APIs. Examples of different types of computing devices are shown in the following table:
Additionally, capabilities of a computing device may include, for example, configuration values as shown in the following table:
A memory accessing mechanism for a physical processing device may be related to a type of variable cache (e.g., no support, read-only, or read-write), a type of compute memory object cache, size of cache support, a dedicated local memory support or associated limitations. Memory accessing limitations may include a maximum number of compute memory objects that can be simultaneously read or written by a compute program executable, a maximum number of compute memory objects that can be allocated, or a maximum size along a dimension of a multi-dimensional compute memory object, for example, a maximum width of a compute memory object for a 2D (two-dimensional) image. A system application of the data processing system may update the data structure in response to attaching a new physical computing device to a data processing system. In one embodiment, the capabilities of a physical computing device may be predetermined. In another embodiment, a system application of the data processing system may discover a newly attached physical processing device during run time. The system application may retrieve the capabilities of the newly discovered physical computing device to update the data structure representing the attached physical computing devices and their corresponding capabilities. 1 The platform profile returns the profile that is implemented by the OpenCL framework. If the platform profile returned is FULL_PROFILE, the OpenCL framework will support devices that are FULL_PROFILE and may also support devices that are EMBEDDED_PROFILE. The compiler must be available for all devices i.e. CL_DEVICE_COMPILER_AVAILABLE is CL_TRUE. If the platform profile returned is EMBEDDED_PROFILE, then devices that are only EMBEDDED_PROFILE are supported.
According to one embodiment, the processing logic of process 800 may receive a compute capability requirement from an application at block 803. The application may send the compute capability requirement to a system application by calling APIs. The system application may correspond to a platform layer of a software stack in a hosting system for the application. In one embodiment, a compute capability requirement may identify a list of required capabilities for requesting processing resources to perform a task for the application. In one embodiment, the application may require the requested processing resources to perform the task in multiple threads concurrently. In response, the processing logic of process 800 may select a group of physical computing devices from attached physical computing devices at block 805. The selection may be determined based on a matching between the compute capability requirements against the compute capabilities stored in the capability data structure, hi one embodiment, the processing logic of process 800 may perform the matching according to a hint provided by the capability requirement.
The processing logic of process 800 may determine a matching score according to the number of compute capabilities matched between a physical computing device and the compute capability requirement. In one embodiment, the processing logic of process 800 may select multiple physical computing devices with highest matching scores. In another embodiment, the processing logic of process 800 may select a physical computing device if each capability in the capability requirement is matched. The processing logic of process 800 may determine multiple groups of matching physical computing devices at block 805. In one embodiment, each group of matching physical computing devices is selected according to a load balancing capability of each device. At block 807, in one embodiment, the processing logic of process 800 may generate a computing device identifier for each group of physical computing devices selected at block 805. The processing logic of process 800 may return one or more of the generated computing device identifiers back to the application through the calling APIs. An application may choose which processing resources to employ for performing a task according to the computing device identifiers. In one embodiment, the processing logic of process 800 may generate at most one computing device identifier at block 807 for each capability requirement received.
At block 809, in one embodiment, the processing logic of process 800 may allocate resources to initialize a logical computing device for a group of physical computing, devices selected at block 805 according to a corresponding computing device identifier. A logical computing device may be a computing device group including one or more physical computing devices. The processing logic of process 800 may perform initializing a logical computing device in response to API requests from an application which has received one or more computing device identifiers according to the selection at block 805.
The processing logic of process 800 may create a context object on the logical computing device for an application at block 811. Commands that operate on compute memory object, compute program objects and/or compute program executables for a context object may be executed in-order (e.g. synchronously) or out of order (e.g. asynchronously) according to parameters specified in API requests when creating the context object. Profiling commands that operate on compute memory objects, compute programs or compute kernels may be enabled for a context object using API requests. In one embodiment, a context object is associated with one application thread in a hosting system running the application. Multiple threads performing processing tasks in one logical computing device or across different logical computing devices concurrently may be based on separate context objects.
In one embodiment, the processing logic of process 800 may be based on multiple APIs including clCreateContext, clRetainContext and clReleaseContext. The API clCreateContext creates a compute context. A compute context may correspond to a compute context object. The API clRetainContext increments the number of instances using a particular compute context identified by a context as an input argument to clRetainContext. The API clCreateContext does an implicit retain. This is useful for third-party libraries, which typically get a context passed to them by the application. However, it is possible that the application may delete the context without informing the library. Allowing multiple instances to attach to a context and release from a context solves the problem of a compute context being used by a library no longer being valid. If an input argument to clRetainContext does not correspond to a valid compute context object, clRetainContext returns CU_INVALID_CONTEXT. The API clReleaseContext releases an instance from a valid compute context. If an input argument to clReleaseContext does not correspond to a valid compute context object, clReleaseContext returns CU_INVALID_CONTEXT.
When allocating a compute memory object, the processing logic of process 900 may determine where the allocation should reside according to specifications in an API. For example, a compute memory object may be allocated out of a host memory, such as a host memory for the hosting systems 101 of
At block 903, according to one embodiment, the processing logic of process 900 may create a compute program object for the logical computing device (e.g. a computing device group). A compute program object may include a group of compute kernels representing exported functions or entry points of a data parallel program. A compute kernel may include a pointer to a compute program executable that can be executed on a compute unit to perform a data parallel task a function). Each compute kernel may be associated with a group of function arguments including compute memory objects or streams allocated for function inputs or outputs, such as the streams allocated at block 901.
The processing logic of process 900 may load a compute program binary and/or a compute program source into the compute program object at block 909A compute program binary may include bits that describe a compute program executable that will be run on a computing device. A compute program binary may be a compute program executable and/or an intermediate representation of a compute program source to be converted into a compute program executable. In one embodiment, a compute program executable may include description data associated with, for example, the type of target physical computing devices (e.g. a GPU or a CPU), versions, and/or compilation options or flags, such as a thread group sizes and/or thread group dimensions. A compute program source may be the source code where a compute program executable is compiled from. The processing logic of process 900 may load multiple compute program executables corresponding to a compute program source at block 909. In one embodiment, the processing logic of process 900 may load a compute program executable from an application or through a compute library such as compute application library 105 of
At block 911, the processing logic of process 900 may update an execution queue to execute the compute kernel object with a logical computing device. The processing logic of process 900 may execute a computer kernel in response to API calls with appropriate arguments to a compute runtime, e.g. compute runtime 109 of
In one embodiment, API calls to a compute runtime to execute a compute kernel may include the number of threads that execute simultaneously in parallel on a compute processor as a thread group. An API call may include the number of compute processors to use. A compute kernel execution instance may include a priority value indicating a desired priority to execute the corresponding compute program executable. A compute kernel execution instance may also include an event object identifying a previous execution instance and/or expected total number of threads and number of thread groups to perform the execution. The number of thread groups and total number of threads may be specified in the API calls. In one embodiment, an event object may indicate an execution order relationship between the execution instance that includes the event object and another execution instance identified by the event object. An execution instance including an event object may be required to be executed after another execution instance identified by the event object finishes execution. An event object may be referred to as a queue_after_event_object. Events and event dependencies are further described in
At block 913, the processing logic of process 900 may select a compute kernel execution instance from the execution queue for execution. In one embodiment, the processing logic of process 900 may select more than one compute kernel execution instances to be executed concurrently according to the corresponding logical computing devices. The processing logic of process 900 may determine whether a compute kernel execution instance is selected from the execution queue based on its associated priority and dependency relationships with other execution instances in the execution queue. A compute kernel execution instance may be executed by executing its corresponding compute kernel object according to an executable loaded to the compute kernel object.
At block 917, in one embodiment, the processing logic of process 900 may select one of the plurality of executables loaded to the compute kernel object corresponding to the selected compute kernel instance for execution in a physical computing device associated with the logical computing device for the compute kernel object. The processing logic of process 900 may select more than one executables to be executed in more than one physical computing device in parallel for one compute kernel execution instance. The selection may he based on current execution statuses of the physical computing devices corresponding to the logical computing device associated with the selected compute kernel execution instance. An execution status of a physical computing device may include the number of threads running, the local memory usage level and the processor usage level (e.g. peak number of operations per unit time), etc. In one embodiment, the selection may be based on predetermined usage levels. In another embodiment, the selection may be based on the number of threads and number of thread groups associated with the compute kernel execution instance. The processing logic of process 900 may retrieve an execution status from a physical computing device. In one embodiment, the processing logic of process 900 may perform operations to select a compute kernel execution instance from the execution queue to execute at blocks 913917 asynchronously to applications running in hosting systems.
At block 919, the processing logic of process 900 may check the execution status of a compute kernel execution instance scheduled for execution in the execution queue. Each execution instance may be identified by a unique compute event object. An event object may be returned to an application or a compute application library, such as application 103 or compute application library 105 of
At block 921, according to one embodiment, the processing logic of process 900 may retrieve results of executing a compute kernel execution instance. Subsequently, the processing logic of process 900 may clean up processing resources allocated for executing the compute kernel execution instance. In one embodiment, the processing logic of process 900 may copy a stream memory holding results of executing a compute kernel executable into a local memory. The processing logic of process 900 may delete variable streams or image streams allocated at block 901. The processing logic of process 900 may delete a kernel event object for detecting when a compute kernel execution is completed. If each compute kernel execution instance associated with a specific compute kernel object has been completely executed, the processing logic of process 900 may delete the specific compute kernel object. In one embodiment, the processing logic of process 900 may perform operations at block 921 based on API requests initiated by an application.
In
At block 1004, process 1000 determines if the compute unit for the subbuffer is the same compute unit as the parent buffer. For example and in one embodiment, process 1000 determines that the subbuffer is created for a CPU. If the compute unit is different, process 1000 copies the data to the private memory of the compute unit associated with the subbuffer. For example and in one embodiment, if the compute unit is a GPU and the compute unit associated with the buffer is a CPU, process 1000 would copy the data associated with the subbuffer into the memory of the GPU. Referring back to
On the other hand, if process 1000 has copied the data into the private memory of the compute unit associated with the subbuffer, process 1000 tracks updates to the data in the private memory of that compute unit. For example and in one embodiment at block 1010. Based on the tracked updates, process 1000 sends the updates to the parent buffer at block 1012. While in one embodiment, process 1000 sends the updates at once, in alternate embodiment, process 1000 sends the updates in a different fashion (e.g., periodically sends updates, automatically sends updates, etc.).
In addition to creating, using, and/or managing subbuffers for compute units, system 100 can use events to synchronize operations of a context as described above with reference to
Exemplary process 1100 may be performed by a processing logic that may comprise hardware (circuitry, dedicated logic, etc.), software (such as is run on a dedicated machine), or a combination of both. For example, process 1100 may be performed in accordance with the system 100 of
Process 1100 registers an event to run a callback with a context, where the event has external dependencies at block 1102. In one embodiment, an event can have internal, external, and/or no dependencies. An event with an internal dependency means that before the callback associated with the event can be executed, the internal dependency is to be resolved. In one embodiment, the internal dependency is a system recognized event, such as a kernel execution command or managing commands (e.g., read, write, map, copy commands on memory objects). An external dependency is a user defined event and this external dependency should be resolved before the callback can be executed. For example and in one embodiment, a user defined event can allow applications to enqueue commands that wait on the user event to finish before the enqueued command is executed by the corresponding compute unit. In another embodiment, a user event object can be used to report an application specific error condition. In one embodiment, event dependencies can be stored in an event wait list.
At block 1104, process 1100 receives notification that the registered event has occurred. In one embodiment, process 1100 receives notification of the event by invoking a function that waits for events. At block 1106, process 1100 determines if the registered event has any unresolved internal events. For example and in one embodiment, process 1100 determines if an event wait list associated with the registered event has any internal dependencies. If there are any internal dependencies, process 1100 delays execution of the callback at block 1112. In one embodiment, process 1100 delays execution until the internal dependencies are resolved. For example and in one embodiment, resolving a dependency can include waiting for a command associated with a dependent event to complete.
If there are no internal dependency for the registered event, process 1100 determines if the registered event has any external dependencies at block 1108. For example and in one embodiment, process 1100 determines if an event wait list associated with the registered event has any external dependencies. If there are any external dependencies, process 1100 delays execution of the callback at block 1112. In one embodiment, process 1100 delays execution until the external dependencies are resolved. For example and in one embodiment, resolving a dependency can include waiting for a command associated with a dependent event to complete.
Turning now to
Turing now to
As shown in
The mass storage 1911 is typically a magnetic hard drive or a magnetic optical drive or an optical drive or a DVD RAM or a flash memory or other types of memory systems which maintain data (e.g. large amounts of data) even after power is removed from the system. Typically, the mass storage 1911 will also be a random access memory although this is not required. While
Portions of what was described above may be implemented with logic circuitry such as a dedicated logic circuit or with a microcontroller or other form of processing core that executes program code instructions. Thus processes taught by the discussion above may be performed with program code such as machine-executable instructions that cause a machine that executes these instructions to perform certain functions. In this context, a “machine” may be a machine that converts intermediate form (or “abstract”) instructions into processor specific instructions (e.g., an abstract execution environment such as a “virtual machine” (e.g., a Java Virtual Machine), an interpreter, a Common Language Runtime, a high-level language virtual machine, etc.), and/or, electronic circuitry disposed on a semiconductor chip (e.g. “logic circuitry” implemented with transistors) designed to execute instructions such as a general-purpose processor and/or a special-purpose processor. Processes taught by the discussion above may also be performed by (in the alternative to a machine or in combination with a machine) electronic circuitry designed to perform the processes (or a portion thereof) without the execution of program code.
An article of manufacture may be used to store program code, for example, including multiple tokens. An article of manufacture that stores program code may be embodied as, but is not limited to, one or more memories (e.g., one or more flash memories, random access memories (static, dynamic or other)), optical disks, CD-ROMs, DVD ROMs, EPROMs, EEPROMs, magnetic or optical cards or other type of machine-readable media suitable for storing electronic instructions. Program code may also be downloaded from a remote computer (e.g., a server) to a requesting computer (e.g., a client) by way of data signals embodied in a propagation medium (e.g., using a communication link (e.g., a network connection)).
The preceding detailed descriptions are presented in terms of algorithms and symbolic representations of operations on data hits within a computer memory. These algorithmic descriptions and representations are the tools used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of operations leading to a desired result. The operations are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared, and otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers, or the like.
It should be kept in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the above discussion, it is appreciated that throughout the description, discussions utilizing terms such as “processing” or “computing” or “calculating” or “determining” or “displaying” or “copying” or “tracking” or “sending” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.
The present invention also relates to an apparatus fir performing the operations described herein. This apparatus may be specially constructed for the required purpose, or it may comprise a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program may be stored in a computer readable storage medium, such as, but is not limited to, any type of disk including floppy disks, optical disks, CD-ROMs, and magnetic-optical disks, read-only memories (ROMs), RAMs, EPROMs, EEPROMs, magnetic or optical cards, or any type of media suitable for storing electronic instructions, and each coupled to a computer system bus.
The processes and displays presented herein are not inherently related to any particular computer or other apparatus. Various general-purpose systems may be used with programs in accordance with the teachings herein, or it may prove convenient to construct a more specialized apparatus to perform the operations described. The required structure for a variety of these systems will be evident from the description below. In addition, the present invention is not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the invention as described herein.
The foregoing discussion merely describes some exemplary embodiments of the present invention. One skilled in the art will readily recognize from such discussion, the accompanying drawings and the claims that various modifications can be made without departing from the spirit and scope of the invention.
This application is a continuation of co-pending U.S. application Ser. No. 14/254,801 filed on Apr. 16, 2014, which is a continuation of U.S. application Ser. No. 12/892,834 filed on Sep. 28, 2010 which claims the benefit of U.S. Provisional Patent Application No. 61/346,866, filed on May 20, 2010, which application is incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
6493773 | Daniel et al. | Dec 2002 | B1 |
7634776 | Parameswaran et al. | Dec 2009 | B2 |
7701459 | Mrazek et al. | Apr 2010 | B1 |
7921151 | Aguilar et al. | Apr 2011 | B2 |
8095735 | Brewer et al. | Jan 2012 | B2 |
8108845 | Little et al. | Jan 2012 | B2 |
8468532 | Aguilar et al. | Jun 2013 | B2 |
20040187094 | Gil et al. | Sep 2004 | A1 |
20050071578 | Day et al. | Mar 2005 | A1 |
20060251070 | Yamazaki et al. | Nov 2006 | A1 |
20070179927 | Vaidyanathan et al. | Aug 2007 | A1 |
20070255929 | Kasahara et al. | Nov 2007 | A1 |
20080028179 | Mannarswamy et al. | Jan 2008 | A1 |
20080109795 | Buck et al. | May 2008 | A1 |
20080147993 | Kaneko | Jun 2008 | A1 |
20080276064 | Munshi et al. | Nov 2008 | A1 |
20080278509 | Washizu et al. | Nov 2008 | A1 |
20080301695 | Aguilar, Jr. et al. | Dec 2008 | A1 |
20090148741 | Imanishi et al. | Jun 2009 | A1 |
20090307704 | Munshi et al. | Dec 2009 | A1 |
20090319992 | Duffy et al. | Dec 2009 | A1 |
20100118041 | Chen et al. | May 2010 | A1 |
20100174876 | Kasahara et al. | Jul 2010 | A1 |
20110022817 | Gaster | Jan 2011 | A1 |
20110157195 | Sprangle et al. | Jun 2011 | A1 |
Number | Date | Country |
---|---|---|
1601511 | Mar 2005 | CN |
101551761 | Oct 2009 | CN |
1 450 257 | Aug 2004 | EP |
2 012 533 | Apr 2007 | EP |
1956484 | Aug 2008 | EP |
H07-500437 | Jan 1995 | JP |
2006-286002 | Oct 2006 | JP |
2006-293768 | Oct 2006 | JP |
2007-172456 | Jul 2007 | JP |
2008-217134 | Sep 2008 | JP |
2009-295032 | Dec 2009 | JP |
2009-295163 | Dec 2009 | JP |
2011-523140 | Aug 2011 | JP |
2013528861 | Jul 2013 | JP |
10-2007-0061795 | Jun 2007 | KR |
WO 0148620 | Jul 2001 | WO |
WO 2008127622 | Oct 2008 | WO |
WO 2009147741 | Dec 2009 | WO |
WO 2009148713 | Dec 2009 | WO |
WO2009148741 | Dec 2009 | WO |
Entry |
---|
State Intellectual Property Office of the People's Republic of China, 201180021681.4, Apr. 20, 2011, 2 pgs. |
Ruiz, Noel, “A Framework for Integrating Heterogeneous, Small-Scale Devices into Computational Grids and Clusters”, 2003, UCLA, 81 pgs. |
Berg, D., et al., “Data Flow Manager for DART”, Fermi National Accelerator Laboratory, Apr. 1994, San Francisco, CA, 5 pgs. |
Aaftab Munshi, The OpenCL Specification, Version: 1.1, Document Revision: 28, Khronos OpenCL Working Group, 377 pgs., Sep. 28, 2010. |
Aaftab Munshi, Khronos Group, “The Open CL Specification”, Version 1.0, Document Revision: 48, Khrono OpenCL Working Group, Oct. 6, 2009, 125 pages. |
PCT International Search Report and Written Opinion of the International Searching Authority for PCT/US2011/033282 filed Apr. 20, 2011. |
PCT International Preliminary Report on Patentability for PCT/US2011/033282 mailed Nov. 29, 2012. |
PCT International Search Report and Written Opinion for PCT International Appln No. PCT/US2011/022382 mailed Nov. 20, 2012. (7 pages). |
Tomomi, Sato et al., “Implementation Method of Communication Protocols Using Processor-per-layer Parallel Processing for Shared Memory Multiprocessor Systems”, Information Processing Society of Japan, Japan, Sep. 15, 1998, vol. 39, No. 9, pp. 2727-2740. |
K. Nishi, “General Purpose Computing on GPU—STI Stream and SDK”, IEICE 2009 article papers, Institute of Electronics, Information and Communication Engineers, Sep. 15, 2009, pp. ss-23 to 22-26. |
“Cell Broadband Engine Architecture”, Information Processing Society of Japan, Nov. 15, 2005, vol. 46, No. 11, pp. 1244-1250. |
Japanese Office Action for Japanese Patent Application No. 2014-145698 dated May 18, 2013. |
GPGPU Programming Using Host codes, Nikkei Win PC, Jan. 29, 2010, vol. 16, No. 4. pp. 148-149. |
Number | Date | Country | |
---|---|---|---|
20150187322 A1 | Jul 2015 | US |
Number | Date | Country | |
---|---|---|---|
61346866 | May 2010 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14254801 | Apr 2014 | US |
Child | 14575261 | US | |
Parent | 12892834 | Sep 2010 | US |
Child | 14254801 | US |