From ab482789ab529ecfacbdbd8444590ae3065ee00d Mon Sep 17 00:00:00 2001 From: Matthew Poremba Date: Fri, 9 Oct 2020 20:57:21 -0500 Subject: [PATCH] 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 --- configs/ruby/GPU_VIPER.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2