<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Vishal,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">finding out how much time each which function takes is called code profiling. VisualStudio, Xcode and valgrind can do it.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">You can offload the heaviest computation to GPU. And the exact problem with GPU is that programming GPUs is cumbersome. <a href="http://www.itk.org/Doxygen/html/classitk_1_1GPUDemonsRegistrationFilter.html">Demons</a> algorithm is already implemented for the GPU, you can take a look at how it is done.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Do you have a link to this Elastix?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 15, 2016 at 3:28 AM, vishal <span dir="ltr"><<a href="mailto:itkhelpacc@gmail.com" target="_blank">itkhelpacc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
I have three question:<br>
<br>
[1] I working on a registration algorithm that takes half an hour to<br>
converge... I want to optimize my code.. so I need to no which module takes<br>
the most computation time.. is there any method to do this?<br>
<br>
[2] after analysing the code is it possible to convert the CPU based module<br>
to GPU based module? Can any one guide to do that?<br>
<br>
[3] I came across this software called ELASTIX.. wherein there are many ITK<br>
modules written to run on GPU.. is it possible for me to include these<br>
modules into my code directly??<br>
<br>
any suggestion is appreciated...<br>
thank you<br>
<br>
Regards<br>
Vishal<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/How-to-analyse-the-time-taken-by-each-module-and-use-of-ELASTIX-in-ITK-tp36650.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.com/How-to-analyse-the-time-taken-by-each-module-and-use-of-ELASTIX-in-ITK-tp36650.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>