[Insight-users] itkGPUKernelManager compile error
Denis Shamonin
dshamoni at gmail.com
Mon May 27 07:13:12 EDT 2013
Hi,
1. The localWorkSize is not supported in the current implementation OpenCL
module in ITK4.
2. Download and use the patched version from the The Insight Journalarticle
http://hdl.handle.net/10380/3393
-Denis Shamonin
On Mon, May 27, 2013 at 11:40 AM, Lodron, Gerald
<Gerald.Lodron at joanneum.at>wrote:
> Hi
>
> I activated the gpu in ITK 4.3.2 with opencl of cuda v5 and vs2008 sp1 x64
> and get following error in itkGPUKernelManager:
>
> D:\Develop\Source\InsightToolkit-4.3.2\Modules\Core\GPUCommon\src\itkGPUKernelManager.cxx(393)
> : error C2065: 'localWorkSizeX' : undeclared identifier
>
> Here the code snippet
>
>
>
> bool GPUKernelManager::LaunchKernel2D(int kernelIdx,
> size_t globalWorkSizeX, size_t
> globalWorkSizeY,
> size_t itkNotUsed(localWorkSizeX),
> size_t itkNotUsed(localWorkSizeY) )
> {
> if(kernelIdx < 0 || kernelIdx >= (int)m_KernelContainer.size() ) return
> false;
>
> if(!CheckArgumentReady(kernelIdx) )
> {
> itkWarningMacro("GPU kernel arguments are not completely assigned");
> return false;
> }
>
> size_t gws[2], lws[2];
>
> gws[0] = globalWorkSizeX;
> gws[1] = globalWorkSizeY;
>
> lws[0] = localWorkSizeX;
> lws[1] = localWorkSizeY;
>
> localWorkSizeX is undefined, seems that itkNotUsed is missing/undefined
>
> Any suggestions? Thanks in advance
>
> *JOANNEUM RESEARCH Forschungsgesellschaft mbH*
>
> *DIGITAL – Institute for Information and Communication Technologies*
> Steyrergasse 17, 8010 Graz, Austria
>
> phone: +43 316 876-1751
> fax: +43 316 8769-1751
> e-mail: *gerald.lodron at joanneum.at* <gerald.lodron at joanneum.at>
> web: *www.joanneum.at/digital* <http://www.joanneum.at/digital>
> _________________________________________________________________
>
> 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.
>
> Please consider the environment before printing this page.
>
>
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130527/9076fb0d/attachment.htm>
More information about the Insight-users
mailing list