Commit 0ca57a40 authored by Samuel Pitoiset's avatar Samuel Pitoiset

GroupTree: allow to start/stop StarPU profiling

This will also be used when building ScalFMM with KStar to compute
efficiencies from the generated trace.rec file.
parent 2a83dfb0
......@@ -64,6 +64,12 @@
#include <sys/resource.h>
#endif
#ifdef OPENMP_SUPPORT_TASKNAME
// The taskname() clause is only supported by KSTAR. Make sure to set it from
// CMake to enable tracing.
#define STARPU_USE_KSTAR
#endif
#define RANDOM_PARTICLES
const FParameterNames LocalOrder { {"-order"}, "Order of the kernel"};
......@@ -668,9 +674,16 @@ struct RunContainer{
FBinding::BindThreadToAnyProcs();
std::cout << "And now I am bind to " << (FBinding::GetThreadBinding()) << std::endl;
#if defined(SCALFMM_USE_STARPU) || defined(SCALFMM_USE_KSTAR)
starpu_fxt_start_profiling();
#endif
timer.tic();
groupalgo.execute();
std::cout << "Done " << "(@Algorithm = " << timer.tacAndElapsed() << "s)." << std::endl;
timer.tac();
#if defined(SCALFMM_USE_STARPU) || defined(SCALFMM_USE_KSTAR)
starpu_fxt_stop_profiling();
#endif
std::cout << "Done " << "(@Algorithm = " << timer.elapsed() << "s)." << std::endl;
}
#ifdef MEMORY_USAGE
// Get the maximum resident set size (RSS) in kilobytes
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment