Hi Lide, On Sun, 29 Apr 2007, Lide Duan wrote:
> Hi there, > > I followed the steps of the experiment introduced in the getting started > guide, and successfully observed the measurement results. This experiment is > for some test application, but if I want to measure other workloads, how can > I do? For example, I have created a bunch of simics checkpoints and want to > measure them each of which contains several files. What modifications should > I make to the prepare-test-app script? Do I need to modify other scripts? > > Actually I just want to measure different workloads using different > simulators. I tried to use TraceFlex to warm up the cache, and load some > other simulator to do the detail simulation, but it failed. Seems that > Flexus cannot switch between different modules during simulation. Then how > can I do? I found that the experiment in the getting started guide is a good As you observed, it is not possible to load more than one flexus simulator into Simics. You need to save a checkpoint of Simics' state, exit simics, reload this checkpoint, and then load a different simulator. Our simulators (like TraceFlex) can also save their state (e.g., contents of the cache). We call checkpoints that include Flexus state "flexpoints". > template to do the simulation and process the results, so I was trying to > modify the scripts to measure different checkpoints. The example scripts for the flexus test app demonstrate the process of creating flexpoints to measure an application. The overall approach these scripts follow is documented in our IEEE Micro article (see the simflex web page). The prepare-test-app script boots Simics and creates a Simics checkpoint of our test application after it has started running. For your own applications, you need to create a similar checkpoint. Then, you can modify flexus-test-app/config/initial/preload.simics to refer to your checkpoint instead of the checkpoint created by prepare-test-app. I suggest you read the parts of the Simics manuals that discuss checkpoints if you have not already done so, as this will help you in understanding what our scripts do. Best Regards, -Tom Wenisch Computer Architecture Lab Carnegie Mellon University > > Sincerely, > Lide > -------------- next part -------------- _______________________________________________ SimFlex mailing list [email protected] https://sos.ece.cmu.edu/mailman/listinfo/simflex SimFlex web page: http://www.ece.cmu.edu/~simflex From bramad2 at lsu.edu Fri May 4 06:32:28 2007 From: bramad2 at lsu.edu (Balachandran Ramadass) List-Post: [email protected] Date: Fri May 4 13:30:40 2007 Subject: [Simflex] problem in assigning global variable Message-ID: <[email protected]> hi my name is bala i am new to the SIMFLEX simulator , i have a problem like i created a variable in SimicsTracer.hpp to count the number of instruction . i need to access the same variable in the BaseCacheControllerImpl.cpp and CacheController.cpp . I tried using extern keyword while using this keyword i can able to make the CMPFlex module but while loading the module to simics it shows like unknown variable(failed to load). please give any suggestion. bala From twenisch at ece.cmu.edu Tue May 8 15:43:54 2007 From: twenisch at ece.cmu.edu (Thomas Wenisch) List-Post: [email protected] Date: Tue May 8 15:44:01 2007 Subject: [Simflex] problem in assigning global variable In-Reply-To: <[email protected]> References: <[email protected]> Message-ID: <[email protected]> Hello Bala, What is the link error that you are recieving? Where and how are you declaring and defining the extern variable? (Remember, the variable must be defined (without the extern keyword) in exactly one C++ module). Regards, -Tom Wenisch Computer Architecture Lab Carnegie Mellon University On Fri, 4 May 2007, Balachandran Ramadass wrote: > hi > > my name is bala i am new to the SIMFLEX simulator , i have a problem > like i created a variable in SimicsTracer.hpp to count the number of > instruction . i need to access the same variable in the > BaseCacheControllerImpl.cpp and CacheController.cpp . I tried using > extern keyword while using this keyword i can able to make the CMPFlex > module but while loading the module to simics it shows like unknown > variable(failed to load). > > please give any suggestion. > > bala > _______________________________________________ > SimFlex mailing list > [email protected] > https://sos.ece.cmu.edu/mailman/listinfo/simflex > SimFlex web page: http://www.ece.cmu.edu/~simflex > From bramad2 at lsu.edu Thu May 10 13:24:35 2007 From: bramad2 at lsu.edu (Balachandran Ramadass) List-Post: [email protected] Date: Thu May 10 13:24:43 2007 Subject: [Simflex] problem in assigning global variable Message-ID: <[email protected]> hi Tom, I decleared a variable in SimicsTracer.hpp (extern long long int countinst ) This module is in the directory "/components/InorderSimicsFeeder/" then i declared the same variable in BaseCachecontrollerImpl.cpp (extern long long int countinst) this module is in the directory "/components/Cache/" then i created one header file "test.hpp" in that i initialize the same variable( static long long int countinst) this file is in the directory "/components/Cache/" then i included the test.hpp in both the SimicsTracer.hpp and BaseCacheControllerImpl.cpp. i am able to make the CMPFlex module but while loding it into Simics i got the error like simics> load-module flexus-CMPFlex-v9-iface-gcc Error loading module 'flexus-CMPFlex-v9-iface-gcc': Failed to load module 'flexus-CMPFlex-v9-iface-gcc' ('/home/yiee/opt/Simics/simics-2.2.19/x86-linux/lib/libflexus_CMPFlex_v9_iface_gcc.so'): "/home/yiee/opt/Simics/simics-2.2.19/x86-linux/lib/libflexus_CMPFlex_v9_iface_gcc.so: undefined symbol: _ZN20nInorderSimicsFeeder9countinstE" bala > ----- Original Message ----- > From: "Thomas Wenisch" <[email protected]> > To: "SimFlex software support" <[email protected]> > Subject: Re: [Simflex] problem in assigning global variable > Date: Tue, 8 May 2007 15:43:54 -0400 (EDT) > > > Hello Bala, > > What is the link error that you are recieving? Where and how are > you declaring and defining the extern variable? (Remember, the > variable must be defined (without the extern keyword) in exactly > one C++ module). > > Regards, > -Tom Wenisch > Computer Architecture Lab > Carnegie Mellon University > > On Fri, 4 May 2007, Balachandran Ramadass wrote: > > > hi > > > > my name is bala i am new to the SIMFLEX simulator , i have a > > problem like i created a variable in SimicsTracer.hpp to count > > the number of instruction . i need to access the same variable in > > the BaseCacheControllerImpl.cpp and CacheController.cpp . I tried > > using extern keyword while using this keyword i can able to make > > the CMPFlex module but while loading the module to simics it > > shows like unknown variable(failed to load). > > > > please give any suggestion. > > > > bala > > _______________________________________________ > > SimFlex mailing list > > [email protected] > > https://sos.ece.cmu.edu/mailman/listinfo/simflex > > SimFlex web page: http://www.ece.cmu.edu/~simflex > > > _______________________________________________ > SimFlex mailing list > [email protected] > https://sos.ece.cmu.edu/mailman/listinfo/simflex > SimFlex web page: http://www.ece.cmu.edu/~simflex >
