changeset 7339a92fffb5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=7339a92fffb5
description:
        tests, ruby: Move rubytests from ALPHA (linux) to NULL (none)

        This patch avoids compiling ALPHA six times as part of running
        'util/regress', and instead relis on NULL with different protocols to
        run the rubytest. All we need is the memory system, so there is really
        no need to compile the ISA over and over again.

        The one downside is the removal of running 'hello' for the variuos
        ALPHA and protocol combinations, but if this is a concern we should
        rather beef up the synthetic tests for the variuos protocols.

diffstat:

 build_opts/NULL_MESI_Two_Level                                                 
           |     3 +
 build_opts/NULL_MOESI_CMP_directory                                            
           |     3 +
 build_opts/NULL_MOESI_CMP_token                                                
           |     3 +
 build_opts/NULL_MOESI_hammer                                                   
           |     3 +
 tests/configs/rubytest-ruby.py                                                 
           |     2 +-
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/config.ini
      |  1456 ------
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/simerr
          |    10 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/simout
          |    15 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/stats.txt
       |   764 ---
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_directory/config.ini
 |  1448 ------
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_directory/simerr
     |    10 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_directory/simout
     |    15 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_directory/stats.txt
  |   756 ---
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_token/config.ini
     |  2138 ----------
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_token/simerr
         |    10 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_token/simout
         |    15 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_CMP_token/stats.txt
      |   853 ---
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_hammer/config.ini
        |  1514 -------
 tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_hammer/simerr 
           |    10 -
 tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_hammer/simout 
           |    15 -
 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MOESI_hammer/stats.txt
         |   782 ---
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MESI_Two_Level/config.ini
        |  1381 ------
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MESI_Two_Level/simerr 
           |     8 -
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MESI_Two_Level/simout 
           |    13 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MESI_Two_Level/stats.txt
         |   675 ---
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_directory/config.ini
   |  1373 ------
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_directory/simerr
       |     8 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_directory/simout
       |    13 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_directory/stats.txt
    |   649 ---
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_token/config.ini
       |  2063 ---------
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_token/simerr 
          |     8 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_token/simout 
          |    13 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_CMP_token/stats.txt
        |   711 ---
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_hammer/config.ini
          |  1439 ------
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_hammer/simerr   
           |     8 -
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_hammer/simout   
           |    13 -
 
tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby-MOESI_hammer/stats.txt 
          |   699 ---
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby/config.ini            
           |  1191 -----
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby/simerr                
           |     8 -
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby/simout                
           |    13 -
 tests/quick/se/60.rubytest/ref/alpha/linux/rubytest-ruby/stats.txt             
           |   539 --
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MESI_Two_Level/config.ini
          |  1381 ++++++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MESI_Two_Level/simerr   
           |     8 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MESI_Two_Level/simout   
           |    13 +
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MESI_Two_Level/stats.txt 
          |   675 +++
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_directory/config.ini
     |  1373 ++++++
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_directory/simerr
         |     8 +
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_directory/simout
         |    13 +
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_directory/stats.txt
      |   649 +++
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_token/config.ini
         |  2063 +++++++++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_token/simerr  
           |     8 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_token/simout  
           |    13 +
 
tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_CMP_token/stats.txt
          |   711 +++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_hammer/config.ini 
           |  1439 ++++++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_hammer/simerr     
           |     8 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_hammer/simout     
           |    13 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby-MOESI_hammer/stats.txt  
           |   699 +++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby/config.ini              
           |  1191 +++++
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby/simerr                  
           |     8 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby/simout                  
           |    13 +
 tests/quick/se/60.rubytest/ref/null/none/rubytest-ruby/stats.txt               
           |   539 ++
 util/regress                                                                   
           |     9 +-
 62 files changed, 10843 insertions(+), 20641 deletions(-)

diffs (truncated from 31746 to 300 lines):

