Skip to content
Snippets Groups Projects
Unverified Commit 5e66d4c7 authored by psychocrypt's avatar psychocrypt Committed by GitHub
Browse files

Merge pull request #1956 from fireice-uk/topic-print-on-gpu-err

Add console warning on GPU error.
parents ecac892e 924abda0
No related branches found
No related tags found
No related merge requests found
...@@ -627,8 +627,12 @@ void executor::ex_main() ...@@ -627,8 +627,12 @@ void executor::ex_main()
break; break;
case EV_GPU_RES_ERROR: case EV_GPU_RES_ERROR:
log_result_error(std::string(ev.oGpuError.error_str + std::string(" GPU ID ") + std::to_string(ev.oGpuError.idx))); {
std::string err_msg = std::string(ev.oGpuError.error_str) + " GPU ID " + std::to_string(ev.oGpuError.idx);
printer::inst()->print_msg(L0, err_msg.c_str());
log_result_error(std::move(err_msg));
break; break;
}
case EV_PERF_TICK: case EV_PERF_TICK:
for (i = 0; i < pvThreads->size(); i++) for (i = 0; i < pvThreads->size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment