[Mesa-dev] [Bug 103586] OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 16 06:21:06 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103586

--- Comment #14 from Jan Vesely <jan.vesely at rutgers.edu> ---
(In reply to Dave Gilbert from comment #12)
> 
> It doesn't seem to help, if I add:
> --- a/ocl.cpp
> +++ b/ocl.cpp
> @@ -74,6 +74,7 @@ static int got_dev(cl::Platform &plat,
> std::vector<cl::Device> &devices, cl::Dev
>      cl::Event eventBarrier2;
>      queue.enqueueBarrierWithWaitList(NULL,&eventBarrier2);
>      std::cerr << __func__ << "enqueueMapBuffer gave: " << err << std::endl;
> +    event.wait();
>      eventMap.wait();
>      eventBarrier2.wait();
>  
> 
> that doesn't seem to help and I think event is the event triggered by the
> kernel.

can you move it few lines up? (before the call to mapBuffer).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171116/795b599f/attachment.html>


More information about the mesa-dev mailing list