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

« back to all changes in this revision

Viewing changes to src/salloc/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:
2
2
 *  opt.h - definitions for salloc option processing
3
3
 *****************************************************************************
4
4
 *  Copyright (C) 2002-2007 The Regents of the University of California.
5
 
 *  Copyright (C) 2008 Lawrence Livermore National Security.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
6
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
 *  Written by Mark Grondona <grondona1@llnl.gov>,
8
8
 *    Christopher J. Morrone <morrone2@llnl.gov>, et. al.
9
 
 *  LLNL-CODE-402394.
 
9
 *  CODE-OCEC-09-009. All rights reserved.
10
10
 *  
11
11
 *  This file is part of SLURM, a resource management program.
12
 
 *  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.
13
14
 *  
14
15
 *  SLURM is free software; you can redistribute it and/or modify it under
15
16
 *  the terms of the GNU General Public License as published by the Free
33
34
#  include "config.h"
34
35
#endif
35
36
 
 
37
#include <sys/types.h>
36
38
#include <time.h>
37
 
#include <sys/types.h>
38
39
#include <unistd.h>
39
40
 
 
41
#include "src/common/env.h"
40
42
#include "src/common/macros.h" /* true and false */
41
 
#include "src/common/env.h"
42
43
 
43
 
#define MAX_USERNAME    9
44
 
#define DEFAULT_BELL_DELAY 10
 
44
#define DEFAULT_IMMEDIATE       1
 
45
#define MAX_USERNAME            9
 
46
#define DEFAULT_BELL_DELAY      10
45
47
 
46
48
typedef enum {BELL_NEVER, BELL_AFTER_DELAY, BELL_ALWAYS} bell_flag_t;
47
49
 
72
74
        int ntasks_per_socket; /* --ntasks-per-socket=n     */
73
75
        int ntasks_per_core;   /* --ntasks-per-core=n       */
74
76
        cpu_bind_type_t cpu_bind_type; /* --cpu_bind=           */
 
77
        char *cpu_bind;         /* binding map for map/mask_cpu */
 
78
        mem_bind_type_t mem_bind_type; /* --mem_bind=           */
 
79
        char *mem_bind;         /* binding map for map/mask_mem */
75
80
        bool extra_set;         /* true if extra node info explicitly set */
76
81
        int  time_limit;        /* --time,   -t (int minutes)   */
77
82
        char *time_limit_str;   /* --time,   -t (string)        */
88
93
        char *account;          /* --account, -U acct_name      */
89
94
        char *comment;          /* --comment                    */
90
95
 
91
 
        int immediate;          /* -i, --immediate              */
 
96
        int immediate;          /* -I, --immediate              */
92
97
 
93
98
        bool hold;              /* --hold, -H                   */
94
99
        bool no_kill;           /* --no-kill, -k                */
135
140
        int get_user_env_time;  /* --get-user-env[=secs]        */
136
141
        int get_user_env_mode;  /* --get-user-env=[S|L]         */
137
142
        char *cwd;              /* current working directory    */
 
143
        char *reservation;      /* --reservation                */
138
144
        char *wckey;            /* --wckey workload characterization key */
139
145
} opt_t;
140
146