python: Apply Black formatter to Python files
The command executed was `black src configs tests util`. Change-Id: I8dfaa6ab04658fea37618127d6ac19270028d771 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/47024 Maintainer: Bobby Bruce <bbruce@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Giacomo Travaglini
parent
1cfaa8da83
commit
787204c92d
@@ -34,7 +34,7 @@ from m5.defines import buildEnv
|
||||
from m5.util import addToPath, convert
|
||||
from .CntrlBase import *
|
||||
|
||||
addToPath('../')
|
||||
addToPath("../")
|
||||
|
||||
from topologies.Cluster import Cluster
|
||||
|
||||
@@ -44,23 +44,27 @@ from topologies.Cluster import Cluster
|
||||
class L1Cache(RubyCache):
|
||||
latency = 1
|
||||
resourceStalls = False
|
||||
|
||||
def create(self, size, assoc, options):
|
||||
self.size = MemorySize(size)
|
||||
self.assoc = assoc
|
||||
self.replacement_policy = TreePLRURP()
|
||||
|
||||
|
||||
#
|
||||
# Note: the L2 Cache latency is not currently used
|
||||
#
|
||||
class L2Cache(RubyCache):
|
||||
latency = 10
|
||||
resourceStalls = False
|
||||
|
||||
def create(self, size, assoc, options):
|
||||
self.size = MemorySize(size)
|
||||
self.assoc = assoc
|
||||
self.replacement_policy = TreePLRURP()
|
||||
class CPCntrl(AMD_Base_Controller, CntrlBase):
|
||||
|
||||
|
||||
class CPCntrl(AMD_Base_Controller, CntrlBase):
|
||||
def create(self, options, ruby_system, system):
|
||||
self.version = self.versionCount()
|
||||
self.cntrl_id = self.cntrlCount()
|
||||
@@ -96,16 +100,20 @@ class CPCntrl(AMD_Base_Controller, CntrlBase):
|
||||
if options.recycle_latency:
|
||||
self.recycle_latency = options.recycle_latency
|
||||
|
||||
|
||||
def define_options(parser):
|
||||
parser.add_argument("--cpu-to-dir-latency", type=int, default=15)
|
||||
|
||||
|
||||
def construct(options, system, ruby_system):
|
||||
if buildEnv['PROTOCOL'] != 'GPU_VIPER':
|
||||
panic("This script requires VIPER based protocols \
|
||||
to be built.")
|
||||
if buildEnv["PROTOCOL"] != "GPU_VIPER":
|
||||
panic(
|
||||
"This script requires VIPER based protocols \
|
||||
to be built."
|
||||
)
|
||||
cpu_sequencers = []
|
||||
cpuCluster = None
|
||||
cpuCluster = Cluster(name="CPU Cluster", extBW = 8, intBW=8) # 16 GB/s
|
||||
cpuCluster = Cluster(name="CPU Cluster", extBW=8, intBW=8) # 16 GB/s
|
||||
for i in range((options.num_cpus + 1) // 2):
|
||||
|
||||
cp_cntrl = CPCntrl()
|
||||
|
||||
Reference in New Issue
Block a user