Techniques for modifying an executable graph to perform a workload associated with a new task graph
Abstract
Techniques to modify executable graphs to perform different workloads. In at least one embodiment, an executable version of a first task graph is modified by applying a non-executable version of a second task graph to executable version of first task graph so that executable version of first task graph can perform a second workload of non-executable version of second task graph.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 43 · Forward citations: 0.
Claims (21 — 3 Independent, 18 Dependent)
- Claim 1Independent Claim
A non-transitory computer-readable medium that includes instructions that, when executed by one or more processors, cause the one or more processors to execute at least one application programming interface (API) call to modify a processor-executable version of a first task graph by applying one or more parameters of a non-processor-executable version of a second task graph to the processor-executable version of the first task graph to cause the modified processor-executable version of the first task graph to use one or more computing resources to perform one or more tasks differently than the processor-executable version of the first task graph before modification.
- Claim 2Depends on #1
The non-transitory computer-readable medium of claim 1, wherein the non-processor-executable version of the second task graph is applied to the processor-executable version of the first task graph by: comparing a first topology associated with the processor-executable version of the first task graph to a second topology associated with the non-processor-executable version of the second task graph; determining that the first topology is a same topology as the second topology; and applying one or more parameters of the non-processor-executable version of the second task graph to the processor-executable version of the first task graph.
- Claim 3Depends on #2
The non-transitory computer-readable medium of claim 2, wherein after the one or more parameters of the non-processor-executable version of the second task graph are applied to the processor-executable version of the first task graph, the processor-executable version of the first task graph, upon launch, configures one or more computing resources to perform a workload associated with the non-processor-executable version of the second task graph rather than a workload associated with a non-processor-executable version of the first task graph.
- Claim 4Depends on #2
The non-transitory computer-readable medium of claim 2, wherein, when a first parameter of the non-processor-executable version of the second task graph is applied to the processor-executable version of the first task graph, the first parameter does not interfere with an optimization that was incorporated into the processor-executable version of the first task graph when the processor-executable version of the first task graph was generated from the non-processor-executable version of the first task graph.
- Claim 5Depends on #2
The non-transitory computer-readable medium of claim 2, wherein applying a first parameter of the non-processor-executable version of the second task graph to a corresponding parameter of the processor-executable version of the first task graph changes the corresponding parameter, the corresponding parameter comprises: a pointer to a callback function on a host central processing unit or to an argument of the callback function for a host task associated with the processor-executable version of the first task graph; a location of a block of memory to set, a size of the block of memory, or a fill value of the block of memory for a memory set task associated with the processor-executable version of the first task graph; a location of a block of source memory, a location of a destination where contents of the source memory are to be copied, or a size of the block of source memory for a memory copy task associated with the processor-executable version of the first task graph; or a number of threads or one or more arguments for a kernel task associated with the processor-executable version of the first task graph.
- Claim 6Depends on #2
The non-transitory computer-readable medium of claim 2, wherein the first topology is compared to the second topology by: determining whether each node included in the first topology corresponds to a node included in the second topology having a same task type; and determining whether each node included in the second topology corresponds to a node included in the first topology having a same task type.
- Claim 7Depends on #6
The non-transitory computer-readable medium of claim 6, wherein a node included in the first topology corresponds to a node included in the second topology when both nodes are associated with a same creation order value.
- Claim 8Depends on #6
The non-transitory computer-readable medium of claim 6, wherein the first topology is further compared to the second topology by determining whether each node included in the first topology and a corresponding node included in the second topology have a same list of dependencies.
- Claim 9Depends on #6
The non-transitory computer-readable medium of claim 6, wherein the first topology is further compared to the second topology by determining whether the first topology and the second topology have a same number of nodes.
- Claim 10Independent Claim
A computer-implemented method for applying a new task graph to a processor-executable graph, the method comprising: modifying a processor-executable version of a first task graph by applying one or more parameters of a non-processor-executable version of a second task graph to the processor-executable version of the first task graph to cause the modified processor-executable version of the first task graph to use one or more computing resources to perform one or more tasks differently than the processor-executable version of the first task graph before modification.
- Claim 11Depends on #10
The computer-implemented method of claim 10, further comprising, after the non-processor-executable version of the second task graph is applied to the processor-executable version of the first task graph, the processor-executable version of the first task graph, upon launch, configures one or more computing resources to perform a workload associated with the non-processor-executable version of the second task graph rather than a workload associated with a non-processor-executable version of the first task graph.
- Claim 12Depends on #10
The computer-implemented method of claim 10, wherein applying the second task graph to the processor-executable version of the first task graph comprises: comparing a first topology of the processor-executable version of the first task graph to a second topology of the non-processor-executable version of the second task graph; and when the first topology is a same topology as the second topology, applying parameters of the second task graph to the processor-executable version of the first task graph.
- Claim 13Depends on #12
The computer-implemented method of claim 12, wherein applying a first parameter of the non-processor-executable version of the second task graph to a corresponding parameter of the processor-executable version of the first task graph changes the corresponding parameter, the corresponding parameter comprises: a pointer to a callback function on a host central processing unit or to an argument of the callback function for a host task associated with the processor-executable version of the first task graph; a location of a block of memory to set, a size of the block of memory, or a fill value of the block of memory for a memory set task associated with the processor-executable version of the first task graph; a location of a block of source memory, a location of a destination where contents of the source memory are to be copied, or a size of the block of source memory for a memory copy task associated with the processor-executable version of the first task graph; or a number of threads or one or more arguments for a kernel task associated with the processor-executable version of the first task graph.
- Claim 14Depends on #12
The computer-implemented method of claim 12, wherein comparing the first topology to the second topology comprises one or more of: determining whether the first topology and the second topology have a same number of nodes; determining whether each first node in the first topology has a corresponding second node in the second topology with a same task type; determining whether each second node in the second topology has a corresponding first node in the first topology with a same task type; determining whether each first node in the first topology and the corresponding second node in the second topology have a same list of dependencies; or determining whether each second node in the second topology and the corresponding first node in the first topology have a same list of dependencies.
- Claim 15Depends on #10
The computer-implemented method of claim 10, wherein at least one of the first task graph or the second task graph comprises a Compute Unified Device Architecture (CUDA) graph or an executable Heterogeneous compute Interface for Portability (HIP) graph.
- Claim 16Depends on #10
The computer-implemented method of claim 10, wherein applying the non-processor-executable version of the second task graph to the processor-executable version of the first task graph comprises adapting the processor-executable version of the first task graph to perform a workload of the second task graph.
- Claim 17Independent Claim
A computer-implemented method for applying a new task graph to an executable graph, the method comprising: generating a processor-executable task graph from a non-processor-executable first task graph, wherein the executable task graph configures one or more computing resources to perform a first workload associated with the non-processor-executable first task graph; and modifying the processor-executable task graph by applying one or more parameters of a non-processor-executable second task graph to the processor-executable task graph, wherein the modified processor-executable task graph configures the one or more computing resources differently than the processor-executable task graph before modification to perform a second workload that is associated with the non-processor-executable second task graph and is different than the first workload.
- Claim 18Depends on #17
The computer-implemented method of claim 17, wherein applying the non-processor-executable second task graph to the processor-executable task graph comprises: comparing a first topology of the processor-executable task graph to a second topology of the non-processor-executable second task graph; and when the first topology and the second topology are a same topology, applying parameters of the non-processor-executable second task graph to the processor-executable task graph.
- Claim 19Depends on #18
The computer-implemented method of claim 18, wherein comparing the first topology to the second topology comprises determining whether a first node in the first topology and a corresponding second node in the second topology have a same type and a same list of dependencies.
- Claim 20Depends on #19
The computer-implemented method of claim 19, wherein the corresponding second node corresponds to the first node when both the first node and the second node are associated with a same creation order value.
- Claim 21Depends on #17
The computer-implemented method of claim 17, wherein at least one of the first task graph or the second task graph comprises a Compute Unified Device Architecture (CUDA) graph or an executable Heterogeneous compute Interface for Portability (HIP) graph.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the priority benefit of the India Provisional Patent Application titled, “ TECHNIQUES FOR MODIFYING AN EXECUTABLE GRAPH TO PERFORM A WORKLOAD ASSOCIATED WITH A NEW TASK GRAPH, ” filed on Nov. 15, 2019 and having Serial Number 201941046676. The subject matter of this related application is hereby incorporated herein by reference. FIELD Various embodiments are described which relate generally to parallel computing and, more particularly, to techniques for modifying an executable graph to perform a workload associated with a new task graph. BACKGROUND Task graphs are a useful tool for modeling a workload corresponding to parallel computing tasks. In a task graph, computing tasks are modeled as nodes and dependencies among computing tasks are modeled as directed edges. To be usable to cause one or more computing resources to perform a workload, a task graph is converted to an executable graph. A workload is then performed by configuring, according to an executable graph, each of one or more computing resources to perform tasks, transferring data, if necessary, to one or more computing resources, and retrieving results from one or more computing resources. An executable graph can used multiple times to have a same workload performed multiple times. However, an executable graph is typically usable for only a single workload of a task graph from which that executable graph was created. As the foregoing illustrates, what is needed in the art are more effective techniques for using executable graphs to perform a workload associated with a new task graph. BRIEF DESCRIPTION OF THE DRAWINGS So that the manner in which the above recited features of the various embodiments can be understood in detail, a more particular description of the various embodiments, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings. It is to be noted, however, that the ap
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (43)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Bakoda et al.;
- “
- Analyzing CUDA Workloads Using a Detailed GPU Simulator
- ”
- , University of British Columbia, IEEE 2009; (Bakhoda.pdf; pp. 1-12) (Year: 2009).
- Extended European Search Report mailed Apr. 13, 2021, for Application No. 20206389.7, 11 pages.
- IEEE
- “
- IEEE Standard for Floating-Point Arithmetric
- ”