[Insight-users] Linux Cluster Threading Problem

Steven Manos s.manos at ucl.ac.uk
Fri May 1 10:05:30 EDT 2009


Hi,

On 1 May 2009, at 12:59, Christof Seiler wrote:
> I am trying to run some ITK code on a linux cluster at my university  
> and I get the following exception:
>
> terminate called after throwing an instance of 'itk::ExceptionObject'
>   what():  /home/ubelix/artorg/cseiler/tmp/InsightToolkit-3.10.2/ 
> Code/Common/itkMultiThreader.cxx:475:
> itk::ERROR: MultiThreader(0x12a1c50): Exception occurred during  
> SingleMethodExecute
> /home/ubelix/artorg/cseiler/tmp/InsightToolkit-3.10.2/Code/Common/ 
> itkMultiThreader.cxx:901:
> itk::ERROR: MultiThreader(0x12a1c50): Unable to join thread.
> /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
>
> I tried setting the number of threads to one:
> itk::MultiThreader::SetGlobalDefaultNumberOfThreads(1);
>
> 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.

I'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..).

I would check out which pthread libraries are being loaded when you  
run your code in the cluster environment..

As a check - are you able to successfully run some simple pthread code  
through SGE? Or even OpenMP code.

Steven.



>
>
> Any ideas would be very much appreciated.
>
> Regards,
> Christof
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list