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
5a27bd9c
Commit
5a27bd9c
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Modify smap to build on non-BGL system.
parent
dd8fe34b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/smap/partition_functions.c
+13
-5
13 additions, 5 deletions
src/smap/partition_functions.c
src/smap/smap.h
+1
-0
1 addition, 0 deletions
src/smap/smap.h
with
14 additions
and
5 deletions
src/smap/partition_functions.c
+
13
−
5
View file @
5a27bd9c
...
@@ -276,6 +276,7 @@ static char *_part_state_str(rm_partition_state_t state)
...
@@ -276,6 +276,7 @@ static char *_part_state_str(rm_partition_state_t state)
{
{
static
char
tmp
[
16
];
static
char
tmp
[
16
];
#ifdef HAVE_BGL_FILES
switch
(
state
)
{
switch
(
state
)
{
case
RM_PARTITION_BUSY
:
case
RM_PARTITION_BUSY
:
return
"BUSY"
;
return
"BUSY"
;
...
@@ -291,10 +292,11 @@ static char *_part_state_str(rm_partition_state_t state)
...
@@ -291,10 +292,11 @@ static char *_part_state_str(rm_partition_state_t state)
return
"NAV"
;
return
"NAV"
;
case
RM_PARTITION_READY
:
case
RM_PARTITION_READY
:
return
"READY"
;
return
"READY"
;
default:
snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
state
);
return
tmp
;
}
}
#endif
snprintf
(
tmp
,
sizeof
(
tmp
),
"%d"
,
state
);
return
tmp
;
}
}
static
int
_print_text_part
(
partition_info_t
*
part_ptr
,
static
int
_print_text_part
(
partition_info_t
*
part_ptr
,
...
@@ -787,8 +789,14 @@ static db2_block_info_t *_find_part_db2(char *nodelist)
...
@@ -787,8 +789,14 @@ static db2_block_info_t *_find_part_db2(char *nodelist)
hostlist_destroy
(
hostlist
);
hostlist_destroy
(
hostlist
);
return
rc
;
return
rc
;
#else
#else
static
db2_block_info_t
dummy_block
=
{
"UNKNOWN"
,
""
,
SELECT_NAV
,
static
db2_block_info_t
dummy_block
;
SELECT_NAV_MODE
,
NULL
};
/* perform block initialization (once) using structure field names */
if
(
dummy_block
.
bgl_block_name
==
NULL
)
{
dummy_block
.
bgl_block_name
=
"UNKNOWN"
;
dummy_block
.
bgl_conn_type
=
SELECT_NAV
;
dummy_block
.
bgl_node_use
=
SELECT_NAV_MODE
;
}
return
&
dummy_block
;
return
&
dummy_block
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
src/smap/smap.h
+
1
−
0
View file @
5a27bd9c
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
typedef
char
*
pm_partition_id_t
;
typedef
char
*
pm_partition_id_t
;
typedef
int
rm_connection_type_t
;
typedef
int
rm_connection_type_t
;
typedef
int
rm_partition_mode_t
;
typedef
int
rm_partition_mode_t
;
typedef
int
rm_partition_state_t
;
typedef
uint16_t
rm_partition_t
;
typedef
uint16_t
rm_partition_t
;
typedef
char
*
rm_BGL_t
;
typedef
char
*
rm_BGL_t
;
typedef
char
*
rm_component_id_t
;
typedef
char
*
rm_component_id_t
;
...
...
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