From 3724fb15faafaaca54cc7a500df9c1490a387049 Mon Sep 17 00:00:00 2001 From: jkalamat Date: Thu, 9 Jun 2016 11:24:55 -0400 Subject: gpu-compute: parametrize Wavefront size Eliminate the VSZ constant that defined the Wavefront size (in numbers of work items); replaced it with a parameter in the GPU.py configuration script. Changed all data structures dependent on the Wavefront size to be dynamically sized. Legal values of Wavefront size are 16, 32, 64 for now and checked at initialization time. --- src/gpu-compute/GPU.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpu-compute/GPU.py') diff --git a/src/gpu-compute/GPU.py b/src/gpu-compute/GPU.py index bd95f6335..f580a09f7 100644 --- a/src/gpu-compute/GPU.py +++ b/src/gpu-compute/GPU.py @@ -59,6 +59,7 @@ class VectorRegisterFile(SimObject): simd_id = Param.Int(0, 'SIMD ID associated with this VRF') num_regs_per_simd = Param.Int(2048, 'number of vector registers per SIMD') + wfSize = Param.Int(64, 'Wavefront size (in work items)') min_alloc = Param.Int(4, 'min number of VGPRs allocated per WF') class Wavefront(SimObject): @@ -68,6 +69,7 @@ class Wavefront(SimObject): simdId = Param.Int('SIMD id (0-ComputeUnit.num_SIMDs)') wf_slot_id = Param.Int('wavefront id (0-ComputeUnit.max_wfs)') + wfSize = Param.Int(64, 'Wavefront size (in work items)') class ComputeUnit(MemObject): type = 'ComputeUnit' -- cgit v1.2.3