<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL enqueueReadBuffer returns trash"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101952#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - OpenCL enqueueReadBuffer returns trash"
href="https://bugs.freedesktop.org/show_bug.cgi?id=101952">bug 101952</a>
from <span class="vcard"><a class="email" href="mailto:janpieter.sollie@dommel.be" title="Janpieter Sollie <janpieter.sollie@dommel.be>"> <span class="fn">Janpieter Sollie</span></a>
</span></b>
<pre>yes, a simpler kernel works perfectly. Though I think it only makes the search
more difficult:
the combination of these functions does not work (no 255 is visible):
in external_function_call:
while (left > 0) {
count++;
extern2(2048, count, digest);
plen = left > SHA1_MAC_LEN ? SHA1_MAC_LEN : left;
// result = get_global_id(0) | get_global_id(1) |
get_global_id(2);
result += os_memcmp(digest, pos, plen);
pos += plen;
left -= plen;
}
return result;
in startTest:
if(result == 2) {
output[3] = 255;
output[0] = get_global_id(0);
output[1] = get_global_id(1);
output[2] = get_global_id(2);
}
----------------------------------------
while
result = get_global_id(0) | get_global_id(1) | get_global_id(2);
// result += os_memcmp(digest, pos, plen);
and
if(result == 0) {
does work! (255 int included) :s
I suspect an overflow happens somewhere, but is it possible oclgrind does not
detect it?</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>