Permalink
Browse files

Merge branch 'topic/opencl' of github.com:Neverlord/libcppa into topi…

…c/opencl
  • Loading branch information...
Neverlord committed Mar 21, 2013
2 parents 9b7c4cd + 50c793a commit b3963c046c78b20d1f2a52114473d56c9e585801
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/opencl/command_dispatcher.cpp
@@ -75,6 +75,12 @@ struct command_dispatcher::worker {
cl_command_queue cmd_q =
m_parent->m_devices.front().cmd_queue.get();
job->enqueue(cmd_q);
+ cl_int err{clFlush(cmd_q)};
+ if (err != CL_SUCCESS) {
+ throw runtime_error("[!!!] clFlush: '"
+ + get_opencl_error(err)
+ + "'.");
+ }
}
catch (exception& e) {
cerr << e.what() << endl;

0 comments on commit b3963c0

Please sign in to comment.