cavazos-lab / PolyBench-ACC

Other
58 stars 37 forks source link

Papi support #9

Open avacoder42 opened 4 years ago

avacoder42 commented 4 years ago

Hi, I was trying to compile the programs with Papi support -Dpolybench_papi. After compiling using

gcc -fopenmp -I../../../utilities 2mm1.c ../../../utilities/polybench.c -I ../PolyBench-ACC/common/ -I ../PolyBench-ACC/OpenMP/utilities/ -DMINI_DATASET -DPOLYBENCH_PAPI -lpapi -o 2mm

and running

./2mm

It throws the following error -

../../../utilities/polybench.c           FAILED
Line # 241
Error: PAPI_add_event

Please suggest what changes I need to make or is PolyBench-ACC compatible with Papi?

willkill07 commented 4 years ago

To be honest, I’m not sure what changes have happened to PAPI. This code base hasn’t been updated in 7 years.