Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 196
    • Merge requests 196
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #3331
Closed
Open
Created Jun 06, 2006 by Kitware Robot@kwrobotOwner

Replace MPProcessors() to gain improved 64bit compatibility

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


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().

Assignee
Assign to
Time tracking