Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
7285cc57
Commit
7285cc57
authored
14 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
fixed extra debug
parent
26e810a9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/common/node_select.c
+1
-2
1 addition, 2 deletions
src/common/node_select.c
src/plugins/select/bgq/select_bgq.cc
+7
-11
7 additions, 11 deletions
src/plugins/select/bgq/select_bgq.cc
with
8 additions
and
13 deletions
src/common/node_select.c
+
1
−
2
View file @
7285cc57
...
@@ -159,7 +159,7 @@ typedef struct slurm_select_context {
...
@@ -159,7 +159,7 @@ typedef struct slurm_select_context {
static
int
select_context_cnt
=
-
1
;
static
int
select_context_cnt
=
-
1
;
static
int
select_context_default
=
-
1
;
static
int
select_context_default
=
-
1
;
/* If there is a new select plugin, list it here */
/* If there is a new select plugin, list it here */
static
char
*
select_plugin_list
=
"bluegene,cons_res,linear"
;
static
char
*
select_plugin_list
=
"
bgq,
bluegene,cons_res,linear"
;
static
slurm_select_context_t
*
select_context
=
NULL
;
static
slurm_select_context_t
*
select_context
=
NULL
;
static
pthread_mutex_t
select_context_lock
=
static
pthread_mutex_t
select_context_lock
=
PTHREAD_MUTEX_INITIALIZER
;
PTHREAD_MUTEX_INITIALIZER
;
...
@@ -346,7 +346,6 @@ extern int slurm_select_init(void)
...
@@ -346,7 +346,6 @@ extern int slurm_select_init(void)
one_name
=
strtok_r
(
names
,
","
,
&
last
);
one_name
=
strtok_r
(
names
,
","
,
&
last
);
while
(
one_name
)
{
while
(
one_name
)
{
full_name
=
xstrdup_printf
(
"select/%s"
,
one_name
);
full_name
=
xstrdup_printf
(
"select/%s"
,
one_name
);
info
(
"trying %s"
,
full_name
);
for
(
i
=
0
;
i
<
select_context_cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
select_context_cnt
;
i
++
)
{
if
(
!
strcmp
(
full_name
,
select_context
[
i
].
select_type
))
if
(
!
strcmp
(
full_name
,
select_context
[
i
].
select_type
))
break
;
break
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/select/bgq/select_bgq.cc
+
7
−
11
View file @
7285cc57
...
@@ -60,10 +60,13 @@ slurmdb_cluster_rec_t *working_cluster_rec = NULL;
...
@@ -60,10 +60,13 @@ slurmdb_cluster_rec_t *working_cluster_rec = NULL;
extern
"C"
{
extern
"C"
{
const
char
plugin_name
[]
=
"BG/Q node selection plugin"
;
/* for some reason the extern "C" wrap above doesn't work for these
const
char
plugin_type
[]
=
"select/bgq"
;
* const vars, so we have to explicitly set it for each one.
const
uint32_t
plugin_id
=
103
;
*/
const
uint32_t
plugin_version
=
100
;
extern
"C"
const
char
plugin_name
[]
=
"BG/Q node selection plugin"
;
extern
"C"
const
char
plugin_type
[]
=
"select/bgq"
;
extern
"C"
const
uint32_t
plugin_id
=
103
;
extern
"C"
const
uint32_t
plugin_version
=
100
;
/*
/*
* init() is called when the plugin is loaded, before any other functions
* init() is called when the plugin is loaded, before any other functions
...
@@ -79,13 +82,6 @@ extern int init ( void )
...
@@ -79,13 +82,6 @@ extern int init ( void )
SYSTEM_DIMENSIONS
);
SYSTEM_DIMENSIONS
);
#endif
#endif
#ifdef HAVE_BG_FILES
if
((
SELECT_MESH
!=
RM_MESH
)
||
(
SELECT_TORUS
!=
RM_TORUS
)
||
(
SELECT_NAV
!=
RM_NAV
))
fatal
(
"enum conn_type out of sync with rm_api.h"
);
#endif
verbose
(
"%s loading..."
,
plugin_name
);
verbose
(
"%s loading..."
,
plugin_name
);
/* if this is coming from something other than the controller
/* if this is coming from something other than the controller
we don't want to read the config or anything like that. */
we don't want to read the config or anything like that. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment