Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
ScalFMM
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container 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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
solverstack
ScalFMM
Commits
b4cd5c50
Commit
b4cd5c50
authored
9 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
always use the same priorities
parent
da7e180d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Src/GroupTree/StarPUUtils/FStarPUFmmPriorities.hpp
+19
-29
19 additions, 29 deletions
Src/GroupTree/StarPUUtils/FStarPUFmmPriorities.hpp
with
19 additions
and
29 deletions
Src/GroupTree/StarPUUtils/FStarPUFmmPriorities.hpp
+
19
−
29
View file @
b4cd5c50
...
@@ -377,23 +377,13 @@ FStarPUFmmPriorities FStarPUFmmPriorities::controller;
...
@@ -377,23 +377,13 @@ FStarPUFmmPriorities FStarPUFmmPriorities::controller;
#elif defined(SCALFMM_STARPU_USE_PRIO)// STARPU_SUPPORT_SCHEDULER
#elif defined(SCALFMM_STARPU_USE_PRIO)// STARPU_SUPPORT_SCHEDULER
class
FStarPUFmmPriorities
{
#include
"FOmpPriorities.hpp"
static
FStarPUFmmPriorities
controller
;
enum
Priorities
{
class
FStarPUFmmPriorities
{
Prio_P2M
=
9
-
5
,
static
FStarPUFmmPriorities
controller
;
Prio_M2M
=
8
-
5
,
FOmpPriorities
ompPrio
;
Prio_M2L_High
=
7
-
5
,
Prio_L2L
=
6
-
5
,
Prio_P2P_Big
=
5
-
5
,
Prio_M2L
=
4
-
5
,
Prio_L2P
=
3
-
5
,
Prio_P2P_Small
=
2
-
5
};
int
treeHeight
;
FStarPUFmmPriorities
()
:
treeHeight
(
0
){
FStarPUFmmPriorities
()
:
ompPrio
(
0
){
}
}
public
:
public
:
...
@@ -404,38 +394,38 @@ public:
...
@@ -404,38 +394,38 @@ public:
void
init
(
struct
starpu_conf
*
/*conf*/
,
const
int
inTreeHeight
,
void
init
(
struct
starpu_conf
*
/*conf*/
,
const
int
inTreeHeight
,
FStarPUKernelCapacities
*
/*inCapacities*/
){
FStarPUKernelCapacities
*
/*inCapacities*/
){
treeHeight
=
inTreeHeight
;
ompPrio
=
FOmpPriorities
(
inTreeHeight
)
;
}
}
int
getInsertionPosP2M
()
const
{
int
getInsertionPosP2M
()
const
{
return
Prio
_
P2M
;
return
omp
Prio
.
getInsertionPos
P2M
()
;
}
}
int
getInsertionPosM2M
(
const
int
/*
inLevel
*/
)
const
{
int
getInsertionPosM2M
(
const
int
inLevel
)
const
{
return
Prio
_M2M
;
return
omp
Prio
.
getInsertionPosM2M
(
inLevel
)
;
}
}
int
getInsertionPosP2M
(
bool
/*willBeSend*/
)
const
{
int
getInsertionPosP2M
(
bool
/*willBeSend*/
)
const
{
return
Prio
_
P2M
;
return
omp
Prio
.
getInsertionPos
P2M
()
;
}
}
int
getInsertionPosM2M
(
const
int
/*
inLevel
*/
,
bool
/*willBeSend*/
)
const
{
int
getInsertionPosM2M
(
const
int
inLevel
,
bool
/*willBeSend*/
)
const
{
return
Prio
_M2M
;
return
omp
Prio
.
getInsertionPosM2M
(
inLevel
)
;
}
}
int
getInsertionPosM2L
(
const
int
inLevel
)
const
{
int
getInsertionPosM2L
(
const
int
inLevel
)
const
{
return
inLevel
==
treeHeight
-
1
?
Prio_M2L
:
Prio_M2L_High
;
return
ompPrio
.
getInsertionPosM2L
(
inLevel
)
;
}
}
int
getInsertionPosM2LExtern
(
const
int
inLevel
)
const
{
int
getInsertionPosM2LExtern
(
const
int
inLevel
)
const
{
return
inLevel
==
treeHeight
-
1
?
Prio_M2L
:
Prio_M2L_High
;
return
ompPrio
.
getInsertionPosM2LExtern
(
inLevel
)
;
}
}
int
getInsertionPosL2L
(
const
int
/*
inLevel
*/
)
const
{
int
getInsertionPosL2L
(
const
int
inLevel
)
const
{
return
Prio
_L2L
;
return
omp
Prio
.
getInsertionPosL2L
(
inLevel
)
;
}
}
int
getInsertionPosL2P
()
const
{
int
getInsertionPosL2P
()
const
{
return
Prio
_
L2P
;
return
omp
Prio
.
getInsertionPos
L2P
()
;
}
}
int
getInsertionPosP2P
()
const
{
int
getInsertionPosP2P
()
const
{
return
Prio
_P2P_Big
;
return
omp
Prio
.
getInsertionPosP2P
()
;
}
}
int
getInsertionPosP2PExtern
()
const
{
int
getInsertionPosP2PExtern
()
const
{
return
Prio
_P2P_Small
;
return
omp
Prio
.
getInsertionPosP2PExtern
()
;
}
}
};
};
...
...
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