Skip to content

Commit

Permalink
Initialise gpu_ms_average.
Browse files Browse the repository at this point in the history
  • Loading branch information
ckolivas committed Jul 14, 2011
1 parent ba4ba7f commit 3d900e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,7 @@ static void *gpuminer_thread(void *userdata)
struct thr_info *mythr = userdata;
const int thr_id = mythr->id;
uint32_t *res, *blank_res;
double gpu_ms_average = 7;

size_t globalThreads[1];
size_t localThreads[1];
Expand Down Expand Up @@ -1584,7 +1585,6 @@ static void *gpuminer_thread(void *userdata)
while (1) {
struct timeval tv_workstart, tv_gpustart, tv_gpuend;
suseconds_t gpu_us;
double gpu_ms_average;

gettimeofday(&tv_gpustart, NULL);
timeval_subtract(&diff, &tv_gpustart, &tv_gpuend);
Expand Down

0 comments on commit 3d900e7

Please sign in to comment.