It appears to be used as a "lazy man's" thread local storage in vtkMultiThreader (and a couple other scattered uses) -- there are simply many arrays of length VTK_MAX_THREADS stored inside an instance of vtkMultiThreader. Which could certainly be changed to a single array of stuff, and probably even one that's dynamically allocated so that VTK_MAX_THREADS is actually unnecessary.<br>
<br>But..... unless somebody goes through and eliminates VTK_MAX_THREADS usage (also a valid option, if one is ambitious enough and has sufficient time...), then we need an increased "hard coded" value for now.<br>
<br><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 11:14 AM, Moreland, Kenneth <span dir="ltr"><<a href="mailto:kmorel@sandia.gov">kmorel@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">Why is there a hardcoded maximum in the first place? It seems to me that whatever number you choose now will be excessively high and/or obsolete in the coming years as the number of cores per processor grows.<br>
<br>
-Ken<div><div></div><div class="h5"><br>
<br>
<br>
On 1/24/11 8:04 AM, "Bill Lorensen" <<a href="http://bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>> wrote:<br>
<br>
</div></div></span></font><div><div></div><div class="h5"><blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;">ITK has had the max set to 128 for quite a while.<br>
<br>
On Mon, Jan 24, 2011 at 9:53 AM, David Partyka<br>
<<a href="http://david.partyka@kitware.com" target="_blank">david.partyka@kitware.com</a>> wrote:<br>
> Sure thing, especially considering one can get a machine with dual<br>
> Hexa-cores + Hyper Threading resulting in 24 available cores.<br>
><br>
> On Mon, Jan 24, 2011 at 9:39 AM, David Cole <<a href="http://david.cole@kitware.com" target="_blank">david.cole@kitware.com</a>> wrote:<br>
>><br>
>> I think it's just old and leftover, and nobody has yet found a compelling<br>
>> need for more than 8 threads on Windows. It should be fine to increase this<br>
>> number, especially if you actually have a Windows box with more than 8<br>
>> processors on it.<br>
>><br>
>> Feel free to change your build locally to increase that value. Perhaps<br>
>> somebody here on the VTK developers list is also contemplating more powerful<br>
>> Window machines these days... Anybody here want to bump this up and commit<br>
>> the change?<br>
>><br>
>><br>
>> On Mon, Jan 24, 2011 at 5:11 AM, Pavel Pokutnev<br>
>> <<a href="http://pavel.pokutnev@googlemail.com" target="_blank">pavel.pokutnev@googlemail.com</a>> wrote:<br>
>>><br>
>>> Hello vtk-devs,<br>
>>><br>
>>> sorry, but I would like to repeat my question.<br>
>>> There is a define VTK_MAX_THREADS in "Common/vtkSystemIncludes.h". It<br>
>>> is defined to 8 for Win32 threads, but for all other platforms to 32.<br>
>>> What is the cause for this non-conformity?<br>
>>><br>
>>> Best regards,<br>
>>> Pavel<br>
>>> _______________________________________________<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>
>>> Follow this link to subscribe/unsubscribe:<br>
>>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<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>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<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>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br>
<br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font></div></div><font size="2"><font face="Consolas, Courier New, Courier"><span style="font-size: 10pt;"><br>
**** Kenneth Moreland<br>
*** Sandia National Laboratories<br>
*********** <br>
*** *** *** email: <a href="http://kmorel@sandia.gov" target="_blank">kmorel@sandia.gov</a><br>
** *** ** phone: (505) 844-8919<br>
*** web: <a href="http://www.cs.unm.edu/%7Ekmorel" target="_blank">http://www.cs.unm.edu/~kmorel</a><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size: 11pt;"><br>
</span></font>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br>