Browse Source

Time for dynamic is in microseconds, not ms.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
101394ab70
  1. 2
      driver-opencl.c

2
driver-opencl.c

@ -1504,7 +1504,7 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work, @@ -1504,7 +1504,7 @@ static int64_t opencl_scanhash(struct thr_info *thr, struct work *work,
clFinish(clState->commandQueue);
/* Windows' timer resolution is only 15ms so oversample 5x */
if (gpu->dynamic && (++gpu->intervals * dynamic_us) > 75) {
if (gpu->dynamic && (++gpu->intervals * dynamic_us) > 70000) {
struct timeval tv_gpuend;
double gpu_us;

Loading…
Cancel
Save