Skip to content

Commit

Permalink
Merge pull request #1956 from fireice-uk/topic-print-on-gpu-err
Browse files Browse the repository at this point in the history
Add console warning on GPU error.
  • Loading branch information
psychocrypt authored Oct 17, 2018
2 parents ecac892 + 924abda commit 5e66d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xmrstak/misc/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,12 @@ void executor::ex_main()
break;

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;
}

case EV_PERF_TICK:
for (i = 0; i < pvThreads->size(); i++)
Expand Down

0 comments on commit 5e66d4c

Please sign in to comment.