Fix gpu result crash

This commit is contained in:
Unknown
2017-11-17 15:35:23 +00:00
parent 629542ae4d
commit 1d19b5d426
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;
}