[Insight-users] MinGW and multithreading in ITK

lars-friedrich lars-friedrich at gmx.net
Tue Sep 15 18:26:26 EDT 2009


Hello,

in the following pre-processor-section situated in
Code/Common/itkMultiThreader.h

// mingw threads cause crashes  so limit to 1
#if defined(__MINGW32__)
#undef ITK_MAX_THREADS
#define ITK_MAX_THREADS 1 
#endif

the maximum number of threads is limited to 1 when using MinGW as
alternative open source compiler under microsoft OS.

Did someone ever play around with this setting, e.g. increasing it to 128
(as in most of the other compiler-cases)? Do the supposed crashes occur in
any case or only when using specific parts of ITK? Or do the crashes somehow
correlate with specific windows OS versions  (NT / 2000 / XP / 2003 / Vista)
or specific GCC / MinGW versions?

It would be very helpful if some experienced users / developers could give a
few hints and/or comments on this topic. Most of the computers today are
multi-core and, therefore, ITK-MinGW-users should also be able to make use
of this parallelism ...

Thank you.

Regards,

lars


-- 
View this message in context: http://www.nabble.com/MinGW-and-multithreading-in-ITK-tp25462897p25462897.html
Sent from the ITK - Users mailing list archive at Nabble.com.



More information about the Insight-users mailing list