COMBINATORIAL_BLAS 1.6
 
Loading...
Searching...
No Matches
sort_profiler.cpp
Go to the documentation of this file.
1#include "sort_profiler.h"
2
3#ifdef HAVE_PAPI
4#include <papi.h>
5#endif
6
7#include <omp.h>
8
10
15
20
23
25
27 seconds = 0.0; // openmp wall time
28 p_flpops = 0; // papi floating point operations
29
30 _pri_seconds = 0.0;
31 _pri_p_flpops = 0;
32}
33
37
38void
40 _pri_seconds = omp_get_wtime();
41 flops_papi();
42}
43
44void
48
49 _pri_seconds = omp_get_wtime();
50 flops_papi();
51
54}
55
56void
58 seconds = 0.0;
59 p_flpops = 0;
60
61 _pri_seconds = 0.0;
62 _pri_p_flpops = 0;
63}
64
65void
66sort_profiler_t::flops_papi() {
67#ifdef HAVE_PAPI
68 int retval;
69 float rtime, ptime, mflops;
70 retval = PAPI_flops(&rtime, &ptime, &_pri_p_flpops, &mflops);
71 // assert (retval == PAPI_OK);
72#else
73 _pri_p_flpops = 0;
74#endif
75}
virtual ~sort_profiler_t()
long long _pri_p_flpops
long long p_flpops
sort_profiler_t hyper_communicate
sort_profiler_t hyper_comm_split
sort_profiler_t sample_get_splitters
sort_profiler_t total_sort
sort_profiler_t sort_partitionw
sort_profiler_t hyper_compute_splitters
sort_profiler_t sample_sort_splitters
sort_profiler_t sample_prepare_scatter
sort_profiler_t hyper_merge
sort_profiler_t sample_do_all2all
sort_profiler_t seq_sort
long total_bytes