[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [ITK-users] Any instruction of compiling ITK with GPU support
From:       "Xiaopeng Yang" <yxp233 () postech ! ac ! kr>
Date:       2014-09-18 1:48:11
Message-ID: 009401cfd2e2$9b13c640$d13b52c0$ () ac ! kr
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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@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@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@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".

 

 

 


[Attachment #5 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:"\@SimSun";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:SimSun;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:SimSun;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"批注框文本 Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:9.0pt;
	font-family:SimSun;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#44546A;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#44546A;}
span.Char
	{mso-style-name:"批注框文本 Char";
	mso-style-priority:99;
	mso-style-link:批注框文本;
	font-family:SimSun;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:3.0cm 72.0pt 72.0pt 72.0pt;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Hi \
Mike,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>I found \
that you were right. I changed the forward slashes for the directories of \
OpenCL:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>OPENCL_INCLUDE_DIRS \
C:/Program Files/NVIDIA GPU Computing \
Toolkit/CUDA/v6.5/include<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>OPENCL_LIBRARIES \
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>There was \
no CMake error, but many warning messages:<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
style='margin:0cm;margin-bottom:.0001pt'><span lang=EN-US style='color:red'>WARNING: \
Target &quot;ITKGPUCommon&quot; requests linking to directory &quot;C:/Program \
Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib&quot;. Targets may link only to \
libraries. CMake is dropping the item.</span><span \
lang=EN-US><o:p></o:p></span></p><p \
style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0'><span lang=EN-US \
style='color:red'>WARNING: Target &quot;ITKGPUCommon&quot; requests linking to \
directory &quot;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib&quot;. \
Targets may link only to libraries. CMake is dropping the item.</span><span \
lang=EN-US><o:p></o:p></span></p><p \
style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0'><span lang=EN-US \
style='color:red'>WARNING: Target &quot;ITKGPUCommon&quot; requests linking to \
directory &quot;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib&quot;. \
Targets may link only to libraries. CMake is dropping the item.</span><span \
lang=EN-US><o:p></o:p></span></p><p \
style='margin:0cm;margin-bottom:.0001pt;-qt-block-indent:0'><span lang=EN-US \
style='color:red'>WARNING: Target &quot;ITKGPUCommon&quot; requests linking to \
directory &quot;C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v6.5/lib&quot;. \
Targets may link only to libraries. CMake is dropping the item.</span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal style='-qt-block-indent:0'><span \
lang=EN-US style='color:red'>WARNING: Target &quot;ITKGPUCommon&quot; requests \
linking to directory &quot;C:/Program Files/NVIDIA GPU Computing \
Toolkit/CUDA/v6.5/lib&quot;. Targets may link only to libraries. CMake is dropping \
the item.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='color:red'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>And when I \
tried to debug ITK, errors occurred as "cannot find CL/opencl.h". \
<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Can you \
tell me where I made a mistake?<o:p></o:p></span></p><p class=MsoNormal><span \
lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Thank \
you,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Xiaopeng<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span lang=EN-US \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Xiaopeng Yang \
[mailto:yxp233@postech.ac.kr] <br><b>Sent:</b> Thursday, September 18, 2014 9:12 \
AM<br><b>To:</b> 'Mike Chinander'; 'insight-users'<br><b>Subject:</b> RE: [ITK-users] \
Any instruction of compiling ITK with GPU support<o:p></o:p></span></p></div></div><p \
class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span \
lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Hi \
Mike,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>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?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Thanks,<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>Xiaopeng<o:p></o:p></span></p><p \
class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'><o:p>&nbsp;</o:p></span></p><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p \
class=MsoNormal><b><span lang=EN-US \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Insight-users \
[<a href="mailto:insight-users-bounces@itk.org">mailto:insight-users-bounces@itk.org</a>] \
<b>On Behalf Of </b>Mike Chinander<br><b>Sent:</b> Wednesday, September 17, 2014 \
10:29 PM<br><b>To:</b> insight-users<br><b>Subject:</b> Re: [ITK-users] Any \
instruction of compiling ITK with GPU support<o:p></o:p></span></p></div><p \
class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><div><p \
class=MsoNormal><span lang=EN-US>Did you manually set the path \
&quot;D:\Toolbox\ITK-4.6.0&quot; somewhere? Try it with forward slashes instead, \
&quot;D:/Toolbox/ITK-4.6.0&quot;<o:p></o:p></span></p><div><p class=MsoNormal><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p><div><p class=MsoNormal><span lang=EN-US>On \
Wed, Sep 17, 2014 at 8:23 AM, Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr" \
target="_blank">yxp233@postech.ac.kr</a>&gt; wrote:<o:p></o:p></span></p><div><div><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>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:</span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>&nbsp;</span><span \
lang=EN-US><o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span \
lang=EN-US>Found OpenCL: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.5\lib \
<o:p></o:p></span></p><p style='margin-bottom:12.0pt'><span lang=EN-US \
style='color:red'>CMake Error at C:/Program Files \
(x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:304 (set):<br>Syntax error in cmake \
code at<br><br>C:/Program Files \
(x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:304<br><br>when parsing \
string<br><br>D:\Toolbox\ITK-4.6.0<br><br>Invalid escape sequence \T<br>Call Stack \
(most recent call first):<br>C:/Program Files \
(x86)/CMake/share/cmake-3.0/Modules/CPack.cmake:516 \
(cpack_set_if_not_set)<br>CMake/ITKModuleEnablement.cmake:171 \
(include)<br>CMakeLists.txt:322 (include)</span><span \
lang=EN-US><o:p></o:p></span></p><p style='margin:0cm;margin-bottom:.0001pt'><span \
lang=EN-US>Configuring incomplete, errors occurred!<o:p></o:p></span></p><p \
style='margin:0cm;margin-bottom:.0001pt'><span lang=EN-US>See also \
&quot;D:/Toolbox/ITK-4.6.0/bin/CMakeFiles/CMakeOutput.log&quot;.<o:p></o:p></span></p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US>See also &quot;D:/Toolbox/ITK-4.6.0/bin/CMakeFiles/CMakeError.log&quot;.<o:p></o:p></span></p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>&nbsp;</span><span \
lang=EN-US><o:p></o:p></span></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US \
style='font-size:10.5pt;font-family:"Calibri","sans-serif";color:#44546A'>&nbsp;</span><span \
lang=EN-US><o:p></o:p></span></p><div><div style='border:none;border-top:solid \
#B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US><o:p>&nbsp;</o:p></span></p></div></div></div></div></div></div></div></div></body></html>




_____________________________________
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://public.kitware.com/mailman/listinfo/insight-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic