Skip to content

Commit

Permalink
Merge pull request fireice-uk#1956 from fireice-uk/topic-print-on-gpu…
Browse files Browse the repository at this point in the history
…-err

Add console warning on GPU error.
  • Loading branch information
psychocrypt authored Oct 17, 2018
2 parents 77e86e8 + 29dc827 commit f28115a
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 f28115a

Please sign in to comment.