summaryrefslogtreecommitdiff
path: root/src/gpu-compute/compute_unit.hh
diff options
context:
space:
mode:
authorTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:47 -0400
committerTony Gutierrez <anthony.gutierrez@amd.com>2016-10-26 22:47:47 -0400
commitaa7364276f16bbe6aa300b43bc57ff1b73be42a7 (patch)
treebd384607585d98dd996b88c74864aa105b6843a7 /src/gpu-compute/compute_unit.hh
parent844fb845a51b15f13c7c744e0d5fdf5567c3da98 (diff)
downloadgem5-aa7364276f16bbe6aa300b43bc57ff1b73be42a7.tar.xz
gpu-compute: use System cache line size in the GPU
Diffstat (limited to 'src/gpu-compute/compute_unit.hh')
-rw-r--r--src/gpu-compute/compute_unit.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu-compute/compute_unit.hh b/src/gpu-compute/compute_unit.hh
index 2187bec38..4a1c09c27 100644
--- a/src/gpu-compute/compute_unit.hh
+++ b/src/gpu-compute/compute_unit.hh
@@ -390,6 +390,8 @@ class ComputeUnit : public MemObject
int32_t
getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const;
+ int cacheLineSize() const { return _cacheLineSize; }
+
bool
sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result));
@@ -767,6 +769,7 @@ class ComputeUnit : public MemObject
uint64_t getAndIncSeqNum() { return globalSeqNum++; }
private:
+ const int _cacheLineSize;
uint64_t globalSeqNum;
int wavefrontSize;
GPUStaticInst *kernelLaunchInst;