From c3c983087206a0598b2610eed4dde02f15a0036f Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sun, 21 Jul 2024 11:54:13 +0530 Subject: evanix: add --solver flag --- include/evanix.h | 3 +++ include/solver_greedy.h | 2 +- include/solver_util.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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 #include +#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 -- cgit v1.2.3