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

« back to all changes in this revision

Viewing changes to src/srun/allocate.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
 * src/srun/allocate.h - node allocation functions for srun
3
 
 * $Id: allocate.h 14570 2008-07-18 22:06:26Z da $
 
3
 * $Id: allocate.h 17313 2009-04-21 20:28:06Z lipari $
4
4
 *****************************************************************************
5
5
 *  Copyright (C) 2002 The Regents of the University of California.
6
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
7
7
 *  Written by Mark Grondona <mgrondona@llnl.gov>.
8
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
9
9
 *  
10
10
 *  This file is part of SLURM, a resource management program.
11
 
 *  For details, see <http://www.llnl.gov/linux/slurm/>.
 
11
 *  For details, see <https://computing.llnl.gov/linux/slurm/>.
 
12
 *  Please also read the included file: DISCLAIMER.
12
13
 *  
13
14
 *  SLURM is free software; you can redistribute it and/or modify it under
14
15
 *  the terms of the GNU General Public License as published by the Free
44
45
#include "src/srun/srun_job.h"
45
46
 
46
47
typedef struct slurmctld_communication_addr {
47
 
        char *hostname;
48
48
        uint16_t port;
49
49
} slurmctld_comm_addr_t;
50
50
 
89
89
void job_desc_msg_destroy (job_desc_msg_t *j);
90
90
 
91
91
/*
92
 
 * Check for SLURM_JOBID environment variable, and if it is a valid
 
92
 * Check for SLURM_JOB_ID environment variable, and if it is a valid
93
93
 * jobid, return a pseudo allocation response pointer.
94
94
 *
95
 
 * Returns NULL if SLURM_JOBID is not present or is invalid.
 
95
 * Returns NULL if SLURM_JOB_ID is not present or is invalid.
96
96
 */
97
97
resource_allocation_response_msg_t * existing_allocation(void);
98
98
 
99
99
/*
100
 
 * Return the jobid number stored in SLURM_JOBID env var
101
 
 *
102
 
 * Returns 0 if SLURM_JOBID is not set in current environment, or
103
 
 * is invalid.
104
 
 */
105
 
uint32_t jobid_from_env(void);
106
 
 
107
 
/*
108
100
 * Create a job step given the job information stored in 'j'
109
101
 * After returning, 'j' is filled in with information for job step.
 
102
 * IN use_all_cpus - true to use every CPU allocated to the job
110
103
 *
111
104
 * Returns -1 if job step creation failure, 0 otherwise
112
105
 */
113
 
int create_job_step(srun_job_t *j);
 
106
int create_job_step(srun_job_t *j, bool use_all_cpus);
114
107
 
115
108
/* set the job for debugging purpose */
116
109
void set_allocate_job(srun_job_t *job);