diff -r d40bdd3c5778 -r 7339a92fffb5 build_opts/NULL_MESI_Two_Level
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/build_opts/NULL_MESI_Two_Level    Thu Nov 17 04:54:16 2016 -0500
@@ -0,0 +1,3 @@
+TARGET_ISA = 'null'
+CPU_MODELS = ''
+PROTOCOL = 'MESI_Two_Level'
diff -r d40bdd3c5778 -r 7339a92fffb5 build_opts/NULL_MOESI_CMP_directory
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/build_opts/NULL_MOESI_CMP_directory       Thu Nov 17 04:54:16 2016 -0500
@@ -0,0 +1,3 @@
+TARGET_ISA = 'null'
+CPU_MODELS = ''
+PROTOCOL='MOESI_CMP_directory'
diff -r d40bdd3c5778 -r 7339a92fffb5 build_opts/NULL_MOESI_CMP_token
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/build_opts/NULL_MOESI_CMP_token   Thu Nov 17 04:54:16 2016 -0500
@@ -0,0 +1,3 @@
+TARGET_ISA = 'null'
+CPU_MODELS = ''
+PROTOCOL='MOESI_CMP_token'
diff -r d40bdd3c5778 -r 7339a92fffb5 build_opts/NULL_MOESI_hammer
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/build_opts/NULL_MOESI_hammer      Thu Nov 17 04:54:16 2016 -0500
@@ -0,0 +1,3 @@
+TARGET_ISA = 'null'
+CPU_MODELS = ''
+PROTOCOL='MOESI_hammer'
diff -r d40bdd3c5778 -r 7339a92fffb5 tests/configs/rubytest-ruby.py
--- a/tests/configs/rubytest-ruby.py    Thu Nov 17 04:54:14 2016 -0500
+++ b/tests/configs/rubytest-ruby.py    Thu Nov 17 04:54:16 2016 -0500
@@ -40,7 +40,7 @@
 from common import Options
 
 parser = optparse.OptionParser()
-Options.addCommonOptions(parser)
+Options.addNoISAOptions(parser)
 
 # Add the ruby specific and protocol specific options
 Ruby.define_options(parser)
