dev-amdgpu,configs,gpu-compute: Add gfx942 version
This is the version for MI300. For the most part, it is the same as MI200 with the exception of architected flat scratch (not yet implemented in gem5) and therefore a new version enum is required. Change-Id: Id18cd7b57c4eebd467c010a3f61e3117beb8d58a
This commit is contained in:
@@ -134,9 +134,9 @@ def addRunFSOptions(parser):
|
||||
parser.add_argument(
|
||||
"--gpu-device",
|
||||
default="Vega10",
|
||||
choices=["Vega10", "MI100", "MI200"],
|
||||
help="GPU model to run: Vega10 (gfx900), MI100 (gfx908), or "
|
||||
"MI200 (gfx90a)",
|
||||
choices=["Vega10", "MI100", "MI200", "MI300X"],
|
||||
help="GPU model to run: Vega10 (gfx900), MI100 (gfx908), MI200 "
|
||||
"(gfx90a), or MI300X (gfx942).",
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
|
||||
@@ -191,10 +191,14 @@ def connectGPU(system, args):
|
||||
system.pc.south_bridge.gpu.DeviceID = 0x740F
|
||||
system.pc.south_bridge.gpu.SubsystemVendorID = 0x1002
|
||||
system.pc.south_bridge.gpu.SubsystemID = 0x0C34
|
||||
elif args.gpu_device == "MI300X":
|
||||
system.pc.south_bridge.gpu.DeviceID = 0x740F
|
||||
system.pc.south_bridge.gpu.SubsystemVendorID = 0x1002
|
||||
system.pc.south_bridge.gpu.SubsystemID = 0x0C34
|
||||
elif args.gpu_device == "Vega10":
|
||||
system.pc.south_bridge.gpu.DeviceID = 0x6863
|
||||
else:
|
||||
panic(f"Unknown GPU device: {args.gpu_device}")
|
||||
m5.util.panic(f"Unknown GPU device: {args.gpu_device}")
|
||||
|
||||
# Use the gem5 default of 0x280 OR'd with 0x10 which tells Linux there is
|
||||
# a PCI capabilities list to travse.
|
||||
|
||||
@@ -161,7 +161,7 @@ def makeGpuFSSystem(args):
|
||||
0x7D000,
|
||||
]
|
||||
sdma_sizes = [0x1000] * 8
|
||||
elif args.gpu_device == "MI200":
|
||||
elif args.gpu_device == "MI200" or args.gpu_device == "MI300X":
|
||||
num_sdmas = 5
|
||||
sdma_bases = [
|
||||
0x4980,
|
||||
|
||||
Reference in New Issue
Block a user