Re: [Gems-users] Processor number in Opal


Date: Thu, 3 Jun 2010 12:08:19 +0800
From: Amy Pang <pangjiufeng@xxxxxxxxxxxxxxx>
Subject: Re: [Gems-users] Processor number in Opal
Hi Muhammad abid Mughal

You mentioned that SIM_number_processors() function is always called from Simics and returns the total number of processors in the system.  Where is the definition of this funtion, in Simics or else?

In $GEMS/opal/system/system.C line 207, it calls SIM_number_processors() function and the comments show that this establishes how many processors there are in the system(for SMT, this is the total number of LOGICAL processors in the system).  Then, this SIM_number_processors() call is the same as that of Simics. Am I correct?  Then the numProcs returned by this function call is the total number of processors in Opal and used to construct the same number of sequencers in Opal.

Thanks for your reply.

-Amy


2010/5/31 Amy Pang <pangjiufeng@xxxxxxxxxxxxxxx>
Hi,

I find that there is only one place defining SIM_number_processor() function ( $GEMS/opal/system/simdist12.C line 241). It is always return 1, which is used as Opal as the processor number in the system( $GEMS/opal/system/system.C line 207 ). I am a little confused about your reply. How could G_PROC_PER_CHIP (defineed by config file or reset by run-time parameter) affect the value returned by SIM_number_processor() funtion? 

Thanks very much.

///////////////////////////////////////////////
Last reply

Message: 3
Date: Thu, 27 May 2010 07:19:04 -0700 (PDT)
From: Muhammad abid Mughal <mabidm_pieas@xxxxxxxxx>
To: Gems Users <gems-users@xxxxxxxxxxx>
Subject: Re: [Gems-users] Processor number in Opal
Message-ID: <727777.3820.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

use the same ruby parameters  (g_PROCS_PER_CHIP, g_NUM_PROCESSORS)  to specify number of Opal processor
Use same value for g_NUM_SMT_THREADS and CONFIG_LOGICAL_PER_PHY_PROC
 SIM_number_processor() always returns 1 because you are using single processor checkpoint

if you are using 4 Opal processors (and each processor has 4 threads) then simics checkpoint must have 16 processors.

Regards
Muhammad abid

2010/5/27 Amy Pang <pangjiufeng@xxxxxxxxxxxxxxx>
Hi list,


I find that the simulated processor number in Ruby could be set in $GEMS/ruby/config/rubyconfig.
default through two parameters (g_PROCS_PER_CHIP, g_NUM_PROCESSORS) and could be changed after booting up Simics. And the simulated processor number in Ruby should be same as that of Simics.

But how could you set simulated processor number in Opal? In $GEMS/opal/config/config.default, there is only CONFIG_LOGICAL_PER_PHY_PROC which is defined for SMT.  In $GEMS/opal/system/system.C line 207 SIM_number_processor() always returns 1, which is used as Opal as the processor number in the system.  That might dismatch with Ruby and Simics.

I am  new to GEMS and appreciate your help.


--
-Amy Pang



--
-Amy Pang



--
-Amy Pang
[← Prev in Thread] Current Thread [Next in Thread→]