File: papi_combblas_globals.h

package info (click to toggle)
combblas 2.0.0-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 190,476 kB
  • sloc: cpp: 55,912; ansic: 25,134; sh: 3,691; makefile: 548; csh: 66; python: 49; perl: 21
file content (30 lines) | stat: -rw-r--r-- 931 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef PAPI_COMBBLAS_GLOBALS_
#define PAPI_COMBBLAS_GLOBALS_

#include <papi.h>
#include <string>
#include <vector>


char spmv_errorstring[PAPI_MAX_STR_LEN+1];
std::string bfs_papi_labels = {"SpMV", "fringe_updt", "parents_updt"};
int num_bfs_papi_labels = 3;


enum bfs_papi_enum { SpMV, fringe_updt, parents_updt };


std::string spmv_papi_labels = {"Fan-Out", "LocalSpMV", "Fan-In", "Merge"}; 

std::string combblas_event_names [] = {"PAPI_TOT_INS", "PAPI_L1_TCM", "PAPI_L2_TCM", "PAPI_L3_TCM"};
int combblas_papi_events [] = {PAPI_TOT_INS, PAPI_L1_TCM, PAPI_L2_TCM, PAPI_L3_TCM};
int combblas_papi_num_events = 4;

// outer index: SpMV iteration, middle index: papi_labels, inner index: papi events
// dimensions: <#iterations> <num_bfs_papi_labels> <combblas_papi_num_events+1>
std::vector< std::vector< std::vector<long long> > > bfs_counters;
std::vector< std::vector< std::vector<long long> > > spmv_counters;	



#endif