Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emper
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
Lehrstuhl für Informatik 4 (Systemsoftware)
manycore
emper
Commits
94c099e2
Commit
94c099e2
authored
3 years ago
by
Florian Schmaus
Browse files
Options
Downloads
Patches
Plain Diff
Add check_anywhere_queue_while_stealing meson option
parent
8338d9a2
No related branches found
Branches containing commit
No related tags found
1 merge request
!207
Add meson option for "check anywhere queue while stealing"
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
emper/Emper.hpp
+8
-0
8 additions, 0 deletions
emper/Emper.hpp
emper/strategies/AbstractWorkStealingScheduler.cpp
+2
-0
2 additions, 0 deletions
emper/strategies/AbstractWorkStealingScheduler.cpp
meson.build
+1
-0
1 addition, 0 deletions
meson.build
meson_options.txt
+6
-0
6 additions, 0 deletions
meson_options.txt
with
17 additions
and
0 deletions
emper/Emper.hpp
+
8
−
0
View file @
94c099e2
...
...
@@ -78,6 +78,14 @@ static const bool OVERFLOW_QUEUE =
#endif
;
static
const
bool
CHECK_ANYWHERE_QUEUE_WHILE_STEALING
=
#ifdef EMPER_CHECK_ANYWHERE_QUEUE_WHILE_STEALING
true
#else
false
#endif
;
auto
getFullVersion
()
->
std
::
string
;
static
const
bool
BLOCKED_CONTEXT_SET
=
...
...
This diff is collapsed.
Click to expand it.
emper/strategies/AbstractWorkStealingScheduler.cpp
+
2
−
0
View file @
94c099e2
...
...
@@ -205,6 +205,8 @@ popBottom:
auto
stolenFiber
=
tryStealFiberFrom
(
victim
);
if
(
stolenFiber
)
return
*
stolenFiber
;
if
constexpr
(
!
emper
::
CHECK_ANYWHERE_QUEUE_WHILE_STEALING
)
continue
;
// If we failed to steal from a certain number of victims, check
// the anywhere queue for new fibers.
if
(
i
==
checkAnywhereQueueAt
)
{
...
...
This diff is collapsed.
Click to expand it.
meson.build
+
1
−
0
View file @
94c099e2
...
...
@@ -37,6 +37,7 @@ conf_data.set('EMPER_WORKER_WAKEUP_STRATEGY', get_option('worker_wakeup_strategy
conf_data
.
set
(
'EMPER_LOCKED_WS_QUEUE'
,
get_option
(
'locked_ws_queue'
))
conf_data
.
set
(
'EMPER_LOCKED_MPSC_QUEUE'
,
get_option
(
'locked_mpsc_queue'
))
conf_data
.
set
(
'EMPER_OVERFLOW_QUEUE'
,
get_option
(
'overflow_queue'
))
conf_data
.
set
(
'EMPER_CHECK_ANYWHERE_QUEUE_WHILE_STEALING'
,
get_option
(
'check_anywhere_queue_while_stealing'
))
conf_data
.
set
(
'EMPER_STATS'
,
get_option
(
'stats'
))
conf_data
.
set
(
'EMPER_OVERFLOW_QUEUE'
,
get_option
(
'overflow_queue'
))
conf_data
.
set
(
'EMPER_BLOCKED_CONTEXT_SET'
,
get_option
(
'blocked_context_set'
))
...
...
This diff is collapsed.
Click to expand it.
meson_options.txt
+
6
−
0
View file @
94c099e2
...
...
@@ -98,6 +98,12 @@ option(
value
:
true
,
description
:
'Use an overflow queue in case scheduling queues become full'
,
)
option
(
'check_anywhere_queue_while_stealing'
,
type
:
'boolean'
,
value
:
true
,
description
:
'Check the anywhere queue after some failed stealed attempts'
,
)
option
(
'io'
,
type
:
'boolean'
,
...
...
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