d67514bd60
* [PROFILING] Use PAPI to collect hardware performance counters on CPU and CUDA This PR adds an optional dependency on PAPI (https://bitbucket.org/icl/papi/) in order to collect hardware performance counters on CPU and CUDA. These performance counters include data like total cycles, instructions executed, and cache misses. Users can control which performance counters are collected by setting the TVM_PAPI_${DEVICE}_METRICS environment variable to a semicolon separated list of metrics. * Update CMakeLists.txt Co-authored-by: Leandro Nunes <leandro.nunes@arm.com> * move thread pool reset out of crt * add docs * comments * formatting * forgot one doc * kDLGPU -> kDLCUDA * Refactor API to more closely match pass instrument's. * forgot files * formatting * more lint * fix docs * optional loading of papi metric collector in python * more formatting * fix check * update docs and default value * formatting * addressing andrews comments * fix docs * address comments * move shared initialization code into private function * move most definitions from papi header to implementation file Co-authored-by: Leandro Nunes <leandro.nunes@arm.com>