Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
solverstack
ScalFMM
Commits
c0e92a10
Commit
c0e92a10
authored
May 10, 2016
by
Samuel Pitoiset
Browse files
Tests/GroupTree: add missing starpu_fxt_{start,stop}_profiling() calls
This should be refactored, but heh?!
parent
815bcc7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Tests/GroupTree/testBlockedUniformCompare.cpp
View file @
c0e92a10
...
...
@@ -496,27 +496,51 @@ struct RunContainer{
typedef
FFmmAlgorithmThreadBalance
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmThreadBalance "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
else
if
(
FParameters
::
existParameter
(
argc
,
argv
,
LocalOptionOmpTask
.
options
)){
typedef
FFmmAlgorithmTask
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmTask "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
#endif
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
else
if
(
FParameters
::
existParameter
(
argc
,
argv
,
LocalOptionOmpSection
.
options
)){
typedef
FFmmAlgorithmSectionTask
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmSectionTask "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
#endif
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
#ifdef SCALFMM_USE_OMP4
...
...
@@ -524,9 +548,17 @@ struct RunContainer{
typedef
FFmmAlgorithmOmp4
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmOmp4 "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
#endif
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
#endif
...
...
@@ -534,9 +566,17 @@ struct RunContainer{
typedef
FFmmAlgorithmThread
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmThread "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
#endif
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
}
// -----------------------------------------------------
...
...
@@ -848,9 +888,17 @@ struct RunContainer{
typedef
FFmmAlgorithmThread
<
OctreeClass
,
CellClass
,
ContainerClass
,
KernelClass
,
LeafClass
>
FmmClass
;
std
::
cout
<<
"Using FFmmAlgorithmThread "
<<
std
::
endl
;
FmmClass
algorithm
(
&
tree
,
&
kernels
);
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
// The taskname() clause is only supported by KSTAR. Make sure
// to set it from CMake to enable tracing.
starpu_fxt_start_profiling
();
#endif
time
.
tic
();
algorithm
.
execute
();
time
.
tac
();
#if defined(SCALFMM_USE_STARPU) || defined(OPENMP_SUPPORT_TASK_NAME)
starpu_fxt_stop_profiling
();
#endif
std
::
cout
<<
"Done "
<<
"(@Algorithm = "
<<
time
.
elapsed
()
<<
"s)."
<<
std
::
endl
;
}
...
...
Write
Preview
Supports
Markdown
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