COMBINATORIAL_BLAS  1.6
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 
35 
36 }
37 
38 void
40  _pri_seconds = omp_get_wtime();
41  flops_papi();
42 }
43 
44 void
48 
49  _pri_seconds = omp_get_wtime();
50  flops_papi();
51 
54 }
55 
56 void
58  seconds = 0.0;
59  p_flpops = 0;
60 
61  _pri_seconds = 0.0;
62  _pri_p_flpops = 0;
63 }
64 
65 void
66 sort_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 }
sort_profiler_t sort_partitionw
sort_profiler_t seq_sort
sort_profiler_t hyper_compute_splitters
sort_profiler_t sample_do_all2all
sort_profiler_t sample_sort_splitters
sort_profiler_t sample_get_splitters
sort_profiler_t hyper_communicate
sort_profiler_t sample_prepare_scatter
sort_profiler_t hyper_comm_split
virtual ~sort_profiler_t()
long total_bytes
sort_profiler_t hyper_merge
sort_profiler_t total_sort
long long p_flpops
Definition: sort_profiler.h:16
long long _pri_p_flpops
Definition: sort_profiler.h:23