Author: Matthäus G. Chajdas
AMD provides a C library to query the hardware performance counters of their GPUs, called GPUPerfAPI. This project provides an easy-to-use, C++ based wrapper on top of the C API.
You need a copy of the GPUPerfAPI (from http://developer.amd.com/tools-and-sdks/graphics-development/gpuperfapi/). This version is built against GPUPerfAPI version 2.17.
The project requires Visual Studio 2015 or later, or GCC 4.8/Clang 3.4. Most likely, older GCC/Clang versions will work as well, but haven't been tested. When using GCC/Clang, please enable
There is a basic
CMakeLists.txt file to help you get started. If you choose to compile yourself, you need to:
- Create a project which contains
AMD_PERF_API_LINUX=1using the C++ preprocessor.
AMD_PERF_LIB_X86=1using the C++ preprocessor.
It has been tested on Windows 7, with a HD 7970; on Windows 8.1 with a R9 290X and should also work on Linux.
This project is developed as part of a bigger project; this repository contains only code drops from the main development repository. Don't be surprised if sometimes multiple changes are committed together!
This project is licensed under the 2-clause BSD. See
LICENSE.txt for details.