From eb5eab360f616010204a9c1238dd63d5ce9e2cd9 Mon Sep 17 00:00:00 2001 From: vramadas95 Date: Wed, 14 Sep 2022 15:35:53 -0500 Subject: [PATCH] configs,gpu-compute: Add configurable LDS bus latency Previously the LDS bus latency was not configurable in the GPU config scripts. As a result, the simulations would use the default value from GPU.py. This commit adds support to change this value as an input option. The option to use is "--vrf_lm_bus_latency". Change-Id: I8d8852e6d7b9d03ebec1fe8b392968f396dd3526 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/63652 Maintainer: Matthew Poremba Tested-by: kokoro Reviewed-by: Matt Sinclair --- configs/example/apu_se.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py index 1a649d3324..16e336573b 100644 --- a/configs/example/apu_se.py +++ b/configs/example/apu_se.py @@ -257,6 +257,12 @@ parser.add_argument( default=4, help="Number of coalescer tokens per CU", ) +parser.add_argument( + "--vrf_lm_bus_latency", + type=int, + default=1, + help="Latency while accessing shared memory", +) parser.add_argument( "--TLB-prefetch", type=int, help="prefetch depth for" "TLBs" ) @@ -442,6 +448,7 @@ for i in range(n_cu): localMemBarrier=args.LocalMemBarrier, countPages=args.countPages, max_cu_tokens=args.max_cu_tokens, + vrf_lm_bus_latency=args.vrf_lm_bus_latency, localDataStore=LdsState( banks=args.numLdsBanks, bankConflictPenalty=args.ldsBankConflictPenalty,