Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chameleon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
Chameleon
Commits
b68718b7
Commit
b68718b7
authored
9 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup some todo
parent
cfff03f3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/starpu/control/runtime_control.c
+17
-15
17 additions, 15 deletions
runtime/starpu/control/runtime_control.c
with
17 additions
and
15 deletions
runtime/starpu/control/runtime_control.c
+
17
−
15
View file @
b68718b7
...
@@ -48,27 +48,29 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n
...
@@ -48,27 +48,29 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n
conf
->
ncuda
=
ncudas
;
conf
->
ncuda
=
ncudas
;
conf
->
nopencl
=
0
;
conf
->
nopencl
=
0
;
/* By default, use the dmdas strategy */
if
(
!
getenv
(
"STARPU_SCHED"
))
conf
->
sched_policy_name
=
"dmdas"
;
/* By default, enable calibration */
/* By default, enable calibration */
if
(
!
getenv
(
"STARPU_CALIBRATE"
))
if
(
!
getenv
(
"STARPU_CALIBRATE"
))
conf
->
calibrate
=
1
;
conf
->
calibrate
=
1
;
/* Set scheduling to "ws" if no cuda devices used because it behaves better
/* By default, use the dmdas strategy */
* on homognenous architecture. If the user wants to use another
if
(
!
getenv
(
"STARPU_SCHED"
))
{
* scheduling strategy, he can set STARPU_SCHED env. var. to whatever he
if
(
conf
->
ncuda
>
0
)
{
* wants
conf
->
sched_policy_name
=
"dmdas"
;
* TODO: discuss this with ManuMathieu
}
* reference, we should use "lws" strategy
else
{
*/
/**
if
(
!
getenv
(
"STARPU_SCHED"
)
&&
conf
->
ncuda
==
0
)
* Set scheduling to "ws"/"lws" if no cuda devices used because it
#if STARPU_MAJOR_VERSION > 1 || (STARPU_MAJOR_VERSION == 1 && STARPU_MINOR_VERSION >= 2)
* behaves better on homogneneous architectures. If the user wants
conf
->
sched_policy_name
=
"lws"
;
* to use another scheduling strategy, he can set STARPU_SCHED
* env. var. to whatever he wants
*/
#if (STARPU_MAJOR_VERSION > 1) || ((STARPU_MAJOR_VERSION == 1) && (STARPU_MINOR_VERSION >= 2))
conf
->
sched_policy_name
=
"lws"
;
#else
#else
conf
->
sched_policy_name
=
"ws"
;
conf
->
sched_policy_name
=
"ws"
;
#endif
#endif
}
}
if
((
ncpus
==
-
1
)
||
(
nthreads_per_worker
==
-
1
))
if
((
ncpus
==
-
1
)
||
(
nthreads_per_worker
==
-
1
))
{
{
...
...
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