<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Can't specify local buffer size using clSetKernelArg"
href="https://bugs.freedesktop.org/show_bug.cgi?id=66931">66931</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>Can't specify local buffer size using clSetKernelArg
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jcharest@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Other
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>I always get return code -51 when I try to set the second argument of my
kernel. This argument is a local buffer. Here is the call I make:
clSetKernelArg(in_Kernel.mKernel, 1, 1024, NULL);
The kernel prototype is:
__kernel void GetEfficiency( __constant const SimulationParams * const
in_pSimulationParams, __local float * l_afEfficiencies, __global const float *
const in_pRandomValues, __global float * const out_pfEfficiencies)
So argument index 1 is really a local buffer as can be seen from the prototype.
I will try to investigate this further.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>