Commit 07c1a086 authored by Dominik Charousset's avatar Dominik Charousset

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

parents 9a174aaf e70d32f6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment