1 | /* $Id$ */ |
---|
2 | /* |
---|
3 | * PSNC DRMAA for SLURM |
---|
4 | * Copyright (C) 2011 Poznan Supercomputing and Networking Center |
---|
5 | * |
---|
6 | * This program is free software: you can redistribute it and/or modify |
---|
7 | * it under the terms of the GNU General Public License as published by |
---|
8 | * the Free Software Foundation, either version 3 of the License, or |
---|
9 | * (at your option) any later version. |
---|
10 | * |
---|
11 | * This program is distributed in the hope that it will be useful, |
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
14 | * GNU General Public License for more details. |
---|
15 | * |
---|
16 | * You should have received a copy of the GNU General Public License |
---|
17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
18 | */ |
---|
19 | |
---|
20 | #ifndef __SLURM_DRMAA__JOB_H |
---|
21 | #define __SLURM_DRMAA__JOB_H |
---|
22 | |
---|
23 | #ifdef HAVE_CONFIG_H |
---|
24 | # include <config.h> |
---|
25 | #endif |
---|
26 | |
---|
27 | #include <drmaa_utils/job.h> |
---|
28 | #include <drmaa_utils/environ.h> |
---|
29 | |
---|
30 | #include <slurm/slurm.h> |
---|
31 | |
---|
32 | typedef struct slurmdrmaa_job_s slurmdrmaa_job_t; |
---|
33 | |
---|
34 | fsd_job_t * |
---|
35 | slurmdrmaa_job_new(char *job_id ); |
---|
36 | |
---|
37 | struct slurmdrmaa_job_s { |
---|
38 | fsd_job_t super; |
---|
39 | |
---|
40 | /* job priority before hold */ |
---|
41 | uint32_t old_priority; |
---|
42 | bool user_suspended; |
---|
43 | }; |
---|
44 | |
---|
45 | void slurmdrmaa_job_create_req(fsd_drmaa_session_t *session,const fsd_template_t *jt,fsd_environ_t **envp, job_desc_msg_t * job_desc, int n_job ); |
---|
46 | void slurmdrmaa_job_create(fsd_drmaa_session_t *session,const fsd_template_t *jt,fsd_environ_t **envp,fsd_expand_drmaa_ph_t *expand, job_desc_msg_t * job_desc, int n_job); |
---|
47 | |
---|
48 | #endif /* __SLURM_DRMAA__JOB_H */ |
---|
49 | |
---|