[ITK-users] Any instruction of compiling ITK with GPU support

Xiaopeng Yang yxp233 at postech.ac.kr
Wed Sep 17 21:48:11 EDT 2014


Hi Mike,

 

I found that you were right. I changed the forward slashes for the directories of OpenCL:

 

OPENCL_INCLUDE_DIRS  C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/include

OPENCL_LIBRARIES          C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib

 

There was no CMake error, but many warning messages:

 

WARNING: Target "ITKGPUCommon" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "ITKGPUCommon" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "ITKGPUCommon" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "ITKGPUCommon" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib". Targets may link only to libraries. CMake is dropping the item.

WARNING: Target "ITKGPUCommon" requests linking to directory "C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib". Targets may link only to libraries. CMake is dropping the item.

 

And when I tried to debug ITK, errors occurred as “cannot find CL/opencl.h”. 

 

Can you tell me where I made a mistake?

 

Thank you,

Xiaopeng

 

From: Xiaopeng Yang [mailto:yxp233 at postech.ac.kr] 
Sent: Thursday, September 18, 2014 9:12 AM
To: 'Mike Chinander'; 'insight-users'
Subject: RE: [ITK-users] Any instruction of compiling ITK with GPU support

 

Hi Mike,

 

If I turn USE_GPU off, then there is no CMake error. I guess there is something wrong with the GPU module. I am using CUDA toolkit 6.5 for compiling. Which version of CUDA toolkit should I use?

 

Thanks,

Xiaopeng

 

From: Insight-users [mailto:insight-users-bounces at itk.org] On Behalf Of Mike Chinander
Sent: Wednesday, September 17, 2014 10:29 PM
To: insight-users
Subject: Re: [ITK-users] Any instruction of compiling ITK with GPU support

 

Did you manually set the path "D:\Toolbox\ITK-4.6.0" somewhere? Try it with forward slashes instead, "D:/Toolbox/ITK-4.6.0"

 

On Wed, Sep 17, 2014 at 8:23 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

By the way, I tried to compile ITK 4.6.0 with Visual Studio 2010, under windows 7 64 bit. I set USE_GPU on, but I got the error as follows:

 

Found OpenCL: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\lib 

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:304 (set):
Syntax error in cmake code at

C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:304

when parsing string

D:\Toolbox\ITK-4.6.0

Invalid escape sequence \T
Call Stack (most recent call first):
C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:516 (cpack_set_if_not_set)
CMake/ITKModuleEnablement.cmake:171 (include)
CMakeLists.txt:322 (include)

Configuring incomplete, errors occurred!

See also "D:/Toolbox/ITK-4.6.0/bin/CMakeFiles/CMakeOutput.log".

See also "D:/Toolbox/ITK-4.6.0/bin/CMakeFiles/CMakeError.log".

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140918/d360fd06/attachment-0001.html>


More information about the Insight-users mailing list