misc: Run pre-commit run --all-files

This is reflect the updates made to black when running `pre-commit
autoupdate`.

Change-Id: Ifb7fea117f354c7f02f26926a5afdf7d67bc5919
This commit is contained in:
Bobby R. Bruce
2023-10-09 12:40:48 -07:00
parent 317d2fb5b8
commit ddf6cb88e4
183 changed files with 120 additions and 175 deletions

View File

@@ -38,6 +38,7 @@ addToPath("../")
from topologies.Cluster import Cluster
#
# Note: the L1 Cache latency is only used by the sequencer on fast path hits
#
@@ -115,7 +116,6 @@ def construct(options, system, ruby_system):
cpuCluster = None
cpuCluster = Cluster(name="CPU Cluster", extBW=8, intBW=8) # 16 GB/s
for i in range((options.num_cpus + 1) // 2):
cp_cntrl = CPCntrl()
cp_cntrl.create(options, ruby_system, system)

View File

@@ -65,7 +65,6 @@ def read_config_file(file):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "CHI":
m5.panic("This script requires the CHI build")

View File

@@ -524,7 +524,6 @@ def define_options(parser):
def construct_dirs(options, system, ruby_system, network):
dir_cntrl_nodes = []
# For an odd number of CPUs, still create the right number of controllers
@@ -592,7 +591,6 @@ def construct_dirs(options, system, ruby_system, network):
def construct_gpudirs(options, system, ruby_system, network):
dir_cntrl_nodes = []
mem_ctrls = []
@@ -681,12 +679,10 @@ def construct_gpudirs(options, system, ruby_system, network):
def construct_corepairs(options, system, ruby_system, network):
cpu_sequencers = []
cp_cntrl_nodes = []
for i in range((options.num_cpus + 1) // 2):
cp_cntrl = CPCntrl()
cp_cntrl.create(options, ruby_system, system)
@@ -721,7 +717,6 @@ def construct_corepairs(options, system, ruby_system, network):
def construct_tcps(options, system, ruby_system, network):
tcp_sequencers = []
tcp_cntrl_nodes = []
@@ -729,7 +724,6 @@ def construct_tcps(options, system, ruby_system, network):
TCC_bits = int(math.log(options.num_tccs, 2))
for i in range(options.num_compute_units):
tcp_cntrl = TCPCntrl(
TCC_select_num_bits=TCC_bits, issue_latency=1, number_of_TBEs=2560
)
@@ -769,7 +763,6 @@ def construct_tcps(options, system, ruby_system, network):
def construct_sqcs(options, system, ruby_system, network):
sqc_sequencers = []
sqc_cntrl_nodes = []
@@ -777,7 +770,6 @@ def construct_sqcs(options, system, ruby_system, network):
TCC_bits = int(math.log(options.num_tccs, 2))
for i in range(options.num_sqc):
sqc_cntrl = SQCCntrl(TCC_select_num_bits=TCC_bits)
sqc_cntrl.create(options, ruby_system, system)
@@ -804,7 +796,6 @@ def construct_sqcs(options, system, ruby_system, network):
def construct_scalars(options, system, ruby_system, network):
scalar_sequencers = []
scalar_cntrl_nodes = []
@@ -837,7 +828,6 @@ def construct_scalars(options, system, ruby_system, network):
def construct_cmdprocs(options, system, ruby_system, network):
cmdproc_sequencers = []
cmdproc_cntrl_nodes = []
@@ -845,7 +835,6 @@ def construct_cmdprocs(options, system, ruby_system, network):
TCC_bits = int(math.log(options.num_tccs, 2))
for i in range(options.num_cp):
tcp_ID = options.num_compute_units + i
sqc_ID = options.num_sqc + i
@@ -898,11 +887,9 @@ def construct_cmdprocs(options, system, ruby_system, network):
def construct_tccs(options, system, ruby_system, network):
tcc_cntrl_nodes = []
for i in range(options.num_tccs):
tcc_cntrl = TCCCntrl(l2_response_latency=options.TCC_latency)
tcc_cntrl.create(options, ruby_system, system)
tcc_cntrl.l2_request_latency = options.gpu_to_dir_latency

View File

@@ -31,6 +31,7 @@ from m5.defines import buildEnv
from m5.util import addToPath
from .Ruby import create_topology, create_directories
#
# Declare caches used by the protocol
#

View File

@@ -35,6 +35,7 @@ from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
from common import FileSystemConfig
#
# Declare caches used by the protocol
#
@@ -77,7 +78,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MESI_Three_Level":
fatal(
"This script requires the MESI_Three_Level protocol to be\

View File

@@ -35,6 +35,7 @@ from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
from common import FileSystemConfig
#
# Declare caches used by the protocol
#
@@ -77,7 +78,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MESI_Three_Level_HTM":
fatal(
"This script requires the MESI_Three_Level protocol to be\

View File

@@ -32,6 +32,7 @@ from m5.defines import buildEnv
from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
#
# Declare caches used by the protocol
#
@@ -50,7 +51,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MESI_Two_Level":
fatal("This script requires the MESI_Two_Level protocol to be built.")

View File

@@ -32,6 +32,7 @@ from m5.defines import buildEnv
from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
#
# Declare caches used by the protocol
#
@@ -46,7 +47,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MI_example":
panic("This script requires the MI_example protocol to be built.")

View File

@@ -327,7 +327,6 @@ def create_system(
# For an odd number of CPUs, still create the right number of controllers
cpuCluster = Cluster(extBW=512, intBW=512) # 1 TB/s
for i in range((options.num_cpus + 1) // 2):
cp_cntrl = CPCntrl()
cp_cntrl.create(options, ruby_system, system)

View File

@@ -44,6 +44,7 @@ from m5.defines import buildEnv
from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
#
# Declare caches used by the protocol
#
@@ -64,7 +65,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MOESI_CMP_directory":
panic(
"This script requires the MOESI_CMP_directory protocol to be built."

View File

@@ -32,6 +32,7 @@ from m5.defines import buildEnv
from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
#
# Declare caches used by the protocol
#
@@ -71,7 +72,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MOESI_CMP_token":
panic("This script requires the MOESI_CMP_token protocol to be built.")

View File

@@ -33,6 +33,7 @@ from .Ruby import create_topology, create_directories
from .Ruby import send_evicts
from common import FileSystemConfig
#
# Declare caches used by the protocol
#
@@ -70,7 +71,6 @@ def define_options(parser):
def create_system(
options, full_system, system, dma_ports, bootmem, ruby_system, cpus
):
if buildEnv["PROTOCOL"] != "MOESI_hammer":
panic("This script requires the MOESI_hammer protocol to be built.")

View File

@@ -221,7 +221,6 @@ def create_system(
bootmem=None,
cpus=None,
):
system.ruby = RubySystem()
ruby = system.ruby