diff options
author | Alexandru Dutu <alexandru.dutu@amd.com> | 2016-09-16 12:27:56 -0400 |
---|---|---|
committer | Alexandru Dutu <alexandru.dutu@amd.com> | 2016-09-16 12:27:56 -0400 |
commit | d5c8c5d3db1954ff4e33dade0812fed7b60a9269 (patch) | |
tree | bedbecb25c0b1824e25164b287ad2fdddb65dffa /src/gpu-compute/dispatcher.cc | |
parent | 589e13a23b3969c1137d2170a8638356d0c0fc65 (diff) | |
download | gem5-d5c8c5d3db1954ff4e33dade0812fed7b60a9269.tar.xz |
gpu-compute: Adding ioctl for HW context size
Adding runtime support for determining the memory required by a SIMD engine
when executing a particular wavefront.
Diffstat (limited to 'src/gpu-compute/dispatcher.cc')
-rw-r--r-- | src/gpu-compute/dispatcher.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu-compute/dispatcher.cc b/src/gpu-compute/dispatcher.cc index adc1f51bd..79eb46bbf 100644 --- a/src/gpu-compute/dispatcher.cc +++ b/src/gpu-compute/dispatcher.cc @@ -398,3 +398,9 @@ GpuDispatcher::setFuncargsSize(int funcargs_size) { shader->funcargs_size = funcargs_size; } + +uint32_t +GPUDispatcher::getStaticContextSize() const +{ + return shader->cuList[0]->wfList[0][0]->getStaticContextSize(); +} |