diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-21 11:54:13 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-21 11:54:13 +0530 |
commit | c3c983087206a0598b2610eed4dde02f15a0036f (patch) | |
tree | 2c90b3857f7d8f59ff9c2c723a9e05f16ec3c5bf /include | |
parent | 15a55c7f85c5d624e29c453d3f1c3af015123cdf (diff) |
evanix: add --solver flag
Diffstat (limited to 'include')
-rw-r--r-- | include/evanix.h | 3 | ||||
-rw-r--r-- | include/solver_greedy.h | 2 | ||||
-rw-r--r-- | include/solver_util.h | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/include/evanix.h b/include/evanix.h index df3e034..6832777 100644 --- a/include/evanix.h +++ b/include/evanix.h @@ -1,6 +1,8 @@ #include <stdbool.h> #include <stdint.h> +#include "jobs.h" + #ifndef EVANIX_H struct evanix_opts_t { @@ -12,6 +14,7 @@ struct evanix_opts_t { bool check_cache_status; char *system; uint32_t max_build; + int (*solver)(struct job **, struct job_clist *, int32_t); }; extern struct evanix_opts_t evanix_opts; diff --git a/include/solver_greedy.h b/include/solver_greedy.h index 5119818..b76aed9 100644 --- a/include/solver_greedy.h +++ b/include/solver_greedy.h @@ -1,3 +1,3 @@ #include "jobs.h" -int solver_greedy(struct job_clist *q, int32_t *max_build, struct job **job); +int solver_greedy(struct job **job, struct job_clist *q, int32_t resources); diff --git a/include/solver_util.h b/include/solver_util.h index 08f7f16..f1c8d41 100644 --- a/include/solver_util.h +++ b/include/solver_util.h @@ -15,6 +15,8 @@ struct jobid { void jobid_free(struct jobid *jid); int jobid_init(struct job_clist *q, struct jobid **job_ids); +int solver_fcfs(struct job **job, struct job_clist *q, + __attribute__((unused)) int32_t resources); #define SOLVER_UTIL_H #endif |