[mpich-discuss] finding number of cpus or cores

Jayesh Krishna jayesh at mcs.anl.gov
Thu Oct 7 11:02:47 CDT 2010


Hi,
 You could run a program that gets the processor information on the required nodes on the cluster using mpiexec (Or ask the sysadmin :) ).

Regards,
Jayesh
----- Original Message -----
From: "Harun Raşit ER" <harunrasiter at gmail.com>
To: jayesh at mcs.anl.gov
Cc: mpich-discuss at mcs.anl.gov
Sent: Thursday, October 7, 2010 3:04:23 AM GMT -06:00 US/Canada Central
Subject: Re: [mpich-discuss] finding number of cpus or cores

Hi, 

Thanks for your reply :) 

In fact I am looking for the number of processors available at a cluster of computers. 


On Wed, Oct 6, 2010 at 6:58 PM, < jayesh at mcs.anl.gov > wrote: 


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

Regards, 
Jayesh 



----- 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 
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss 



More information about the mpich-discuss mailing list