scheduling job with fake resource
This commit is contained in:
parent
5560ae91da
commit
088afe4ea0
12 changed files with 281 additions and 46 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "xce/types.h"
|
||||
|
||||
#define PREASON_BAD_RESREQ (1)
|
||||
#define PREASON_NO_RESOURCE (2)
|
||||
|
||||
extern void erase_job_preason(xce_job_preason_t*);
|
||||
extern int add_job_preason(xce_job_preason_t*, int, char*, char*);
|
||||
|
|
|
|||
15
src/include/xcealloc.h
Normal file
15
src/include/xcealloc.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#if !defined(_XCEALLOC_H_)
|
||||
|
||||
#define _XCEALLOC_H_ 1
|
||||
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "xce/types.h"
|
||||
|
||||
extern xce_alloc_t* make_alloc(char*, char*, int, float, int);
|
||||
extern xce_host_alloc_t* make_host_alloc(char*, int, xce_alloc_t**);
|
||||
extern xce_job_alloc_t* make_job_alloc(uint64_t, int, xce_host_alloc_t**);
|
||||
extern xce_alloc_t** make_allocs(int, ...);
|
||||
extern xce_host_alloc_t** make_host_allocs(int, ...);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue