Should these new headers and libraries work as drop-in replacements from the v2.5 headers and libraries, or is there something I'm missing that needs to be changed? I have some test code that basically just creates an OpenCL context and then gets information about the available counters that works fine with 2.5, but when I update the makefile to point to the 2.7 headers and libs, it explodes with a long list of errors like:
In file included from /uf4/dsu9w/opencl/GPUPerfAPI-2.7.142-lnx/Include/GPUPerfAPI.h:29,
from myattempt_opencl.cpp:4:
/uf4/dsu9w/opencl/GPUPerfAPI-2.7.142-lnx/Include/GPUPerfAPIFunctionTypes.h:33: error: typedef âGPA_GetNumCountersPtrTypeâ is initialized (use decltype instead)
/uf4/dsu9w/opencl/GPUPerfAPI-2.7.142-lnx/Include/GPUPerfAPIFunctionTypes.h:33: error: âgpa_uint32â was not declared in this scope
/uf4/dsu9w/opencl/GPUPerfAPI-2.7.142-lnx/Include/GPUPerfAPIFunctionTypes.h:33: error: âcountâ was not declared in this scope
OS: Ubuntu 10.04
Compiler: g++ 4.4.3