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
db70a750
Commit
db70a750
authored
13 years ago
by
Danny Auble
Browse files
Options
Downloads
Patches
Plain Diff
BGQ - Added initial poll to set up hardware state
parent
0d561651
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/select/bluegene/bl_bgq/bridge_status.cc
+10
-2
10 additions, 2 deletions
src/plugins/select/bluegene/bl_bgq/bridge_status.cc
with
10 additions
and
2 deletions
src/plugins/select/bluegene/bl_bgq/bridge_status.cc
+
10
−
2
View file @
db70a750
...
...
@@ -662,7 +662,7 @@ static void _do_hardware_poll(int level, uint16_t *coords,
static
void
*
_poll
(
void
*
no_data
)
{
event_handler_t
event_hand
;
time_t
last_ran
=
0
;
static
time_t
last_ran
=
0
;
time_t
curr_time
;
while
(
bridge_status_inited
)
{
...
...
@@ -674,7 +674,8 @@ static void *_poll(void *no_data)
}
//debug("polling taking over, realtime is dead");
curr_time
=
time
(
NULL
);
_do_block_poll
();
if
(
blocks_are_created
)
_do_block_poll
();
/* only do every 30 seconds */
if
((
curr_time
-
30
)
>=
last_ran
)
{
ComputeHardware
::
ConstPtr
bgqsys
=
getComputeHardware
();
...
...
@@ -684,6 +685,10 @@ static void *_poll(void *no_data)
}
slurm_mutex_unlock
(
&
rt_mutex
);
/* This means we are doing outside of the thread so
break */
if
(
!
blocks_are_created
)
break
;
sleep
(
1
);
}
return
NULL
;
...
...
@@ -704,6 +709,9 @@ extern int bridge_status_init(void)
if
(
!
kill_job_list
)
kill_job_list
=
bg_status_create_kill_job_list
();
/* get initial state */
_poll
(
NULL
);
rt_client_ptr
=
new
(
bgsched
::
realtime
::
Client
);
slurm_attr_init
(
&
thread_attr
);
...
...
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