scheduling job with fake resource

This commit is contained in:
Rongsong Shen 2025-12-23 18:12:13 +08:00
parent 5560ae91da
commit 088afe4ea0
12 changed files with 281 additions and 46 deletions

15
src/include/xcealloc.h Normal file
View 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