135 | | X = list of apps with versions for requested resources |
136 | | choose an app A from X, randomly based on weights |
137 | | V = version that uses requested resources |
138 | | and has highest FLOPS |
139 | | J = generate job |
140 | | if J is feasible |
141 | | update request |
142 | | else |
143 | | infeasible_count++ |
144 | | if infeasible_count == 10 |
145 | | break |
146 | | |
| 135 | X = list of P's apps with versions for requested resources |
| 136 | if X is empty |
| 137 | break |
| 138 | choose an app A from X, randomly based on weights |
| 139 | V = version that uses requested resources and has highest FLOPS |
| 140 | J = generate job |
| 141 | if J is feasible |
| 142 | update request |
| 143 | else |
| 144 | infeasible_count++ |
| 145 | if infeasible_count == 10 |
| 146 | break |