diff --git a/configs/example/gpufs/amd/AmdGPUOptions.py b/configs/example/gpufs/amd/AmdGPUOptions.py index 3cf8641e2e..055b71388f 100644 --- a/configs/example/gpufs/amd/AmdGPUOptions.py +++ b/configs/example/gpufs/amd/AmdGPUOptions.py @@ -247,12 +247,14 @@ def addAmdGPUOptions(parser): default="simple", help="register allocation policy (simple/dynamic)", ) + parser.add_argument( "--register-file-cache-size", type=int, default=0, help="number of registers in cache", ) + parser.add_argument( "--memtime-latency", type=int, @@ -260,3 +262,47 @@ def addAmdGPUOptions(parser): default=41, help="Latency for memtimes in scalar memory pipeline.", ) + + parser.add_argument( + "--vrf_lm_bus_latency", + type=int, + default=1, + help="Latency while accessing shared memory", + ) + + parser.add_argument( + "--max-cu-tokens", + type=int, + default=4, + help="Number of coalescer tokens per CU", + ) + + parser.add_argument( + "--mem-req-latency", + type=int, + default=50, + help="Latency for requests from the cu to ruby.", + ) + + parser.add_argument( + "--mem-resp-latency", + type=int, + default=50, + help="Latency for responses from ruby to the cu.", + ) + + parser.add_argument( + "--scalar-mem-req-latency", + type=int, + default=50, + help="Latency for scalar requests from the cu to ruby.", + ) + + parser.add_argument( + "--scalar-mem-resp-latency", + type=int, + # Set to 0 as the scalar cache response path does not model + # response latency yet and this parameter is currently not used + default=0, + help="Latency for scalar responses from ruby to the cu.", + ) diff --git a/configs/example/gpufs/system/amdgpu.py b/configs/example/gpufs/system/amdgpu.py index bdeda9024a..593f258158 100644 --- a/configs/example/gpufs/system/amdgpu.py +++ b/configs/example/gpufs/system/amdgpu.py @@ -76,6 +76,12 @@ def createGPU(system, args): localMemBarrier=args.LocalMemBarrier, countPages=args.countPages, memtime_latency=args.memtime_latency, + max_cu_tokens=args.max_cu_tokens, + vrf_lm_bus_latency=args.vrf_lm_bus_latency, + mem_req_latency=args.mem_req_latency, + mem_resp_latency=args.mem_resp_latency, + scalar_mem_req_latency=args.scalar_mem_req_latency, + scalar_mem_resp_latency=args.scalar_mem_resp_latency, localDataStore=LdsState( banks=args.numLdsBanks, bankConflictPenalty=args.ldsBankConflictPenalty,