gpu-compute: parametrize Wavefront size
authorjkalamat <john.kalamatianos@amd.com>
Thu, 9 Jun 2016 15:24:55 +0000 (11:24 -0400)
committerjkalamat <john.kalamatianos@amd.com>
Thu, 9 Jun 2016 15:24:55 +0000 (11:24 -0400)
commit3724fb15faafaaca54cc7a500df9c1490a387049
treebbd671b68ba971087a1cd45b208947c09a622d38
parente5b7b6780f9748b6f13ef91e3e22d53ebdf47968
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.
25 files changed:
configs/example/apu_se.py
src/arch/hsail/gen.py
src/arch/hsail/insts/branch.hh
src/arch/hsail/insts/main.cc
src/arch/hsail/insts/mem.hh
src/arch/hsail/insts/mem_impl.hh
src/arch/hsail/insts/pseudo_inst.cc
src/arch/hsail/operand.hh
src/gpu-compute/GPU.py
src/gpu-compute/cl_driver.cc
src/gpu-compute/compute_unit.cc
src/gpu-compute/compute_unit.hh
src/gpu-compute/dispatcher.cc
src/gpu-compute/dispatcher.hh
src/gpu-compute/global_memory_pipeline.cc
src/gpu-compute/gpu_dyn_inst.cc
src/gpu-compute/gpu_dyn_inst.hh
src/gpu-compute/local_memory_pipeline.cc
src/gpu-compute/misc.hh
src/gpu-compute/qstruct.hh
src/gpu-compute/vector_register_file.cc
src/gpu-compute/vector_register_state.cc
src/gpu-compute/vector_register_state.hh
src/gpu-compute/wavefront.cc
src/gpu-compute/wavefront.hh