Merge pull request #134 from fireice-uk/fix-wrong-gpu-res-crash

Fix GPU result crash
This commit is contained in:
fireice-uk
2017-11-17 16:48:28 +00:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -561,7 +561,7 @@ void executor::ex_main()
break;
case EV_GPU_RES_ERROR:
log_result_error(ev.oGpuError.error_str);
log_result_error(std::string(ev.oGpuError.error_str));
break;
case EV_PERF_TICK:
+4
View File
@@ -125,6 +125,8 @@ struct ex_event
case EV_POOL_HAVE_JOB:
oPoolJob = from.oPoolJob;
break;
case EV_GPU_RES_ERROR:
oGpuError = from.oGpuError;
default:
break;
}
@@ -152,6 +154,8 @@ struct ex_event
case EV_POOL_HAVE_JOB:
oPoolJob = from.oPoolJob;
break;
case EV_GPU_RES_ERROR:
oGpuError = from.oGpuError;
default:
break;
}