Hi Steven,<br><br>Thanks for your suggestions and sorry for the late reply. I contacted our cluster admin and the problem seems to be on some restriction policies which do not allow to create pthreads within the cluster. So, it is solely a cluster problem and has nothing to do with ITK itself.<br>
<br>Best,<br>Christof<br><br><div class="gmail_quote">On Fri, May 1, 2009 at 4:05 PM, Steven Manos <span dir="ltr">&lt;<a href="mailto:s.manos@ucl.ac.uk">s.manos@ucl.ac.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<div><div></div><div class="h5"><br>
<br>
On 1 May 2009, at 12:59, Christof Seiler wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am trying to run some ITK code on a linux cluster at my university and I get the following exception:<br>
<br>
terminate called after throwing an instance of &#39;itk::ExceptionObject&#39;<br>
  what():  /home/ubelix/artorg/cseiler/tmp/InsightToolkit-3.10.2/Code/Common/itkMultiThreader.cxx:475:<br>
itk::ERROR: MultiThreader(0x12a1c50): Exception occurred during SingleMethodExecute<br>
/home/ubelix/artorg/cseiler/tmp/InsightToolkit-3.10.2/Code/Common/itkMultiThreader.cxx:901:<br>
itk::ERROR: MultiThreader(0x12a1c50): Unable to join thread.<br>
/var/spool/sge/anode16/job_scripts/9909286: line 23: 30063 Aborted                 (core dumped) ./cvsampler ../data/DVF/femur-l-Segmented/ ../data/reference/Reference-Classified-SLICES 2 3<br>
<br>
I tried setting the number of threads to one:<br>
itk::MultiThreader::SetGlobalDefaultNumberOfThreads(1);<br>
<br>
But still get the same exception. The cluster runs on Sun Grid Engine (SGE). Everything works fine when I start the program in a non-cluster environment.<br>
</blockquote>
<br></div></div>
I&#39;ve seen issues like this before, mainly related to the incorrect threading library being used (e.g. compiling with the Intel compiler.. using gnu pthreads..).<br>
<br>
I would check out which pthread libraries are being loaded when you run your code in the cluster environment..<br>
<br>
As a check - are you able to successfully run some simple pthread code through SGE? Or even OpenMP code.<br>
<br>
Steven.<br>
<br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
<br>
Any ideas would be very much appreciated.<br>
<br>
Regards,<br>
Christof<br>
<br></div>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" 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" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at: <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote>
<br>
</blockquote></div><br>