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/qstruct.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu-compute/qstruct.hh') diff --git a/src/gpu-compute/qstruct.hh b/src/gpu-compute/qstruct.hh index 092303c00..7bca757b8 100644 --- a/src/gpu-compute/qstruct.hh +++ b/src/gpu-compute/qstruct.hh @@ -100,7 +100,7 @@ struct WFContext { // 32 bit values // barrier state - int bar_cnt[VSZ]; + std::vector bar_cnt; // id (which WF in the WG) int cnt; -- cgit v1.2.3