This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
i am new to MPI and iam working on Visual Studio 2010 and my computer is core i5 i need a program that shows me the number of processors
on the computer in or C++ or C.
can any one please help me with this .
Hi,
To show number of processors on your computer, you can get the value from env var NUMBER_OF_PROCESSORS. you can use windows API getenv() (see http://msdn.microsoft.com/en-us/library/tehxacec(v=VS.80).aspx) to calculate the env var value.
hope this helps
Liwei