Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
solverstack
ScalFMM
Commits
068c1bd8
Commit
068c1bd8
authored
Oct 02, 2015
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no starpu pause or resum and no openmp in precomputation to go faster
parent
b926ea5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Src/GroupTree/Core/FGroupTaskStarpuAlgorithm.hpp
Src/GroupTree/Core/FGroupTaskStarpuAlgorithm.hpp
+9
-9
No files found.
Src/GroupTree/Core/FGroupTaskStarpuAlgorithm.hpp
View file @
068c1bd8
...
...
@@ -196,7 +196,7 @@ public:
#endif
starpu_pthread_mutex_destroy
(
&
initMutex
);
starpu_pause
();
//
starpu_pause();
cellHandles
=
new
std
::
vector
<
CellHandles
>
[
tree
->
getHeight
()];
...
...
@@ -252,7 +252,7 @@ public:
}
~
FGroupTaskStarPUAlgorithm
(){
starpu_resume
();
//
starpu_resume();
cleanHandle
();
delete
[]
cellHandles
;
...
...
@@ -298,8 +298,8 @@ public:
||
strcmp
(
getenv
(
"OMP_WAIT_POLICY"
),
"PASSIVE"
)
==
0
||
strcmp
(
getenv
(
"OMP_WAIT_POLICY"
),
"passive"
)
==
0
);
#pragma omp parallel
#pragma omp single
//
#pragma omp parallel
//
#pragma omp single
buildExternalInteractionVecs
();
buildHandles
();
...
...
@@ -317,7 +317,7 @@ protected:
FTIME_TASKS
(
cpuWrapper
.
taskTimeRecorder
.
start
());
#endif
starpu_resume
();
//
starpu_resume();
if
(
operationsToProceed
&
FFmmP2P
)
directPass
();
...
...
@@ -337,7 +337,7 @@ protected:
#endif
starpu_task_wait_for_all
();
starpu_pause
();
//
starpu_pause();
#ifdef STARPU_USE_CPU
FTIME_TASKS
(
cpuWrapper
.
taskTimeRecorder
.
end
());
...
...
@@ -729,7 +729,7 @@ protected:
std
::
vector
<
BlockInteractions
<
ParticleGroupClass
>>*
externalInteractions
=
&
externalInteractionsLeafLevel
[
idxGroup
];
#pragma omp task default(none) firstprivate(idxGroup, containers, externalInteractions)
//
#pragma omp task default(none) firstprivate(idxGroup, containers, externalInteractions)
{
// Can be a task(inout:iterCells)
std
::
vector
<
OutOfBlockInteraction
>
outsideInteractions
;
const
MortonIndex
blockStartIdx
=
containers
->
getStartingIndex
();
...
...
@@ -818,7 +818,7 @@ protected:
std
::
vector
<
BlockInteractions
<
CellContainerClass
>>*
externalInteractions
=
&
externalInteractionsAllLevel
[
idxLevel
][
idxGroup
];
#pragma omp task default(none) firstprivate(idxGroup, currentCells, idxLevel, externalInteractions)
//
#pragma omp task default(none) firstprivate(idxGroup, currentCells, idxLevel, externalInteractions)
{
std
::
vector
<
OutOfBlockInteraction
>
outsideInteractions
;
const
MortonIndex
blockStartIdx
=
currentCells
->
getStartingIndex
();
...
...
@@ -899,7 +899,7 @@ protected:
}
FLOG
(
cellTimer
.
tac
();
);
#pragma omp taskwait
//
#pragma omp taskwait
FLOG
(
FLog
::
Controller
<<
"
\t\t
Prepare in "
<<
timer
.
tacAndElapsed
()
<<
"s
\n
"
);
FLOG
(
FLog
::
Controller
<<
"
\t\t\t
Prepare at leaf level in "
<<
leafTimer
.
elapsed
()
<<
"s
\n
"
);
...
...
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