<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:14pt"><div>Thank you Mike,<br><br>Actually you answered me on the other forum (CMake forum). I am sorry it was my silly mistake. I should have set -fopenmp for CMAKE_C_FLAGS and CMAKE_CXX_FLAGS because it is a compiler flag! Thank you very much for the hint.<br><br>The remaining question is:<br>ITK uses LAPACK and LAPACK is multithreaded (correct me if I am wrong).
If yes how can I set number of threads for matrix multiplication? Is there any method like SetNumberofThreads() for linear algebra part of ITK?<br><br>Actually I check subject you mentioned in your email. I don't think it applies here, because it seems that in ITK, some filters are multi-threaded (some registeration, some segmentation methods, etc) but operations like matrix multiplication are not filters. I check doxygen, ITK has itk::MultiThreader class. It seems that it is a general purposes classs for multithreading. I just find cool presentation on na-mic.org:<br><br>http://www.na-mic.org/Wiki/images/2/24/Insight-MultiThreading.ppt<br><br>But I am wondering is there any more example how to use. I may try to implement simple matrix-matrix and post it online for illustration purpose but there is still reservation in the term of efficency. I though that perhaps this kind of stuff is already implemented. Please let me know if it is.
<br><br>Regards,<br>Kaveh<br></div><div style="font-family: times new roman,new york,times,serif; font-size: 14pt;"><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><br><br><br> 1. Re: about multithreading in ITK (Andriy Fedorov) (Michael Jackson)<br><br>You may want to look at a recent question asked by me on this list. <br>Look for the subject "Re: [Insight-users] Multi-Threaded <br>Registration". in there are some suggestions on getting some aspects <br>of Multi-Threading to work.<br><br>Also, I had those same openmp examples working with CMake so I know it <br>will work.<br><br>If you are compiling on the command line try "make VERBOSE=1" and <br>inspect the full compiler command to make sure your flags are making <br>it through.<br><br>---<br>Mike Jackson <a target="_blank"
href="http://www.bluequartz.net">www.bluequartz.net</a><br><br><br><br><br></div></div></div><br>
</body></html>