~ubuntu-branches/ubuntu/vivid/slurm-llnl/vivid

« back to all changes in this revision

Viewing changes to src/srun/opt.h

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2009-09-24 23:28:15 UTC
  • mfrom: (1.1.11 upstream) (3.2.4 sid)
  • Revision ID: james.westby@ubuntu.com-20090924232815-enh65jn32q1ebg07
Tags: 2.0.5-1
* New upstream release 
* Changed dependecy from lib-mysqlclient15 to lib-mysqlclient 
* Added Default-Start for runlevel 2 and 4 and $remote_fs requirement in
  init.d scripts (Closes: #541252)
* Postinst checks for wrong runlevels 2 and 4 links
* Upgraded to standard version 3.8.3
* Add lintian overrides for missing slurm-llnl-configurator.html in doc
  base registration
* modified postrm scripts to ignore pkill return value in order to avoid
  postrm failure when no slurm process is running
* Checking for slurmctld.pid before cancelling running and pending
  jobs during package removal 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************\
2
2
 *  opt.h - definitions for srun option processing
3
 
 *  $Id: opt.h 15808 2008-12-02 23:38:47Z da $
 
3
 *  $Id: opt.h 17903 2009-06-19 18:04:48Z jette $
4
4
 *****************************************************************************
5
 
 *  Copyright (C) 2002-2006 The Regents of the University of California.
 
5
 *  Copyright (C) 2002-2007 The Regents of the University of California.
 
6
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
6
7
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
8
 *  Written by Mark Grondona <grondona1@llnl.gov>, et. al.
8
 
 *  LLNL-CODE-402394.
 
9
 *  CODE-OCEC-09-009. All rights reserved.
9
10
 *  
10
11
 *  This file is part of SLURM, a resource management program.
11
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
12
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
13
 *  Please also read the included file: DISCLAIMER.
12
14
 *  
13
15
 *  SLURM is free software; you can redistribute it and/or modify it under
14
16
 *  the terms of the GNU General Public License as published by the Free
52
54
#include "src/common/env.h"
53
55
#include "src/srun/fname.h"
54
56
 
55
 
#define MAX_THREADS     60
56
 
#define MAX_USERNAME    9
 
57
#define DEFAULT_IMMEDIATE       1
 
58
#define MAX_THREADS             60
 
59
#define MAX_USERNAME            9
57
60
 
58
61
#define INT_UNASSIGNED ((int)-1)
59
62
 
62
65
 
63
66
extern enum modes mode;
64
67
 
65
 
#define format_task_dist_states(t) (t == SLURM_DIST_BLOCK) ? "block" :   \
66
 
                                 (t == SLURM_DIST_CYCLIC) ? "cyclic" : \
67
 
                                 (t == SLURM_DIST_PLANE) ? "plane" : \
68
 
                                 (t == SLURM_DIST_CYCLIC_CYCLIC) ? "cyclic:cyclic" : \
69
 
                                 (t == SLURM_DIST_CYCLIC_BLOCK) ? "cyclic:block" : \
70
 
                                 (t == SLURM_DIST_BLOCK_CYCLIC) ? "block:cyclic" : \
71
 
                                 (t == SLURM_DIST_BLOCK_BLOCK) ? "block:block" : \
72
 
                                 (t == SLURM_DIST_ARBITRARY) ? "arbitrary" : \
 
68
#define format_task_dist_states(t) \
 
69
        (t == SLURM_DIST_BLOCK) ? "block" :   \
 
70
        (t == SLURM_DIST_CYCLIC) ? "cyclic" : \
 
71
        (t == SLURM_DIST_PLANE) ? "plane" : \
 
72
        (t == SLURM_DIST_CYCLIC_CYCLIC) ? "cyclic:cyclic" : \
 
73
        (t == SLURM_DIST_CYCLIC_BLOCK) ? "cyclic:block" : \
 
74
        (t == SLURM_DIST_BLOCK_CYCLIC) ? "block:cyclic" : \
 
75
        (t == SLURM_DIST_BLOCK_BLOCK) ? "block:block" : \
 
76
        (t == SLURM_DIST_ARBITRARY) ? "arbitrary" : \
73
77
                                 "unknown"
74
78
 
75
79
typedef struct srun_options {
111
115
        char *time_limit_str;   /* --time,   -t (string)        */
112
116
        int  ckpt_interval;     /* --checkpoint (int minutes)   */
113
117
        char *ckpt_interval_str;/* --checkpoint (string)        */
114
 
        char *ckpt_path;        /* --checkpoint-path (string)   */
 
118
        char *ckpt_dir;         /* --checkpoint-dir (string)   */
115
119
        bool exclusive;         /* --exclusive                  */
 
120
        int  resv_port_cnt;     /* --resv_ports                 */
116
121
        char *partition;        /* --partition=n,   -p n        */
117
122
        enum task_dist_states
118
123
                distribution;   /* --distribution=, -m dist     */
143
148
        /*int verbose;*/        /* -v, --verbose                */      
144
149
        /*int debug;*/          /* -d, --debug                  */
145
150
 
146
 
        int immediate;          /* -i, --immediate              */
 
151
        int immediate;          /* -I, --immediate=secs         */
147
152
 
148
153
        bool hold;              /* --hold, -H                   */
149
154
        bool labelio;           /* --label-output, -l           */
165
170
        char *task_epilog;      /* --task-epilog=               */
166
171
        char *task_prolog;      /* --task-prolog=               */
167
172
        char *licenses;         /* --licenses, -L               */
 
173
        bool preserve_env;      /* --preserve-env               */
168
174
 
169
175
        /* constraint options */
170
176
        int32_t job_min_cpus;   /* --mincpus=n                  */
203
209
        time_t begin;           /* --begin                      */
204
210
        uint16_t mail_type;     /* --mail-type                  */
205
211
        char *mail_user;        /* --mail-user                  */
206
 
        char *ctrl_comm_ifhn;   /* --ctrl-comm-ifhn             */
207
212
        uint8_t open_mode;      /* --open-mode=append|truncate  */
208
213
        int acctg_freq;         /* --acctg-freq=secs            */
209
214
        bool pty;               /* --pty                        */
 
215
        char *restart_dir;      /* --restart                    */
210
216
        int argc;               /* length of argv array         */
211
217
        char **argv;            /* left over on command line    */
212
218
        char *wckey;            /* --wckey workload characterization key */
 
219
        char *reservation;      /* --reservation                */
213
220
} opt_t;
214
221
 
215
222
extern opt_t opt;