<div dir="ltr"><font>Hi,<br>1. The localWorkSize is not supported in the current implementation OpenCL module in ITK4.<br>2. Download and use the patched version from the </font><font><span class="">The Insight Journal</span> article <a href="http://hdl.handle.net/10380/3393">http://hdl.handle.net/10380/3393</a><br>
-Denis Shamonin<br></font><font face="Calibri, sans-serif"><font face="Courier New, monospace"><br></font></font></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 27, 2013 at 11:40 AM, Lodron, Gerald <span dir="ltr"><<a href="mailto:Gerald.Lodron@joanneum.at" target="_blank">Gerald.Lodron@joanneum.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Calibri, sans-serif">
<div>Hi</div>
<div> </div>
<div>I activated the gpu in ITK 4.3.2 with opencl of cuda v5 and vs2008 sp1 x64 and get following error in itkGPUKernelManager:</div>
<div> </div>
<div><font face="Courier New, monospace" size="1">D:\Develop\Source\InsightToolkit-4.3.2\Modules\Core\GPUCommon\src\itkGPUKernelManager.cxx(393) : error C2065: 'localWorkSizeX' : undeclared identifier</font></div>
<div> </div>
<div><font face="Courier New, monospace" size="1">Here the code snippet</font></div>
<div> </div>
<div> </div>
<div> </div>
<div> <font color="#0000FF" face="Courier New, monospace">bool</font><font face="Courier New, monospace"> GPUKernelManager::LaunchKernel2D(</font><font color="#0000FF" face="Courier New, monospace">int</font><font face="Courier New, monospace">
kernelIdx,</font></div>
<div><font face="Courier New, monospace"> size_t globalWorkSizeX, size_t globalWorkSizeY,</font></div>
<div><font face="Courier New, monospace"> size_t itkNotUsed(localWorkSizeX), size_t itkNotUsed(localWorkSizeY) )</font></div>
<div><font face="Courier New, monospace">{</font></div>
<div><font face="Courier New, monospace"> <font color="#0000FF">if</font>(kernelIdx < 0 || kernelIdx >= (<font color="#0000FF">int</font>)m_KernelContainer.size() ) <font color="#0000FF">return</font> <font color="#0000FF">false</font>;</font></div>
<div><font face="Courier New, monospace"> </font></div>
<div><font face="Courier New, monospace"> <font color="#0000FF">if</font>(!CheckArgumentReady(kernelIdx) )</font></div>
<div><font face="Courier New, monospace"> {</font></div>
<div><font face="Courier New, monospace"> itkWarningMacro(<font color="#A31515">"GPU kernel arguments are not completely assigned"</font>);</font></div>
<div><font face="Courier New, monospace"> <font color="#0000FF">return</font> <font color="#0000FF">false</font>;</font></div>
<div><font face="Courier New, monospace"> }</font></div>
<div><font face="Courier New, monospace"> </font></div>
<div><font face="Courier New, monospace"> size_t gws[2], lws[2];</font></div>
<div><font face="Courier New, monospace"> </font></div>
<div><font face="Courier New, monospace"> gws[0] = globalWorkSizeX;</font></div>
<div><font face="Courier New, monospace"> gws[1] = globalWorkSizeY;</font></div>
<div><font face="Courier New, monospace"> </font></div>
<div><font face="Courier New, monospace"> lws[0] = localWorkSizeX;</font></div>
<div><font face="Courier New, monospace"> lws[1] = localWorkSizeY;</font></div>
<div> </div>
<div><font face="Courier New, monospace">localWorkSizeX is undefined, seems that itkNotUsed is missing/undefined</font></div>
<div> </div>
<div><font face="Courier New, monospace">Any suggestions? Thanks in advance</font></div>
<div> </div>
<div><font face="Arial, sans-serif"><b>JOANNEUM RESEARCH Forschungsgesellschaft mbH</b></font></div>
<div><font> <font face="Arial, sans-serif"> </font></font></div>
<div><font face="Arial, sans-serif"><b>DIGITAL – Institute for Information and Communication Technologies</b></font></div>
<div><font face="Arial, sans-serif">Steyrergasse 17, 8010 Graz, Austria</font></div>
<div><font color="#4D4D4D"> </font></div>
<div><font face="Arial, sans-serif">phone: <a href="tel:%2B43%20316%20876-1751" value="+433168761751" target="_blank">+43 316 876-1751</a></font></div>
<div><font face="Arial, sans-serif">fax: <a href="tel:%2B43%20316%208769-1751" value="+4331687691751" target="_blank">+43 316 8769-1751</a></font></div>
<div><font face="Arial, sans-serif">e-mail: <a href="mailto:gerald.lodron@joanneum.at" target="_blank"><font color="#0000FF"><u>gerald.lodron@joanneum.at</u></font></a> </font></div>
<div><font face="Arial, sans-serif">web: <a href="http://www.joanneum.at/digital" target="_blank"><font color="#0000FF"><u>www.joanneum.at/digital</u></font></a></font></div>
<div><font face="Arial, sans-serif" size="3">_________________________________________________________________</font></div>
<div> </div>
<div><font color="#808080">This message and any attached files are confidential and intended solely for the addressee(s). Any publication, transmission or other use of the information by a person or entity other than the intended addressee(s) is prohibited.
If you receive this in error please contact the sender and delete the material. The sender does not accept liability for any errors or omissions as a result of the transmission.</font></div>
<div><font color="#808080"> </font></div>
<div><font color="#808080">Please consider the environment before printing this page.</font></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
</font>
</div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>