SLURM API Refence
cancel:
API | Description |
int slurm_kill_job (uint32_t job_id, uint16_t signal, uint16_t flags) |
|
int slurm_kill_job_step (uint32_t job_id, uint32_t step_id, uint16_t signal) |
|
int slurm_kill_job2(const char *job_id, uint16_t signal, uint16_t batch_flag) |
batch_flag并没有用 |
allocate:
API | Description |
int slurm_allocate_resources (job_desc_msg_t *req, resource_allocation_response_msg_t **resp) |
|
resource_allocation_response_msg_t * slurm_allocate_resources_blocking (const job_desc_msg_t *user_req, time_t timeout, void(*pending_callback)(uint32_t job_id)) |
|
int slurm_job_will_run (job_desc_msg_t *req) |
|
int slurm_job_step_create (job_step_create_request_msg_t *req, job_step_create_response_msg_t **resp) |
|
int slurm_allocation_lookup(uint32_t jobid, job_alloc_info_response_msg_t **info) |
|
int slurm_allocation_lookup_lite(uint32_t jobid, resource_allocation_response_msg_t **info) |
只查看资源分配 |
int slurm_sbcast_lookup(uint32_t jobid, job_sbcast_cred_msg_t **info) |
|
char *slurm_read_hostfile(char *filename, int n) |
helper function |
时间: 2024-10-20 23:41:57