Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b61f2e0
authored
5 years ago
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Remove old import prohibiting compilation
parent
0cffce1c
Pipeline
#1248
failed with stages
in 26 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
app/playground/main.cpp
+1
-2
lib/pls/src/internal/scheduling/scheduler.cpp
+1
-3
No files found.
app/playground/main.cpp
View file @
7b61f2e0
...
@@ -7,8 +7,7 @@
...
@@ -7,8 +7,7 @@
#include <typeindex>
#include <typeindex>
#include <tuple>
#include <tuple>
#include <pls/internal/scheduling/root_task.h>
#include <pls/pls.h>
#include <pls/internal/helpers/unique_id.h>
int
main
()
{
int
main
()
{
...
...
This diff is collapsed.
Click to expand it.
lib/pls/src/internal/scheduling/scheduler.cpp
View file @
7b61f2e0
...
@@ -100,9 +100,7 @@ task *scheduler::steal_task() {
...
@@ -100,9 +100,7 @@ task *scheduler::steal_task() {
size_t
target
=
(
offset
+
i
)
%
num_threads
();
size_t
target
=
(
offset
+
i
)
%
num_threads
();
// Skip our self for stealing
// Skip our self for stealing
if
(
target
==
my_id
)
{
target
=
((
target
==
my_id
)
+
target
)
%
num_threads
();
continue
;
}
auto
target_state
=
thread_state_for
(
target
);
auto
target_state
=
thread_state_for
(
target
);
// TODO: See if we should re-try popping if it failed due to contention
// TODO: See if we should re-try popping if it failed due to contention
...
...
This diff is collapsed.
Click to expand it.
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