work on gpu clocks and gpu turbo example

This commit is contained in:
Carl Pearson
2019-09-19 16:56:57 -05:00
parent 81cc7feafd
commit 13e6c8e03d
12 changed files with 194 additions and 136 deletions

View File

@@ -1,5 +1,18 @@
#include "perfect/gpu_turbo.hpp"
#include "perfect/init.hpp"
#define OR_DIE(expr)
int main(void) {
using namespace perfect;
GpuTurboState state;
init();
for (unsigned int gpu = 0; gpu < 1; ++gpu) {
PERFECT(perfect::get_gpu_turbo_state(&state, gpu));
PERFECT(perfect::disable_gpu_turbo(gpu));
PERFECT(perfect::set_gpu_turbo_state(state, gpu));
}
}