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

« back to all changes in this revision

Viewing changes to src/plugins/checkpoint/ompi/checkpoint_ompi.c

  • 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
 *  checkpoint_ompi.c - OpenMPI slurm checkpoint plugin.
3
3
 *****************************************************************************
4
4
 *  Copyright (C) 2007 The Regents of the University of California.
 
5
 *  Copyright (C) 2008-2009 Lawrence Livermore National Security.
5
6
 *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
6
7
 *  Written by Morris Jette <jette1@llnl.gov>
7
 
 *  LLNL-CODE-402394.
 
8
 *  CODE-OCEC-09-009. All rights reserved.
8
9
 *  
9
10
 *  This file is part of SLURM, a resource management program.
10
 
 *  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.
11
13
 *  
12
14
 *  SLURM is free software; you can redistribute it and/or modify it under
13
15
 *  the terms of the GNU General Public License as published by the Free
98
100
 */
99
101
const char plugin_name[]        = "OpenMPI checkpoint plugin";
100
102
const char plugin_type[]        = "checkpoint/ompi";
101
 
const uint32_t plugin_version   = 90;
 
103
const uint32_t plugin_version   = 100;
102
104
 
103
105
/*
104
106
 * init() is called when the plugin is loaded, before any other functions
121
123
 * The remainder of this file implements the standard SLURM checkpoint API.
122
124
 */
123
125
 
124
 
extern int slurm_ckpt_op ( uint16_t op, uint16_t data,
125
 
                struct step_record * step_ptr, time_t * event_time,
126
 
                uint32_t *error_code, char **error_msg )
 
126
extern int slurm_ckpt_op (uint32_t job_id, uint32_t step_id, 
 
127
                          struct step_record *step_ptr, uint16_t op,
 
128
                          uint16_t data, char *image_dir, time_t * event_time, 
 
129
                          uint32_t *error_code, char **error_msg )
127
130
{
128
131
        int rc = SLURM_SUCCESS;
129
132
        struct check_job_info *check_ptr;
130
133
 
131
 
        xassert(step_ptr);
132
 
        check_ptr = (struct check_job_info *) step_ptr->check_job;
 
134
        if (!step_ptr)  /* batch job restore */
 
135
                return ESLURM_NOT_SUPPORTED;
 
136
        check_ptr = (struct check_job_info *)step_ptr->check_job;
133
137
        xassert(check_ptr);
134
138
 
135
139
        switch (op) {
308
312
        return SLURM_SUCCESS;
309
313
}
310
314
 
311
 
extern int slurm_ckpt_task_comp ( struct step_record * step_ptr, uint32_t task_id,
312
 
                                  time_t event_time, uint32_t error_code, char *error_msg )
313
 
{
314
 
        return SLURM_SUCCESS;
315
 
}
316
 
 
 
315
extern int slurm_ckpt_task_comp ( struct step_record * step_ptr, 
 
316
                                  uint32_t task_id, time_t event_time,
 
317
                                  uint32_t error_code, char *error_msg )
 
318
{
 
319
        return SLURM_SUCCESS;
 
320
}
 
321
 
 
322
extern int slurm_ckpt_stepd_prefork(void *slurmd_job)
 
323
{
 
324
        return SLURM_SUCCESS;
 
325
}
 
326
 
 
327
extern int slurm_ckpt_signal_tasks(void *slurmd_job)
 
328
{
 
329
        return ESLURM_NOT_SUPPORTED;
 
330
}
 
331
 
 
332
extern int slurm_ckpt_restart_task(void *slurmd_job, char *image_dir, int gtid)
 
333
{
 
334
        return ESLURM_NOT_SUPPORTED;
 
335
}