0

I am working on parallel programming on c++ (with Mac and linux) and I want to know if there is a way to detect the number of cores assigned to this program in c++98. Thank you.

wasabi123
  • 173
  • 1
  • 13
  • The part of the question is not yet answer... How do we assign number of cores to a parallelized c++ computation... – wasabi123 Aug 16 '15 at 03:36
  • I will undo the [duplicate vote](http://stackoverflow.com/questions/150355). Please [edit] your question to clarify what is unique about it. – Drew Dormann Aug 16 '15 at 05:23
  • 1
    Are you are working on a cluster-type environment with a job queue? If you are developing for a single machine with multiple cores, and no job scheduler, then the OS shares the CPU(s) amongst processes and the number of processes you should run should be roughly the number of CPUs in the system. But I'm not aware of assignment of cores in normal use. I could just be ignorant though. – Timtro Aug 16 '15 at 05:34
  • 2
    There will be no *portable standard c++98* way to do this – RamblingMad Aug 16 '15 at 05:34

0 Answers0