MantisBT - VTK
View Issue Details
0003331VTK(No Category)public2006-06-07 10:112008-06-03 14:47
Sean McBride 
Will Schroeder 
lowmajoralways
closedfixed 
 
 
0003331: Replace MPProcessors() to gain improved 64bit compatibility
On Mac OS X only some APIs are available to 64 bit applications, see:
<http://developer.apple.com/documentation/Darwin/Conceptual/64bitPorting/indications/chapter_2_section_2.html> [^]

Specifically, only the APIs in System.framework and Accelerate.framework are available. So no Carbon, Cocoa, OpenGL, etc.

vtkMultiThreader.cxx is including Carbon to call the function MPProcessors().

This API could be replaced by a different one for 64 bit compatibility.

One option is sysctl() with 'hw.ncpu'-- I think. I'm not 100% sure of the purpose of vtkMultiThreader::GetGlobalDefaultNumberOfThreads().
No tags attached.
has duplicate 0002932closed Will Schroeder vtkMultiThreader.cxx fails to compile on Mac OS/X 10.4.4, XCode 2.2 
Issue History
2007-08-10 08:56David ColeRelationship addedhas duplicate 0002932
2008-06-03 14:47Sean McBrideStatus@80@ => closed
2008-06-03 14:47Sean McBrideResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0006266)
Sean McBride   
2007-01-25 16:56   
Fixed by me.