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
9c3437be
Commit
9c3437be
authored
Apr 27, 2015
by
Quentin Khan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PerfTest: added static/dynamic openmp schedule
parent
d2cff93f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
Tests/noDist/AlgoLoaderThread.hpp
Tests/noDist/AlgoLoaderThread.hpp
+7
-3
Tests/noDist/PerfTest.cpp
Tests/noDist/PerfTest.cpp
+6
-2
Tests/noDist/PerfTestUtils.hpp
Tests/noDist/PerfTestUtils.hpp
+1
-0
No files found.
Tests/noDist/AlgoLoaderThread.hpp
View file @
9c3437be
...
...
@@ -24,17 +24,21 @@ public:
TreeLoader
&
_treeLoader
;
KernelLoader
&
_kernelLoader
;
AlgoLoaderThread
(
FPerfTestParams
&
/*params*/
,
bool
_omp_static_schedule
;
AlgoLoaderThread
(
FPerfTestParams
&
params
,
TreeLoader
&
treeLoader
,
KernelLoader
&
kernelLoader
)
:
_treeLoader
(
treeLoader
),
_kernelLoader
(
kernelLoader
)
{
_kernelLoader
(
kernelLoader
),
_omp_static_schedule
(
params
.
omp_static_schedule
)
{
}
void
run
()
{
FMMClass
algo
(
&
(
_treeLoader
.
_tree
),
&
(
_kernelLoader
.
_kernel
),
false
);
FMMClass
algo
(
&
(
_treeLoader
.
_tree
),
&
(
_kernelLoader
.
_kernel
),
_omp_static_schedule
);
algo
.
execute
();
}
};
...
...
Tests/noDist/PerfTest.cpp
View file @
9c3437be
...
...
@@ -58,8 +58,8 @@ int main (int argc, char** argv)
FParameterDefinitions
::
OctreeHeight
,
FParameterDefinitions
::
OctreeSubHeight
,
FParameterDefinitions
::
NbThreads
,
{{
"--algo"
},
"Algorithm to run (costzones, basic
-static,"
" basic-dynamic, task)
"
});
{{
"--algo"
},
"Algorithm to run (costzones, basic
, task)"
},
{{
"--schedule"
},
"OpenMP scheduling policy (static, dynamic).
"
});
FPerfTestParams
params
;
{
using
namespace
FParameterDefinitions
;
...
...
@@ -70,6 +70,8 @@ int main (int argc, char** argv)
params
.
subTreeHeight
=
getValue
(
argc
,
argv
,
OctreeSubHeight
.
options
,
2
);
params
.
nbThreads
=
getValue
(
argc
,
argv
,
NbThreads
.
options
,
1
);
params
.
algo
=
getStr
(
argc
,
argv
,{
"--algo"
},
"task"
);
params
.
omp_static_schedule
=
getStr
(
argc
,
argv
,{
"--schedule"
},
"dynamic"
)
==
std
::
string
(
"static"
);
}
...
...
@@ -79,6 +81,8 @@ int main (int argc, char** argv)
runperf
<
TreeLoaderFCheb
<>
,
KernelLoaderFChebSym
,
AlgoLoaderTask
>
(
params
);
}
else
if
(
"costzones"
==
params
.
algo
)
{
runperf
<
TreeLoaderFCheb
<>
,
KernelLoaderFChebSym
,
AlgoLoaderCostZones
>
(
params
);
}
else
{
std
::
cout
<<
"Unknown algorithm: "
<<
params
.
algo
<<
std
::
endl
;
}
...
...
Tests/noDist/PerfTestUtils.hpp
View file @
9c3437be
...
...
@@ -17,6 +17,7 @@ struct FPerfTestParams {
int
nbThreads
=
1
;
///< Maximum number of threads (when used).
std
::
string
filename
=
""
;
///< Particles file.
std
::
string
algo
=
"task"
;
///< Algorithm to run.
bool
omp_static_schedule
=
false
;
///< OpenMP static or dynamic schedule.
};
...
...
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