diff -r d40bdd3c5778 -r 7339a92fffb5 
tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/config.ini
--- 
a/tests/quick/se/00.hello/ref/alpha/linux/simple-timing-ruby-MESI_Two_Level/config.ini
      Thu Nov 17 04:54:14 2016 -0500
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,1456 +0,0 @@
-[root]
-type=Root
-children=system
-eventq_index=0
-full_system=false
-sim_quantum=0
-time_sync_enable=false
-time_sync_period=100000000
-time_sync_spin_threshold=100000
-
-[system]
-type=System
-children=clk_domain cpu dvfs_handler mem_ctrls ruby sys_port_proxy 
voltage_domain
-boot_osflags=a
-cache_line_size=64
-clk_domain=system.clk_domain
-default_p_state=UNDEFINED
-eventq_index=0
-exit_on_work_items=false
-init_param=0
-kernel=
-kernel_addr_check=true
-load_addr_mask=1099511627775
-load_offset=0
-mem_mode=timing
-mem_ranges=0:268435455:0:0:0:0
-memories=system.mem_ctrls
-mmap_using_noreserve=false
-multi_thread=false
-num_work_ids=16
-p_state_clk_gate_bins=20
-p_state_clk_gate_max=1000000000
-p_state_clk_gate_min=1
-power_model=Null
-readfile=
-symbolfile=
-thermal_components=
-thermal_model=Null
-work_begin_ckpt_count=0
-work_begin_cpu_id_exit=-1
-work_begin_exit_count=0
-work_cpus_ckpt_count=0
-work_end_ckpt_count=0
-work_end_exit_count=0
-work_item_id=-1
-system_port=system.sys_port_proxy.slave[0]
-
-[system.clk_domain]
-type=SrcClockDomain
-clock=1
-domain_id=-1
-eventq_index=0
-init_perf_level=0
-voltage_domain=system.voltage_domain
-
-[system.cpu]
-type=TimingSimpleCPU
-children=clk_domain dtb interrupts isa itb tracer workload
-branchPred=Null
-checker=Null
-clk_domain=system.cpu.clk_domain
-cpu_id=0
-default_p_state=UNDEFINED
-do_checkpoint_insts=true
-do_quiesce=true
-do_statistics_insts=true
-dtb=system.cpu.dtb
-eventq_index=0
-function_trace=false
-function_trace_start=0
-interrupts=system.cpu.interrupts
-isa=system.cpu.isa
-itb=system.cpu.itb
-max_insts_all_threads=0
-max_insts_any_thread=0
-max_loads_all_threads=0
-max_loads_any_thread=0
-numThreads=1
-p_state_clk_gate_bins=20
-p_state_clk_gate_max=1000000000
-p_state_clk_gate_min=1
-power_model=Null
-profile=0
-progress_interval=0
-simpoint_start_insts=
-socket_id=0
-switched_out=false
-system=system
-tracer=system.cpu.tracer
-workload=system.cpu.workload
-dcache_port=system.ruby.l1_cntrl0.sequencer.slave[1]
-icache_port=system.ruby.l1_cntrl0.sequencer.slave[0]
-
-[system.cpu.clk_domain]
-type=SrcClockDomain
-clock=1
-domain_id=-1
-eventq_index=0
-init_perf_level=0
-voltage_domain=system.voltage_domain
-
-[system.cpu.dtb]
-type=AlphaTLB
-eventq_index=0
-size=64
-
-[system.cpu.interrupts]
-type=AlphaInterrupts
-eventq_index=0
-
-[system.cpu.isa]
-type=AlphaISA
-eventq_index=0
-system=system
-
-[system.cpu.itb]
-type=AlphaTLB
-eventq_index=0
-size=48
-
-[system.cpu.tracer]
-type=ExeTracer
-eventq_index=0
-
-[system.cpu.workload]
-type=LiveProcess
-cmd=hello
-cwd=
-drivers=
-egid=100
-env=
-errout=cerr
-euid=100
-eventq_index=0
-executable=/arm/projectscratch/randd/systems/dist/test-progs/hello/bin/alpha/linux/hello
-gid=100
-input=cin
-kvmInSE=false
-max_stack_size=67108864
-output=cout
-pid=100
-ppid=99
-simpoint=0
-system=system
-uid=100
-useArchPT=false
-
-[system.dvfs_handler]
-type=DVFSHandler
-domains=
-enable=false
-eventq_index=0
-sys_clk_domain=system.clk_domain
-transition_latency=100000
-
-[system.mem_ctrls]
-type=DRAMCtrl
-IDD0=0.055000
-IDD02=0.000000
-IDD2N=0.032000
-IDD2N2=0.000000
-IDD2P0=0.000000
-IDD2P02=0.000000
-IDD2P1=0.032000
-IDD2P12=0.000000
-IDD3N=0.038000
-IDD3N2=0.000000
-IDD3P0=0.000000
-IDD3P02=0.000000
-IDD3P1=0.038000
-IDD3P12=0.000000
-IDD4R=0.157000
-IDD4R2=0.000000
-IDD4W=0.125000
-IDD4W2=0.000000
-IDD5=0.235000
-IDD52=0.000000
-IDD6=0.020000
-IDD62=0.000000
-VDD=1.500000
-VDD2=0.000000
-activation_limit=4
-addr_mapping=RoRaBaCoCh
-bank_groups_per_rank=0
-banks_per_rank=8
-burst_length=8
-channels=1
-clk_domain=system.clk_domain
-conf_table_reported=true
-default_p_state=UNDEFINED
-device_bus_width=8
-device_rowbuffer_size=1024
-device_size=536870912
-devices_per_rank=8
-dll=true
-eventq_index=0
-in_addr_map=true
-kvm_map=true
-max_accesses_per_row=16
-mem_sched_policy=frfcfs
-min_writes_per_switch=16
-null=false
-p_state_clk_gate_bins=20
-p_state_clk_gate_max=1000000000
-p_state_clk_gate_min=1
-page_policy=open_adaptive
-power_model=Null
-range=0:268435455:5:19:0:0
-ranks_per_channel=2
-read_buffer_size=32
-static_backend_latency=10
-static_frontend_latency=10
-tBURST=5
-tCCD_L=0
-tCK=1
-tCL=14
-tCS=3
-tRAS=35
-tRCD=14
-tREFI=7800
-tRFC=260
-tRP=14
-tRRD=6
-tRRD_L=0
-tRTP=8
-tRTW=3
-tWR=15
-tWTR=8
-tXAW=30
-tXP=6
-tXPDLL=0
-tXS=270
-tXSDLL=0
-write_buffer_size=64
-write_high_thresh_perc=85
-write_low_thresh_perc=50
-port=system.ruby.dir_cntrl0.memory
-
-[system.ruby]
-type=RubySystem
-children=clk_domain dir_cntrl0 l1_cntrl0 l2_cntrl0 memctrl_clk_domain network
-access_backing_store=false
-all_instructions=false
-block_size_bytes=64
-clk_domain=system.ruby.clk_domain
-default_p_state=UNDEFINED
-eventq_index=0
-hot_lines=false
-memory_size_bits=48
-num_of_sequencers=1
-number_of_virtual_networks=3
-p_state_clk_gate_bins=20
-p_state_clk_gate_max=1000000000
-p_state_clk_gate_min=1
-phys_mem=Null
-power_model=Null
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to