Application programming interface to indicate null-operation dependencies
Apparatuses, systems, and techniques to perform an application programming interface (API) to add one or more graph nodes to a software graph, wherein the API is to cause a null-operation graph node to be added to a software graph, based, at least in part, on a dependency type indicated by the API. In at least one embodiment, one or more nodes are added to a graph in accordance to one or more dependency types.
1 . A processor comprising:
one or more core complexes, wherein the one or more core complexes include one or more central processing unit (CPU) cores;
one or more graphics complexes, wherein the one or more graphics complexes include one or more compute units (CUs);
an L2 cache;
one or more fabric interconnects;
a memory controller; and
one or more input/output (I/O) interfaces comprising a peripheral component interconnect express (PCIe) interface;
wherein:
the processor is to perform a graph add empty node (GraphAddEmptyNode) application program interface (API) to add an empty node to a graph;
wherein the GraphAddEmpty Node API uses:
a pGraphNode parameter to indicate a node pointer;
a graph parameter to indicate a graph;
a pDependencies parameter to indicate a dependency pointer; and
a numDependencies parameter to indicate a number of dependencies.
2 . The processor of claim 1 , wherein the GraphAddEmptyNode API is to generate the empty node to be added to the graph.
3 . The processor of claim 1 , wherein the node pointer is a pointer to an address corresponding to one or more nodes to be created by the GraphAddEmptyNode API.
4 . The processor of claim 1 , wherein the dependency pointer is to include information corresponding to one or more dependencies between a node indicated by the node pointer and one or more other nodes of the graph indicated by the graph parameter.
5 . The processor of claim 1 , wherein the numDependencies parameter is to indicate a number of dependencies associated with a node indicated by the node pointer.
6 . The processor of claim 1 , wherein the GraphAddEmptyNode API is to generate a status indicating success or failure of performance of the GraphAddEmptyNode API.
7 . The processor of claim 1 , wherein the one or more CUs are to share the L2 cache.
8 . A system comprising:
memory; and
a processor comprising:
one or more core complexes, wherein the one or more core complexes include one or more central processing unit (CPU) cores;
one or more graphics complexes, wherein the one or more graphics complexes include one or more compute units (CUs);
an L2 cache;
one or more fabric interconnects;
a memory controller; and
one or more input/output (I/O) interfaces comprising a peripheral component interconnect express (PCIe) interface;
wherein:
the processor is to perform a graph add empty node (GraphAddEmptyNode) application program interface (API) to add an empty node to a graph;
wherein the GraphAddEmptyNode API uses:
a pGraphNode parameter to indicate a node pointer;
a graph parameter to indicate a graph;
a pDependencies parameter to indicate a dependency pointer; and
a numDependencies parameter to indicate a number of dependencies.
9 . The system of claim 8 , wherein the GraphAddEmptyNode API is to generate the empty node to be added to the graph.
10 . The system of claim 8 , wherein the node pointer is a pointer to an address corresponding to one or more nodes to be created by the GraphAddEmptyNode API.
11 . The system of claim 8 , wherein the dependency pointer is to include information corresponding to one or more dependencies between a node indicated by the node pointer and one or more other nodes of the graph indicated by the graph parameter.
12 . The system of claim 8 , wherein the numDependencies parameter is to indicate a number of dependencies associated with a node indicated by the node pointer.
13 . The system of claim 8 , wherein the GraphAddEmptyNode API is to generate a status indicating success or failure of performance of the GraphAddEmptyNode API.
14 . The system of claim 8 , wherein the one or more CUs are to share the L2 cache.
15 . A method comprising:
performing a graph add empty node (GraphAddEmptyNode) application program interface (API) to add an empty node to a graph;
wherein the GraphAddEmpty Node API uses:
a pGraphNode parameter to indicate a node pointer;
a graph parameter to indicate a graph;
a pDependencies parameter to indicate a dependency pointer; and
a numDependencies parameter to indicate a number of dependencies;
wherein the GraphAddEmptyNode API is to be performed by a processor comprising:
one or more core complexes, wherein the one or more core complexes include one or more central processing unit (CPU) cores;
one or more graphics complexes, wherein the one or more graphics complexes include one or more compute units (CUs);
an L2 cache;
one or more fabric interconnects;
a memory controller; and
one or more input/output (I/O) interfaces comprising a peripheral component interconnect express (PCIe) interface.
16 . The method of claim 15 , wherein the GraphAddEmptyNode API is to generate the empty node to be added to the graph.
17 . The method of claim 15 , wherein the node pointer is a pointer to an address corresponding to one or more nodes to be created by the GraphAddEmptyNode API.
18 . The method of claim 15 , wherein the dependency pointer is to include information corresponding to one or more dependencies between a node indicated by the node pointer and one or more other nodes of the graph indicated by the graph parameter.
19 . The method of claim 15 , wherein the numDependencies parameter is to indicate a number of dependencies associated with a node indicated by the node pointer.
20 . The method of claim 15 , wherein the GraphAddEmptyNode API is to generate a status indicating success or failure of performance of the GraphAddEmptyNode API.