kupl_graph_destroy
Destroy a KUPL dynamic graph.
Interface Definition
void kupl_graph_destroy(kupl_graph_h graph);
Parameters
Parameter |
Type |
Description |
Input/Output |
|---|---|---|---|
graph |
kupl_graph_h |
KUPL graph to be destroyed. |
Input |
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <stdio.h> #include "kupl.h" int main() { int executor_num = kupl_get_num_executors(); int executors[executor_num]; for (int i =0; i < executor_num; i++) { executors[i] = i; } kupl_egroup_h egroup = kupl_egroup_create(executors, executor_num); kupl_graph_h graph = kupl_graph_create(egroup); kupl_graph_destroy(graph); kupl_egroup_destroy(egroup); return 0; } |
The preceding example demonstrates how to create and then destroy an egroup and a graph. The preceding kupl_graph_destroy function destroys the created graph.
Parent topic: Computational Graph Programming Functions