~ubuntu-branches/ubuntu/trusty/slurm-llnl/trusty

« back to all changes in this revision

Viewing changes to src/plugins/select/linear/select_linear.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2010-09-03 18:03:29 UTC
  • mfrom: (3.3.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100903180329-t0t8mtvk2eoctoso
Tags: 2.1.14-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
 * the slurmctld we will have these symbols defined.  They will get
82
82
 * overwritten when linking with the slurmctld.
83
83
 */
84
 
slurm_ctl_conf_t slurmctld_conf;
85
 
struct node_record *node_record_table_ptr;
86
 
List part_list;
87
 
List job_list;
88
 
int node_record_count;
89
 
time_t last_node_update;
90
 
struct switch_record *switch_record_table;
91
 
int switch_record_cnt;
 
84
#if defined (__APPLE__)
 
85
        slurm_ctl_conf_t slurmctld_conf __attribute__((weak_import));
 
86
        struct node_record *node_record_table_ptr __attribute__((weak_import));
 
87
        List part_list __attribute__((weak_import));
 
88
        List job_list __attribute__((weak_import));
 
89
        int node_record_count __attribute__((weak_import));
 
90
        time_t last_node_update __attribute__((weak_import));
 
91
        struct switch_record *switch_record_table __attribute__((weak_import));
 
92
        int switch_record_cnt __attribute__((weak_import));
 
93
#else
 
94
        slurm_ctl_conf_t slurmctld_conf;
 
95
        struct node_record *node_record_table_ptr;
 
96
        List part_list;
 
97
        List job_list;
 
98
        int node_record_count;
 
99
        time_t last_node_update;
 
100
        struct switch_record *switch_record_table;
 
101
        int switch_record_cnt;
 
102
#endif
92
103
 
93
104
struct select_nodeinfo {
94
105
        uint16_t magic;         /* magic number */
1127
1138
                        best_fit_inx = j;
1128
1139
        }
1129
1140
        if (best_fit_inx == -1) {
1130
 
                error("job %u: best_fit topology failure", job_ptr->job_id);
 
1141
                debug("job %u: best_fit topology failure", job_ptr->job_id);
1131
1142
                rc = EINVAL;
1132
1143
                goto fini;
1133
1144
        }