configs: Make GPU_VIPER config python3 friendly
authorMatthew Poremba <matthew.poremba@amd.com>
Sat, 10 Oct 2020 01:57:21 +0000 (20:57 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Sat, 17 Oct 2020 00:43:43 +0000 (00:43 +0000)
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 <mattdsinclair@gmail.com>
Maintainer: Matt Sinclair <mattdsinclair@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
configs/ruby/GPU_VIPER.py

index 3ea2998ebc653d7a5be611c579d39d3cbcc068a8..fe52d62e402667580b12a43ed24d5983bfed7626 100644 (file)
@@ -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