Commit e70d32f6 authored by Joseph Noir's avatar Joseph Noir

added clFlush after enqueue

Solves a problem with amd graphic cards.
parent 9a174aaf
......@@ -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