diff options
author | jkalamat <john.kalamatianos@amd.com> | 2016-06-09 11:24:55 -0400 |
---|---|---|
committer | jkalamat <john.kalamatianos@amd.com> | 2016-06-09 11:24:55 -0400 |
commit | 3724fb15faafaaca54cc7a500df9c1490a387049 (patch) | |
tree | bbd671b68ba971087a1cd45b208947c09a622d38 /src/gpu-compute/local_memory_pipeline.cc | |
parent | e5b7b6780f9748b6f13ef91e3e22d53ebdf47968 (diff) | |
download | gem5-3724fb15faafaaca54cc7a500df9c1490a387049.tar.xz |
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.
Diffstat (limited to 'src/gpu-compute/local_memory_pipeline.cc')
-rw-r--r-- | src/gpu-compute/local_memory_pipeline.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu-compute/local_memory_pipeline.cc b/src/gpu-compute/local_memory_pipeline.cc index 7f919c5f4..a970d8f9b 100644 --- a/src/gpu-compute/local_memory_pipeline.cc +++ b/src/gpu-compute/local_memory_pipeline.cc @@ -148,9 +148,9 @@ LocalMemPipeline::doSmReturn(GPUDynInstPtr m) int physVgpr = w->remap(dst,sizeof(c0),1); // save the physical VGPR index regVec.push_back(physVgpr); - c1 *p1 = &((c1*)m->d_data)[k * VSZ]; + c1 *p1 = &((c1 *)m->d_data)[k * w->computeUnit->wfSize()]; - for (int i = 0; i < VSZ; ++i) { + for (int i = 0; i < w->computeUnit->wfSize(); ++i) { if (m->exec_mask[i]) { // write the value into the physical VGPR. This is a purely // functional operation. No timing is modeled. |