Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
48de5ca0
Commit
48de5ca0
authored
Apr 22, 2015
by
Quentin Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FFmmAlgorithmThread: Added omp schedule param doc.
FFmmAlgorithmTask: Added inheritance from FAlgorithmTimers.
parent
ffc47e35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
Src/Core/FFmmAlgorithmTask.hpp
Src/Core/FFmmAlgorithmTask.hpp
+25
-10
Src/Core/FFmmAlgorithmThread.hpp
Src/Core/FFmmAlgorithmThread.hpp
+1
-0
No files found.
Src/Core/FFmmAlgorithmTask.hpp
View file @
48de5ca0
...
...
@@ -40,7 +40,7 @@
* Of course this class does not deallocate pointer given in arguements.
*/
template
<
class
OctreeClass
,
class
CellClass
,
class
ContainerClass
,
class
KernelClass
,
class
LeafClass
>
class
FFmmAlgorithmTask
:
public
FAbstractAlgorithm
{
class
FFmmAlgorithmTask
:
public
FAbstractAlgorithm
,
public
FAlgorithmTimers
{
OctreeClass
*
const
tree
;
//< The octree to work on
KernelClass
**
kernels
;
//< The kernels
...
...
@@ -92,15 +92,30 @@ protected:
*/
void
executeCore
(
const
unsigned
operationsToProceed
)
override
{
if
(
operationsToProceed
&
FFmmP2M
)
bottomPass
();
if
(
operationsToProceed
&
FFmmM2M
)
upwardPass
();
if
(
operationsToProceed
&
FFmmM2L
)
transferPass
();
if
(
operationsToProceed
&
FFmmL2L
)
downardPass
();
if
((
operationsToProceed
&
FFmmP2P
)
||
(
operationsToProceed
&
FFmmL2P
))
directPass
((
operationsToProceed
&
FFmmP2P
),(
operationsToProceed
&
FFmmL2P
));
Timers
[
P2MTimer
].
tic
();
if
(
operationsToProceed
&
FFmmP2M
)
bottomPass
();
Timers
[
P2MTimer
].
tac
();
Timers
[
M2MTimer
].
tic
();
if
(
operationsToProceed
&
FFmmM2M
)
upwardPass
();
Timers
[
M2MTimer
].
tac
();
Timers
[
M2LTimer
].
tic
();
if
(
operationsToProceed
&
FFmmM2L
)
transferPass
();
Timers
[
M2LTimer
].
tac
();
Timers
[
L2LTimer
].
tic
();
if
(
operationsToProceed
&
FFmmL2L
)
downardPass
();
Timers
[
L2LTimer
].
tac
();
Timers
[
NearTimer
].
tic
();
if
(
(
operationsToProceed
&
FFmmP2P
)
||
(
operationsToProceed
&
FFmmL2P
)
)
directPass
((
operationsToProceed
&
FFmmP2P
),(
operationsToProceed
&
FFmmL2P
));
Timers
[
NearTimer
].
tac
();
}
/////////////////////////////////////////////////////////////////////////////
...
...
Src/Core/FFmmAlgorithmThread.hpp
View file @
48de5ca0
...
...
@@ -78,6 +78,7 @@ public:
* The constructor needs the octree and the kernels used for computation.
* \param inTree the octree to work on.
* \param inKernels the kernels to call.
* \param inStaticSchedule Whether to use static or dynamic OpenMP scheduling.
*
* \except An exception is thrown if one of the arguments is NULL.
*/
...
...
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