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
c4c89d98
Commit
c4c89d98
authored
20 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Add macros to wrap rm_free_BGL for systems lacking multiple base
partitions and faultly BGL driver.
parent
b9714e3f
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/macros.h
+16
-0
16 additions, 0 deletions
src/common/macros.h
src/smap/partition_functions.c
+2
-15
2 additions, 15 deletions
src/smap/partition_functions.c
with
18 additions
and
15 deletions
src/common/macros.h
+
16
−
0
View file @
c4c89d98
...
@@ -151,6 +151,22 @@ typedef enum {false, true} bool;
...
@@ -151,6 +151,22 @@ typedef enum {false, true} bool;
# endif
# endif
#endif
#endif
#ifdef HAVE_BGL_FILES
/* We can't free the data on single base partition system without wires,
* It could also be a problem with old drivers (fails with driver 410).
* Once this is fixed, just call rm_free_BGL() directly. The bgl pointer
* should also be made into a non-static variable. Tests before calls
* to rm_get_BGL should be removed. */
# define slurm_rm_free_BGL(bgl) \
_STMT_START { \
int i; \
if ((rm_get_data(bgl, RM_SwitchNum, &i) == STATUS_OK) && (i > 0)) { \
if (rm_free_BGL(bgl) == STATUS_OK) bgl = NULL; \
} \
} _STMT_END
#endif
#ifdef WITH_PTHREADS
#ifdef WITH_PTHREADS
# define slurm_mutex_init(mutex) \
# define slurm_mutex_init(mutex) \
...
...
This diff is collapsed.
Click to expand it.
src/smap/partition_functions.c
+
2
−
15
View file @
c4c89d98
...
@@ -635,7 +635,7 @@ static void _read_part_db2(void)
...
@@ -635,7 +635,7 @@ static void _read_part_db2(void)
/* Add node name to existing BGL partition record */
/* Add node name to existing BGL partition record */
hostlist_push
(
block_ptr
->
hostlist
,
bgl_node
);
hostlist_push
(
block_ptr
->
hostlist
,
bgl_node
);
}
}
#if
def
_DEBUG
#if _DEBUG
fprintf
(
stderr
,
"part=%s, node=%s conn=%s mode=%s
\n
"
,
fprintf
(
stderr
,
"part=%s, node=%s conn=%s mode=%s
\n
"
,
part_id
,
bgl_node
,
part_id
,
bgl_node
,
_convert_conn_type
(
block_ptr
->
bgl_conn_type
),
_convert_conn_type
(
block_ptr
->
bgl_conn_type
),
...
@@ -646,20 +646,7 @@ static void _read_part_db2(void)
...
@@ -646,20 +646,7 @@ static void _read_part_db2(void)
/* perform post-processing for each bluegene partition */
/* perform post-processing for each bluegene partition */
list_for_each
(
block_list
,
_post_block_read
,
NULL
);
list_for_each
(
block_list
,
_post_block_read
,
NULL
);
/* We can't free the data on single base partition system
slurm_rm_free_BGL
(
bgl
);
* without wires, could also be a problem with old drivers.
* this fails with driver level 410. */
if
((
rc
=
rm_get_data
(
bgl
,
RM_SwitchNum
,
&
i
))
!=
STATUS_OK
)
{
fprintf
(
stderr
,
"rm_get_data(RM_SwitchNum): %s
\n
"
,
bgl_err_str
(
rc
));
return
;
}
if
(
i
==
0
)
return
;
if
((
rc
=
rm_free_BGL
(
bgl
))
!=
STATUS_OK
)
fprintf
(
stderr
,
"rm_free_BGL(): %s
\n
"
,
bgl_err_str
(
rc
));
else
bgl
=
NULL
;
#endif
#endif
}
}
...
...
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