~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to src/plugins/select/bluegene/plugin/defined_block.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2010-04-16 22:15:07 UTC
  • mfrom: (1.1.13 upstream) (3.2.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100416221507-kgerb8bh654fwsgk
Tags: 2.1.7-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
                /* we only want to use bps that are in
74
74
                 * partitions
75
75
                 */
 
76
                if(!part_ptr->node_bitmap) {
 
77
                        debug4("Partition %s doesn't have any nodes in it.",
 
78
                               part_ptr->name);
 
79
                        continue;
 
80
                }
76
81
                bit_or(bitmap, part_ptr->node_bitmap);
77
82
        }
78
83
        list_iterator_destroy(itr);
79
84
 
80
85
        bit_not(bitmap);
 
86
        if(bit_ffs(bitmap) != -1) {
 
87
                fatal("We don't have any nodes in any partitions.  "
 
88
                      "Can't create blocks.  "
 
89
                      "Please check your slurm.conf.");
 
90
        }
81
91
        non_usable_nodes = bitmap2node_name(bitmap);
82
92
        removable_set_bps(non_usable_nodes);
83
93
        FREE_NULL_BITMAP(bitmap);
290
300
                /* we only want to use bps that are in
291
301
                 * partitions
292
302
                 */
 
303
                if(!part_ptr->node_bitmap) {
 
304
                        debug4("Partition %s doesn't have any nodes in it.",
 
305
                               part_ptr->name);
 
306
                        continue;
 
307
                }
293
308
                bit_or(bitmap, part_ptr->node_bitmap);
294
309
        }
295
310
        list_iterator_destroy(itr);