source: trunk/pbs_drmaa/pbs_attrib.h @ 71

Revision 71, 5.8 KB checked in by mmamonski, 7 years ago (diff)

PBS Pro PBSE_HISTJOBID handled properlly

  • Property svn:keywords set to Id
Line 
1/* $Id$ */
2/*
3 *  FedStage DRMAA for PBS Pro
4 *  Copyright (C) 2006-2009  FedStage Systems
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 __PBS_DRMAA__PBS_ATTRIB_H
21#define __PBS_DRMAA__PBS_ATTRIB_H
22
23#ifdef HAVE_CONFIG_H
24#       include <config.h>
25#endif
26
27#include <drmaa_utils/common.h>
28
29fsd_template_t *pbsdrmaa_pbs_template_new(void);
30int pbsdrmaa_pbs_attrib_by_name( const char *name );
31
32#define PBSDRMAA_EXECUTION_TIME         "Execution_Time"
33#define PBSDRMAA_CHECKPOINT             "Checkpoint"
34#define PBSDRMAA_ERROR_PATH             "Error_Path"
35#define PBSDRMAA_GROUPS                 "group_list"
36#define PBSDRMAA_HOLD_TYPES             "Hold_Types"
37#define PBSDRMAA_JOIN_FILES             "Join_Path"
38#define PBSDRMAA_KEEP_FILES             "Keep_Files"
39/* #define PBSDRMAA_RESOURCES              "Resource_List" */
40#define PBSDRMAA_CPU_TIME_LIMIT         "Resource_List.cput"
41#define PBSDRMAA_FILE_SIZE_LIMIT        "Resource_List.file"
42#define PBSDRMAA_NICE                   "Resource_List.nice"
43#define PBSDRMAA_MEM_LIMIT              "Resource_List.mem"
44#define PBSDRMAA_VMEM_LIMIT             "Resource_List.vmem"
45#define PBSDRMAA_SINGLE_CPU_TIME_LIMIT  "Resource_List.pcput"
46#define PBSDRMAA_SINGLE_RSS_LIMIT       "Resource_List.pmem"
47#define PBSDRMAA_SINGLE_VMEM_LIMIT      "Resource_List.pvmem"
48#define PBSDRMAA_WALLTIME_LIMIT         "Resource_List.walltime"
49#define PBSDRMAA_ARCHITECTURE           "Resource_List.arch"
50#define PBSDRMAA_HOST                   "Resource_List.host"
51#define PBSDRMAA_NODES                  "Resource_List.nodes"
52#define PBSDRMAA_SOFTWARE               "Resource_List.software"
53#define PBSDRMAA_PLACE                  "Resource_List.place"
54#define PBSDRMAA_SELECT                 "Resource_List.select"
55#define PBSDRMAA_PROCS                  "Resource_List.procs"
56#define PBSDRMAA_NCPUS                  "Resource_List.ncpus"
57#define PBSDRMAA_MAIL_POINTS            "Mail_Points"
58#define PBSDRMAA_OUTPUT_PATH            "Output_Path"
59#define PBSDRMAA_PRIORITY               "Priority"
60#define PBSDRMAA_DESITINATION           "destination"
61#define PBSDRMAA_RERUNABLE              "Rerunable"
62#define PBSDRMAA_BULK_REQ               "job_array_request"
63#define PBSDRMAA_BULK_IDX               "job_array_id"
64#define PBSDRMAA_USERS                  "User_List"
65#define PBSDRMAA_JOB_ENVIRONMENT        "Variable_List"
66#define PBSDRMAA_ACCOUNT_NAME           "Account_Name"
67#define PBSDRMAA_EMAIL                  "Mail_Users"
68#define PBSDRMAA_JOB_NAME               "Job_Name"
69#define PBSDRMAA_SHELL                  "Shell_Path_List"
70#define PBSDRMAA_DEPEND                 "depend"
71#define PBSDRMAA_INTERACTIVE            "interactive"
72#define PBSDRMAA_STAGEIN                "stagein"
73#define PBSDRMAA_STAGEOUT               "stageout"
74/* additional job and general attribute names */
75#define PBSDRMAA_EXECUTION_HOST         "exec_host"
76#define PBSDRMAA_EXECUTION_VNODE        "exec_vnode" /* PBS PRO */
77#define PBSDRMAA_JOB_OWNER              "Job_Owner"
78#define PBSDRMAA_RESOURCES_USED         "resources_used"
79#define PBSDRMAA_JOB_STATE              "job_state"
80#define PBSDRMAA_QUEUE                  "queue"
81#define PBSDRMAA_SERVER                 "server"
82#define PBSDRMAA_COMMENT                "comment"
83#define PBSDRMAA_EXIT_STATUS            "exit_status"
84#define PBSDRMAA_START_TIME             "start_time"
85#define PBSDRMAA_EXTENSION              "extension"
86#define PBSDRMAA_SUBMIT_ARGS            "submit_args"
87#define PBSDRMAA_MTIME                  "mtime"
88#define PBSDRMAA_NODE_PROPERTIES        "pbsdrmaa.node_properties"
89#define PBSDRMAA_CUSTOM_RESOURCES       "pbsdrmaa.custom_resources"
90
91typedef enum {
92        PBSDRMAA_ATTR_EXECUTION_TIME,
93        PBSDRMAA_ATTR_CHECKPOINT,
94        PBSDRMAA_ATTR_ERROR_PATH,
95        PBSDRMAA_ATTR_GROUPS,
96        PBSDRMAA_ATTR_HOLD_TYPES,
97        PBSDRMAA_ATTR_JOIN_FILES,
98        PBSDRMAA_ATTR_KEEP_FILES,
99        /* PBSDRMAA_ATTR_RESOURCES, */
100        PBSDRMAA_ATTR_CPU_TIME_LIMIT,
101        PBSDRMAA_ATTR_FILE_SIZE_LIMIT,
102        PBSDRMAA_ATTR_NICE,
103        PBSDRMAA_ATTR_VMEM_LIMIT,
104        PBSDRMAA_ATTR_MEM_LIMIT,
105        PBSDRMAA_ATTR_SINGLE_CPU_TIME_LIMIT,
106        PBSDRMAA_ATTR_SINGLE_RSS_LIMIT,
107        PBSDRMAA_ATTR_SINGLE_VMEM_LIMIT,
108        PBSDRMAA_ATTR_WALLTIME_LIMIT,
109        PBSDRMAA_ATTR_ARCHITECTURE,
110        PBSDRMAA_ATTR_HOST,
111        PBSDRMAA_ATTR_NODES,
112        PBSDRMAA_ATTR_PROCS,
113        PBSDRMAA_ATTR_NCPUS,
114        PBSDRMAA_ATTR_SOFTWARE,
115        PBSDRMAA_ATTR_PLACE,
116        PBSDRMAA_ATTR_SELECT,
117        PBSDRMAA_ATTR_MAIL_POINTS,
118        PBSDRMAA_ATTR_OUTPUT_PATH,
119        PBSDRMAA_ATTR_PRIORITY,
120        PBSDRMAA_ATTR_DESITINATION,
121        PBSDRMAA_ATTR_RERUNABLE,
122        PBSDRMAA_ATTR_BULK_REQ,
123        PBSDRMAA_ATTR_BULK_IDX,
124        PBSDRMAA_ATTR_USERS,
125        PBSDRMAA_ATTR_JOB_ENVIRONMENT,
126        PBSDRMAA_ATTR_ACCOUNT_NAME,
127        PBSDRMAA_ATTR_EMAIL,
128        PBSDRMAA_ATTR_JOB_NAME,
129        PBSDRMAA_ATTR_SHELL,
130        PBSDRMAA_ATTR_DEPEND,
131        PBSDRMAA_ATTR_INTERACTIVE,
132        PBSDRMAA_ATTR_STAGEIN,
133        PBSDRMAA_ATTR_STAGEOUT,
134        /* additional job and general attribute names */
135        PBSDRMAA_ATTR_EXECUTION_HOST,
136        PBSDRMAA_ATTR_EXECUTION_VNODE, /* PBS PRO */
137        PBSDRMAA_ATTR_JOB_OWNER,
138        PBSDRMAA_ATTR_RESOURCES_USED,
139        PBSDRMAA_ATTR_JOB_STATE,
140        PBSDRMAA_ATTR_QUEUE,
141        PBSDRMAA_ATTR_SERVER,
142        PBSDRMAA_ATTR_COMMENT,
143        PBSDRMAA_ATTR_EXIT_STATUS,
144        PBSDRMAA_ATTR_START_TIME,
145        PBSDRMAA_ATTR_EXTENSION,
146        PBSDRMAA_ATTR_SUBMIT_ARGS,
147        PBSDRMAA_ATTR_MTIME,
148        PBSDRMAA_ATTR_NODE_PROPERTIES,
149        PBSDRMAA_ATTR_CUSTOM_RESOURCES,
150
151        PBSDRMAA_N_PBS_ATTRIBUTES
152} pbs_attribute_t;
153
154#endif /* __PBS_DRMAA__PBS_ATTRIB_H */
155
Note: See TracBrowser for help on using the repository browser.