tests.py (11828:36b064696175) | tests.py (12068:0097c445aa64) |
---|---|
1#!/usr/bin/env python2 2# | 1#!/usr/bin/env python2 2# |
3# Copyright (c) 2016 ARM Limited | 3# Copyright (c) 2016-2017 ARM Limited |
4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating 9# to a hardware implementation of the functionality of the software 10# licensed hereunder. You may use the software subject to the license 11# terms below provided that you ensure that this notice is replicated --- 144 unchanged lines hidden (view full) --- 156 'memtest-filter', 157 'tgen-simple-mem', 158 'tgen-dram-ctrl', 159 160 'learning-gem5-p1-simple', 161 'learning-gem5-p1-two-level', 162) 163 | 4# All rights reserved 5# 6# The license below extends only to copyright in the software and shall 7# not be construed as granting a license to any other intellectual 8# property including but not limited to intellectual property relating 9# to a hardware implementation of the functionality of the software 10# licensed hereunder. You may use the software subject to the license 11# terms below provided that you ensure that this notice is replicated --- 144 unchanged lines hidden (view full) --- 156 'memtest-filter', 157 'tgen-simple-mem', 158 'tgen-dram-ctrl', 159 160 'learning-gem5-p1-simple', 161 'learning-gem5-p1-two-level', 162) 163 |
164default_ruby_protocol = { 165 "arm" : "MOESI_CMP_directory", 166} 167 168def get_default_protocol(arch): 169 try: 170 return default_ruby_protocol[arch] 171 except KeyError: 172 return 'MI-example' 173 |
|
164all_categories = ("quick", "long") 165all_modes = ("fs", "se") 166 167class Test(object): 168 """Test case base class. 169 170 Test cases consists of one or more test units that are run in two 171 phases. A run phase (units produced by run_units() and a verify --- 160 unchanged lines hidden (view full) --- 332 configs = list(arch_configs.get((isa, gpu_isa), [])) 333 334 if (isa, gpu_isa) == ("x86", "hsail"): 335 if ruby_protocol == "GPU_RfO": 336 configs += ['gpu-randomtest'] 337 else: 338 configs += generic_configs 339 | 174all_categories = ("quick", "long") 175all_modes = ("fs", "se") 176 177class Test(object): 178 """Test case base class. 179 180 Test cases consists of one or more test units that are run in two 181 phases. A run phase (units produced by run_units() and a verify --- 160 unchanged lines hidden (view full) --- 342 configs = list(arch_configs.get((isa, gpu_isa), [])) 343 344 if (isa, gpu_isa) == ("x86", "hsail"): 345 if ruby_protocol == "GPU_RfO": 346 configs += ['gpu-randomtest'] 347 else: 348 configs += generic_configs 349 |
340 if ruby_protocol == 'MI_example': 341 configs += [ "%s-ruby" % (c, ) for c in configs ] | 350 if ruby_protocol == get_default_protocol(isa): 351 if ruby_protocol == 'MI_example': 352 configs += [ "%s-ruby" % (c, ) for c in configs ] 353 else: 354 configs += [ "%s-ruby-%s" % (c, ruby_protocol) for c in configs ] |
342 elif ruby_protocol is not None: 343 # Override generic ISA configs when using Ruby (excluding 344 # MI_example which is included in all ISAs by default). This 345 # reduces the number of generic tests we re-run for when 346 # compiling Ruby targets. 347 configs = [ "%s-ruby-%s" % (c, ruby_protocol) for c in configs ] 348 349 # /(quick|long)/(fs|se)/workload/ref/arch/guest/config/ --- 20 unchanged lines hidden --- | 355 elif ruby_protocol is not None: 356 # Override generic ISA configs when using Ruby (excluding 357 # MI_example which is included in all ISAs by default). This 358 # reduces the number of generic tests we re-run for when 359 # compiling Ruby targets. 360 configs = [ "%s-ruby-%s" % (c, ruby_protocol) for c in configs ] 361 362 # /(quick|long)/(fs|se)/workload/ref/arch/guest/config/ --- 20 unchanged lines hidden --- |