[Insight-users] itkGPUKernelManager compile error
Lodron, Gerald
Gerald.Lodron at joanneum.at
Mon May 27 05:40:23 EDT 2013
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<mailto: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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130527/a2cc32a6/attachment.htm>
More information about the Insight-users
mailing list