From: Matthew Poremba Date: Sat, 10 Oct 2020 01:57:21 +0000 (-0500) Subject: configs: Make GPU_VIPER config python3 friendly X-Git-Tag: develop-gem5-snapshot~610 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab482789ab529ecfacbdbd8444590ae3065ee00d;p=gem5.git configs: Make GPU_VIPER config python3 friendly There is no xrange in python3. This will be required when eventually 20.2 is released. Change-Id: I3a0da6353b70e6e17ce1f77d6177d48059e32487 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35855 Reviewed-by: Matt Sinclair Maintainer: Matt Sinclair Tested-by: kokoro --- diff --git a/configs/ruby/GPU_VIPER.py b/configs/ruby/GPU_VIPER.py index 3ea2998eb..fe52d62e4 100644 --- a/configs/ruby/GPU_VIPER.py +++ b/configs/ruby/GPU_VIPER.py @@ -656,7 +656,7 @@ def create_system(options, full_system, system, dma_devices, bootmem, # SQC also in GPU cluster gpuCluster.add(sqc_cntrl) - for i in xrange(options.num_scalar_cache): + for i in range(options.num_scalar_cache): scalar_cntrl = SQCCntrl(TCC_select_num_bits = TCC_bits) scalar_cntrl.create(options, ruby_system, system) @@ -678,7 +678,7 @@ def create_system(options, full_system, system, dma_devices, bootmem, gpuCluster.add(scalar_cntrl) - for i in xrange(options.num_cp): + for i in range(options.num_cp): tcp_ID = options.num_compute_units + i sqc_ID = options.num_sqc + i