[mpich-discuss] finding number of cpus or cores

jayesh at mcs.anl.gov jayesh at mcs.anl.gov
Wed Oct 6 10:58:57 CDT 2010

 Are you looking for a portable solution ? On windows you can use GetLogicalProcessorInformation() .

----- Original Message -----
From: "Harun Raşit ER" <harunrasiter at gmail.com>
To: mpich-discuss at mcs.anl.gov
Sent: Wednesday, October 6, 2010 8:11:23 AM GMT -06:00 US/Canada Central
Subject: [mpich-discuss] finding number of cpus or cores

If we use "MPI::COMM_WORLD.Get_size();" we get the number of the processes but i would like to get the number of processors . But i could find a solution for this. 

I am using VS2005 and MPICH2. 

I hope there is a solution for the problem. 

Thanks for your attention. 

mpich-discuss mailing list
mpich-discuss at mcs.anl.gov

More information about the mpich-discuss mailing list