<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103586#c16">Comment # 16</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL/Clover: AMD Turks: corrupt output buffer (depending on dimension order?)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=103586">bug 103586</a>
from <span class="vcard"><a class="email" href="mailto:jan.vesely@rutgers.edu" title="Jan Vesely <jan.vesely@rutgers.edu>"> <span class="fn">Jan Vesely</span></a>
</span></b>
<pre>(In reply to Dave Gilbert from <a href="show_bug.cgi?id=103586#c15">comment #15</a>)
<span class="quote">> Hi Jan,
> Yes, doing:
> --- a/ocl.cpp
> +++ b/ocl.cpp
> @@ -65,6 +65,7 @@ static int got_dev(cl::Platform &plat,
> std::vector<cl::Device> &devices, cl::Dev
> events.push_back(event);
> cl::Event eventMap;
> queue.enqueueBarrierWithWaitList(&events);
> + event.wait();
> mapped = (cl_uint*)queue.enqueueMapBuffer(output, CL_TRUE /* blocking
> */, CL_MAP_READ,
> 0 /* offset */,
> SIZE * SIZE * SIZE * sizeof(cl_uint) /* size */,
>
> does seem to work.</span >
thanks, that means the kernel work event works correctly.
I'll need to double check the specs wrt synchronization points. we either miss
a wait, or fail to update mapped buffers after kernel finishes execution.
<span class="quote">>
> Vedran: I've only got a Turks to play with; feel free to try my test on
> something else.</span ></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>