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
dacb38a0
Commit
dacb38a0
authored
9 years ago
by
BRAMAS Berenger
Browse files
Options
Downloads
Patches
Plain Diff
update the computation of the id of the tasks
parent
838f3822
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Src/GroupTree/Core/FGroupTaskDepAlgorithm.hpp
+3
-3
3 additions, 3 deletions
Src/GroupTree/Core/FGroupTaskDepAlgorithm.hpp
Src/GroupTree/StarPUUtils/FStarPUCpuWrapper.hpp
+3
-2
3 additions, 2 deletions
Src/GroupTree/StarPUUtils/FStarPUCpuWrapper.hpp
with
6 additions
and
5 deletions
Src/GroupTree/Core/FGroupTaskDepAlgorithm.hpp
+
3
−
3
View file @
dacb38a0
...
@@ -557,7 +557,7 @@ protected:
...
@@ -557,7 +557,7 @@ protected:
#pragma omp task default(none) firstprivate(currentCells, cellLocals, outsideInteractions, cellsOther, cellOtherPoles, idxLevel) depend(commute_if_supported: cellLocals[0]) depend(in: cellOtherPoles[0]) priority_if_supported(idxLevel==FAbstractAlgorithm::lowerWorkingLevel-1?FGroupTaskDepAlgorithm_Prio_M2L:FGroupTaskDepAlgorithm_Prio_M2L_High)
#pragma omp task default(none) firstprivate(currentCells, cellLocals, outsideInteractions, cellsOther, cellOtherPoles, idxLevel) depend(commute_if_supported: cellLocals[0]) depend(in: cellOtherPoles[0]) priority_if_supported(idxLevel==FAbstractAlgorithm::lowerWorkingLevel-1?FGroupTaskDepAlgorithm_Prio_M2L:FGroupTaskDepAlgorithm_Prio_M2L_High)
{
{
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
<<
1
)
^
cellsOther
->
getStartingIndex
())
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
+
1
)
*
(
cellsOther
->
getStartingIndex
()
+
2
)
)
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
...
@@ -573,7 +573,7 @@ protected:
...
@@ -573,7 +573,7 @@ protected:
#pragma omp task default(none) firstprivate(currentCells, cellPoles, outsideInteractions, cellsOther, cellOtherLocals, idxLevel) depend(commute_if_supported: cellOtherLocals[0]) depend(in: cellPoles[0]) priority_if_supported(idxLevel==FAbstractAlgorithm::lowerWorkingLevel-1?FGroupTaskDepAlgorithm_Prio_M2L:FGroupTaskDepAlgorithm_Prio_M2L_High)
#pragma omp task default(none) firstprivate(currentCells, cellPoles, outsideInteractions, cellsOther, cellOtherLocals, idxLevel) depend(commute_if_supported: cellOtherLocals[0]) depend(in: cellPoles[0]) priority_if_supported(idxLevel==FAbstractAlgorithm::lowerWorkingLevel-1?FGroupTaskDepAlgorithm_Prio_M2L:FGroupTaskDepAlgorithm_Prio_M2L_High)
{
{
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
())
^
(
cellsOther
->
getStartingIndex
()
<<
1
))
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
+
1
)
*
(
cellsOther
->
getStartingIndex
()
+
1
))
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
...
@@ -810,7 +810,7 @@ protected:
...
@@ -810,7 +810,7 @@ protected:
#pragma omp task default(none) firstprivate(containers, containersDown, containersOther, containersOtherDown, outsideInteractions) depend(commute_if_supported: containersOtherDown[0], containersDown[0]) priority_if_supported(FGroupTaskDepAlgorithm_Prio_P2P_Small)
#pragma omp task default(none) firstprivate(containers, containersDown, containersOther, containersOtherDown, outsideInteractions) depend(commute_if_supported: containersOtherDown[0], containersDown[0]) priority_if_supported(FGroupTaskDepAlgorithm_Prio_P2P_Small)
{
{
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(
containersOther
->
getStartingIndex
()
^
containers
->
getStartingIndex
())
*
20
*
8
+
6
,
"P2P-ext"
));
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
omp_get_thread_num
(),
&
taskTimeRecorder
,
(
(
containersOther
->
getStartingIndex
()
+
1
)
*
(
containers
->
getStartingIndex
()
+
1
)
)
*
20
*
8
+
6
,
"P2P-ext"
));
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
KernelClass
*
const
kernel
=
kernels
[
omp_get_thread_num
()];
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
ParticleContainerClass
interParticles
=
containersOther
->
template
getLeaf
<
ParticleContainerClass
>((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
ParticleContainerClass
interParticles
=
containersOther
->
template
getLeaf
<
ParticleContainerClass
>((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
...
...
This diff is collapsed.
Click to expand it.
Src/GroupTree/StarPUUtils/FStarPUCpuWrapper.hpp
+
3
−
2
View file @
dacb38a0
...
@@ -307,10 +307,10 @@ public:
...
@@ -307,10 +307,10 @@ public:
const
int
idxLevel
,
const
int
idxLevel
,
const
std
::
vector
<
OutOfBlockInteraction
>*
outsideInteractions
,
const
std
::
vector
<
OutOfBlockInteraction
>*
outsideInteractions
,
const
int
mode
){
const
int
mode
){
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
starpu_worker_get_id
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
<<
1
)
^
cellsOther
->
getStartingIndex
())
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
KernelClass
*
const
kernel
=
kernels
[
starpu_worker_get_id
()];
KernelClass
*
const
kernel
=
kernels
[
starpu_worker_get_id
()];
if
(
mode
==
1
){
if
(
mode
==
1
){
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
starpu_worker_get_id
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
+
1
)
*
(
cellsOther
->
getStartingIndex
()
+
2
))
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
CellClass
interCell
=
cellsOther
->
getUpCell
((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
CellClass
interCell
=
cellsOther
->
getUpCell
((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
FAssertLF
(
interCell
.
getMortonIndex
()
==
(
*
outsideInteractions
)[
outInterIdx
].
outIndex
);
FAssertLF
(
interCell
.
getMortonIndex
()
==
(
*
outsideInteractions
)[
outInterIdx
].
outIndex
);
...
@@ -322,6 +322,7 @@ public:
...
@@ -322,6 +322,7 @@ public:
}
}
}
}
else
{
else
{
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
starpu_worker_get_id
(),
&
taskTimeRecorder
,
(((
currentCells
->
getStartingIndex
()
+
1
)
*
(
cellsOther
->
getStartingIndex
()
+
1
))
*
20
+
idxLevel
)
*
8
+
3
,
"M2L-ext"
));
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
CellClass
cell
=
cellsOther
->
getUpCell
((
*
outsideInteractions
)[
outInterIdx
].
insideIdxInBlock
);
CellClass
cell
=
cellsOther
->
getUpCell
((
*
outsideInteractions
)[
outInterIdx
].
insideIdxInBlock
);
FAssertLF
(
cell
.
getMortonIndex
()
==
(
*
outsideInteractions
)[
outInterIdx
].
insideIndex
);
FAssertLF
(
cell
.
getMortonIndex
()
==
(
*
outsideInteractions
)[
outInterIdx
].
insideIndex
);
...
@@ -507,7 +508,7 @@ public:
...
@@ -507,7 +508,7 @@ public:
void
directInoutPassPerform
(
ParticleGroupClass
*
containers
,
ParticleGroupClass
*
containersOther
,
void
directInoutPassPerform
(
ParticleGroupClass
*
containers
,
ParticleGroupClass
*
containersOther
,
const
std
::
vector
<
OutOfBlockInteraction
>*
outsideInteractions
){
const
std
::
vector
<
OutOfBlockInteraction
>*
outsideInteractions
){
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
starpu_worker_get_id
(),
&
taskTimeRecorder
,
(
containersOther
->
getStartingIndex
()
^
containers
->
getStartingIndex
())
*
20
*
8
+
6
,
"P2P-ext"
));
FTIME_TASKS
(
FTaskTimer
::
ScopeEvent
taskTime
(
starpu_worker_get_id
(),
&
taskTimeRecorder
,
(
(
containersOther
->
getStartingIndex
()
+
1
)
*
(
containers
->
getStartingIndex
()
+
1
)
)
*
20
*
8
+
6
,
"P2P-ext"
));
KernelClass
*
const
kernel
=
kernels
[
starpu_worker_get_id
()];
KernelClass
*
const
kernel
=
kernels
[
starpu_worker_get_id
()];
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
for
(
int
outInterIdx
=
0
;
outInterIdx
<
int
(
outsideInteractions
->
size
())
;
++
outInterIdx
){
ParticleContainerClass
interParticles
=
containersOther
->
template
getLeaf
<
ParticleContainerClass
>((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
ParticleContainerClass
interParticles
=
containersOther
->
template
getLeaf
<
ParticleContainerClass
>((
*
outsideInteractions
)[
outInterIdx
].
outsideIdxInBlock
);
...
...
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