Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
79084c06
Commit
79084c06
authored
Oct 14, 2017
by
Sebastian Woelke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix segfault after deactivating cores
parent
dacd4250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
libcaf_core/caf/policy/locality_guided_scheduling.hpp
libcaf_core/caf/policy/locality_guided_scheduling.hpp
+8
-0
No files found.
libcaf_core/caf/policy/locality_guided_scheduling.hpp
View file @
79084c06
...
@@ -308,6 +308,7 @@ public:
...
@@ -308,6 +308,7 @@ public:
xxx
(
current_pu
,
pu_dists
);
xxx
(
current_pu
,
pu_dists
);
// map PU ids to worker* sorted by its distance
// map PU ids to worker* sorted by its distance
result_wp_matrix
.
reserve
(
pu_dists
.
size
());
result_wp_matrix
.
reserve
(
pu_dists
.
size
());
size_t
current_idx
=
0
;
for
(
auto
&
pu_set_it
:
pu_dists
)
{
for
(
auto
&
pu_set_it
:
pu_dists
)
{
std
::
vector
<
Worker
*>
current_worker_group
;
std
::
vector
<
Worker
*>
current_worker_group
;
auto
pu_set
=
pu_set_it
.
second
.
get
();
auto
pu_set
=
pu_set_it
.
second
.
get
();
...
@@ -322,7 +323,14 @@ public:
...
@@ -322,7 +323,14 @@ public:
// current_worker_group can be empty if pus of this level are deactivated
// current_worker_group can be empty if pus of this level are deactivated
if
(
!
current_worker_group
.
empty
())
{
if
(
!
current_worker_group
.
empty
())
{
result_wp_matrix
.
emplace_back
(
std
::
move
(
current_worker_group
));
result_wp_matrix
.
emplace_back
(
std
::
move
(
current_worker_group
));
}
else
{
//update wp_matrix_first_node_idx
if
(
current_idx
<=
wp_matrix_first_node_idx
&&
wp_matrix_first_node_idx
!=
0
)
{
--
wp_matrix_first_node_idx
;
}
}
}
++
current_idx
;
}
}
//accumulate steal_groups - each group contains all lower level groups
//accumulate steal_groups - each group contains all lower level groups
auto
last_group_it
=
result_wp_matrix
.
begin
();
auto
last_group_it
=
result_wp_matrix
.
begin
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment