Browse Source

Merge commit '9920532' into bfgminer

Conflicts:
	main.c
Luke Dashjr 13 years ago
parent
commit
3e5f0de3fa
1 changed files with 3 additions and 2 deletions
  1. 3 2
      driver-opencl.c

+ 3 - 2
driver-opencl.c

@@ -1327,7 +1327,7 @@ static void set_threads_hashes(unsigned int vectors,int64_t *hashes, size_t *glo
 void *reinit_gpu(void *userdata)
 void *reinit_gpu(void *userdata)
 {
 {
 	struct thr_info *mythr = userdata;
 	struct thr_info *mythr = userdata;
-	struct cgpu_info *cgpu;
+	struct cgpu_info *cgpu, *sel_cgpu;
 	struct thr_info *thr;
 	struct thr_info *thr;
 	struct timeval now;
 	struct timeval now;
 	char name[256];
 	char name[256];
@@ -1338,6 +1338,7 @@ void *reinit_gpu(void *userdata)
 	RenameThread("reinit_gpu");
 	RenameThread("reinit_gpu");
 
 
 select_cgpu:
 select_cgpu:
+	sel_cgpu =
 	cgpu = tq_pop(mythr->q, NULL);
 	cgpu = tq_pop(mythr->q, NULL);
 	if (!cgpu)
 	if (!cgpu)
 		goto out;
 		goto out;
@@ -1409,7 +1410,7 @@ select_cgpu:
 	}
 	}
 
 
 	gettimeofday(&now, NULL);
 	gettimeofday(&now, NULL);
-	get_datestamp(cgpu->init, &now);
+	get_datestamp(sel_cgpu->init, &now);
 
 
 	for (thr_id = 0; thr_id < mining_threads; ++thr_id) {
 	for (thr_id = 0; thr_id < mining_threads; ++thr_id) {
 		thr = &thr_info[thr_id];
 		thr = &thr_info[thr_id];