Browse Source

Bugfix: Report actual kernel name in RPC, rather than kernel interface name

Luke Dashjr 11 years ago
parent
commit
32db914def
2 changed files with 3 additions and 2 deletions
  1. 0 2
      driver-opencl.c
  2. 3 0
      ocl.c

+ 0 - 2
driver-opencl.c

@@ -1608,8 +1608,6 @@ static bool opencl_thread_prepare(struct thr_info *thr)
 	}
 	if (!cgpu->name)
 		cgpu->name = trimmed_strdup(name);
-	if (!cgpu->kname)
-		cgpu->kname = opencl_get_kernel_interface_name(clStates[i]->chosen_kernel);
 	applog(LOG_INFO, "initCl() finished. Found %s", name);
 	get_now_datestamp(cgpu->init, sizeof(cgpu->init));
 

+ 3 - 0
ocl.c

@@ -1076,6 +1076,9 @@ built:
 		applog(LOG_ERR, "Error %d: Creating Kernel from program. (clCreateKernel)", status);
 		return NULL;
 	}
+	
+	free((void*)cgpu->kname);
+	cgpu->kname = strdup(data->kernel_file);
 
 #ifdef USE_SCRYPT
 	if (opt_scrypt) {