diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-10-02 06:10:13 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-02-12 06:55:16 -0500 |
| commit | 5b01c84940965f053f5eacd401a132a2008dac71 (patch) | |
| tree | 0f5300f1aaef06e30e15147b42e5f66d2745f1d0 /native/include | |
| parent | 9a62e1d8e573973a5a094d9e9458fd444aed1231 (diff) | |
Add generic LP support for shared-memory protocols
Diffstat (limited to 'native/include')
| -rw-r--r-- | native/include/lp_common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/native/include/lp_common.h b/native/include/lp_common.h index f5b49d9..06c5e78 100644 --- a/native/include/lp_common.h +++ b/native/include/lp_common.h | |||
| @@ -89,6 +89,14 @@ void set_blocking_objective( | |||
| 89 | LinearExpression *local_obj = 0, | 89 | LinearExpression *local_obj = 0, |
| 90 | LinearExpression *remote_obj = 0); | 90 | LinearExpression *remote_obj = 0); |
| 91 | 91 | ||
| 92 | void set_blocking_objective_part_shm( | ||
| 93 | VarMapper& vars, | ||
| 94 | const ResourceSharingInfo& info, | ||
| 95 | const TaskInfo& ti, | ||
| 96 | LinearProgram& lp, | ||
| 97 | LinearExpression *local_obj = 0, | ||
| 98 | LinearExpression *remote_obj = 0); | ||
| 99 | |||
| 92 | void add_mutex_constraints(VarMapper& vars, | 100 | void add_mutex_constraints(VarMapper& vars, |
| 93 | const ResourceSharingInfo& info, | 101 | const ResourceSharingInfo& info, |
| 94 | const TaskInfo& ti, LinearProgram& lp); | 102 | const TaskInfo& ti, LinearProgram& lp); |
| @@ -104,6 +112,12 @@ void add_local_lower_priority_constraints( | |||
| 104 | const TaskInfo& ti, | 112 | const TaskInfo& ti, |
| 105 | LinearProgram& lp); | 113 | LinearProgram& lp); |
| 106 | 114 | ||
| 115 | void add_topology_constraints_shm( | ||
| 116 | VarMapper& vars, | ||
| 117 | const ResourceSharingInfo& info, | ||
| 118 | const TaskInfo& ti, | ||
| 119 | LinearProgram& lp); | ||
| 120 | |||
| 107 | // A generic for loop that iterates 'request_index_variable' from 0 to the | 121 | // A generic for loop that iterates 'request_index_variable' from 0 to the |
| 108 | // maximum number of requests issued by task tx while ti is pending. 'tx_request' | 122 | // maximum number of requests issued by task tx while ti is pending. 'tx_request' |
| 109 | // should be of type RequestBound&. | 123 | // should be of type RequestBound&. |
